Pulsonix User Forum

Technical advice from Pulsonix engineers and the wider community.

Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help with using Pulsonix
 Scripting
 using the RunReport command
Author Previous Topic Topic Next Topic  

pdr

Netherlands
12 Posts

Posted - 16 Aug 2018 :  15:15:04  Show Profile  Reply with Quote
I seem to have a problem running e user report from my script.
The command I use is
Document.RunReport("21_PCB_HVE_Comp list ass","c:\Temp")

this returns the following erro message :
Cannot use parenthesis when calling a Sub
Src: Microsoft VBScript compilation error
Line 102 Error:0 Scode:800a0414

Has anyone else succesfully used this command?

psxforum

United Kingdom
61 Posts

Posted - 16 Aug 2018 :  16:47:56  Show Profile  Visit psxforum's Homepage  Reply with Quote
Usual convention when using VB is to leave out the parentheses:

Document.RunReport "21_PCB_HVE_Comp list ass","c:\Temp"

or prefix the sub with the Call command:

call Document.RunReport("21_PCB_HVE_Comp list ass","c:\Temp")

Just one of those odd things you have to do!
Go to Top of Page

pdr

Netherlands
12 Posts

Posted - 17 Aug 2018 :  07:48:18  Show Profile  Reply with Quote
Thank you for the response.
Now it works fine!

I have used other commands without the 'call' without problems so I am supprised I did not get any error before.

My next challenge is to convert the output .csv report to an excell .xlsx file


quote:
Originally posted by psxforum

Usual convention when using VB is to leave out the parentheses:

Document.RunReport "21_PCB_HVE_Comp list ass","c:\Temp"

or prefix the sub with the Call command:

call Document.RunReport("21_PCB_HVE_Comp list ass","c:\Temp")

Just one of those odd things you have to do!


Go to Top of Page
  Previous Topic Topic Next Topic  
Jump To: