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

CR 8.5 and VB6 1

Status
Not open for further replies.

dlimfire

Programmer
Jul 29, 2002
2
US
How do I print a CR 8.5 report with VB6 directly to the printer without the a print preview. I am using CRAXDRT.

Thanks
 
I am passing parameters, but when I execute the following code, Crystal still prompts me for the parameters. What am I doing wrong?

Set mobjCrApp = New CRAXDRT.Application
Set mobjCrReport = mobjCrApp.OpenReport(lstrReport)

mobjCrReport.ParameterFields(1).AddCurrentValue vstrUnitName
mobjCrReport.ParameterFields(2).AddCurrentValue vstrFromDate
mobjCrReport.ParameterFields(3).AddCurrentValue vstrToDate

mobjCrReport.Database.LogOnServer "p2sora7.dll", vstrDatasource, , vstrUserid, vstrPassword

mobjCrApp.OpenReport(lstrReport).PrintOut False
 
Hi,

Have you tried setting?:
Form.Report.EnableParameterPrompting = False

I am doing almost the same thing as you except against a SQL Server database. I am having troubles with the Server not be opened message?
' Hard-coded values for testing
Report.Database.LogOnServer "pdsoledb.dll", "kcdevsql2k", "PPMS", "ppmstest", "ppmstest"

What is contained within your vstrDatasource variable?

Computergeek
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top