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!

Supressing the Page Selection dialog exporting from the CR Control OCX

Status
Not open for further replies.

jbradley

Programmer
Sep 7, 2001
248
US
I'm trying to automate the file export of a large number of small reports in a VB6 program. I can loop through my records and do the exports from within the program OK but each one displays a Page Selection dialog that requires a user to stand around hitting the [Enter] key. Is there any way to supress this so the reports just export one after the other without interruption? I'm using the old Crystal Reports control (OCX). Here's my code:

With Report1
.ReportFileName = App.Path & "\Letter7.rpt"
.ParameterFields(0) = "Letter Date;" & strReportDate _
& ";TRUE"
.Destination = crptToFile
.PrintFileType = crptRTF
.PrintFileName = App.Path & "\" & strAccount & ".rtf"
.PrinterStopPage = 0
.Action = 1
End With
 
I contacted CrystalCare and the short answer is that you can't suppress this with the OCX, you have to use the RDC.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top