Visual Studio Development Bookmark and Share   
 index > Crystal Reports for Visual Studio > Only last page prints
 

Only last page prints

I have two Crystal Reports XI reports that I want to print from a VB2008 program I use the following code:

 

Me.taDataInfo.Fill(Me.TDS_DATA.DataInfo)
Me.taDiskInfo.Fill(Me.TDS_DATA.DiskInfo)
Dim RPT As New ReportDocument

 

With RPT
  Try
   .FileName = String.Format("{0}\{1}.rpt", My.Application.Info.DirectoryPath, strReportName)
   .SetDataSource(TDS_DATA)
   .PrintOptions.PrinterDuplex = CrystalDecisions.Shared.PrinterDuplex.Horizontal
   .PrintToPrinter(1,
False, 0, 0)
   sslMain.StatusBarLabelMessage(
"Report Sent to Printer.", False)
Catch ex As Exception
  MessageBox.Show(ex.ToString)
  sslMain.StatusBarLabelMessage(
"Report Failed.", True)
 End Try
End With

Only the 3rd (last) page of the report prints.

How do I get all three pages to print duplex. My HP L7780 supports duplex printing.

AirForce9797  Tuesday, October 06, 2009 12:13 PM
If I comment out the PrinterDuplex line, all 3 pages print out correctly (one sided).
AirForce9797  Tuesday, October 06, 2009 1:08 PM
How do I get it to print duplex?
AirForce9797  Saturday, October 10, 2009 5:58 PM

You can use google to search for other answers

Custom Search

More Threads

• page cannot be displayed
• Problem with can grow
• Release 2!
• To get the list of database fields used in a crystal report file
• slow crystal report
• Loading dynamic image - Crystal report
• How to connect MS Access 2003 database
• Cread Space between line in view Report
• Crystal Reports VS2005 Toolbar Print / Export Error
• Adding a new parameter to Crystal Reports using Typed Dataset as datasource