Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vbs and crystal reports

Status
Not open for further replies.

elly00

Technical User
Jun 30, 2011
69
IT
Hi

is it possible using vbs to run crystal report?
I don't know if it's better to pass data to print from vbs or pass the table to use to the report and read data from db

Could you help me on that?

thanks
 
Hi

thanks for your help

Mau be i miss some dll because running the script I receive the error " ActiveX cannot create object CrystalRuntime.applicatin
I use crystal 11

Do you know If I cand download it from?
thanks
 
Try changing

[tt]Set objCRApp = CreateObject("CrystalRunTime.Application")[/tt]


to

[tt]Set objCRApp = CreateObject("CrystalRunTime.Application.11")[/tt]
 
mm no it doesn't work :(
Do you know if I could do the same thing without Crystal?
I need to print some lables from vbs...I don't know if I can use some other app calling it from vbs...

if I download crystal reports 2008 may be something is different?

Thanks
 
Brute force approach - look for Runtime.Application in the registry and stop when you find the one that has crystal in it.
 
So strongm's suggestion should have worked.

Are you sure it crashed where you think it did? Is there another CreateObject somewhere else in the code.

Can you put a few wscript.echo statements to see where it actually crashed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top