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

code to call Crystal Reports 1

Status
Not open for further replies.

tyedyejenn

Programmer
Jun 14, 2000
35
US
I need to run a report from within my VB6 program.&nbsp;&nbsp;Can anyone help me wiht a code snipet of how this is done?<br>Thanks in advance<br>Jenn
 
&nbsp;&nbsp;&nbsp;&nbsp;strInstallPath = GetInstallPath(strInstallPath)<br>&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;'crMain.Connect = strConnect<br>&nbsp;&nbsp;&nbsp;&nbsp;crMain.DataFiles(0) = strInstallPath & &quot;\&quot; & strLOCALTABLENAME & &quot;.MDB&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;crMain.ReportFileName = strReportName<br>&nbsp;&nbsp;&nbsp;&nbsp;crMain.WindowState = crptMaximized<br>&nbsp;&nbsp;&nbsp;&nbsp;crMain.WindowTitle = strTitleBar<br>&nbsp;&nbsp;&nbsp;&nbsp;crMain.Destination = crptToWindow<br>&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;'Display the report.<br>&nbsp;&nbsp;&nbsp;&nbsp;crMain.Action = 1<br> <p>Steve<br><a href=mailto:tribesaddict@swbell.net>tribesaddict@swbell.net</a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top