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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VFP 7 with CR reports written to a PDF

Status
Not open for further replies.

taterday

Programmer
Jan 28, 2009
183
US
I have this working. Does anyone know how to remove this

Crystal Reports ActiveX Designer -

from the default report name displayed in the save.

Crystal Reports ActiveX Designer - report name

I would like the report name only.

Thank you.



 
What version of Crystal Reports? 9

Are you using the RDC or a different method for the integration? yes

mvcheck5 is a variable that the user clicks if they want to change their printer from the default.

ocr=CREATEOBJECT("CrystalDesignRuntime.Application.9")

statements:

ORPT=OCR.OPENREPORT("DOCUMENTS.rpt")
IF ORPT.HASSAVEDDATA
ORPT.DISCARDSAVEDDATA()
ENDIF
ORPT.PRINTERDUPLEX=1

IF mvcheck5 = 1
ORPT.printersetup(0)
ENDIF
ORPT.PRINTOUT(.F.)


 
When I use the
ocr=CREATEOBJECT("CrystalRuntime.Application.9")

I get the error
Class definition CrystalRuntime.Application is not found

Please what am I missing?

I have the check on the intelligent sense.
 
I read you PDF. I had not added CRAXDRT.DLL. It works now. I will change it to the runtime.

Is there a command to change the default printer for all reports at the beginning of printing reports? The printsetup seems to be report only.
 
When I said it works now, I meant that I do not get the error. However, I still get the Crystal Reports ActiveX Designer before the report name.

This is the statement now.

ocr=CREATEOBJECT("CrystalRuntime.Application.9")

Suggestions?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top