Report Design
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Report Design
Message Icon Topic: Duplex Printing in Crystal Report Dot Net Post Reply Post New Topic
Author Message
kaled
Newbie
Newbie
Avatar

Joined: 22 Oct 2007
Location: Saudi Arabia
Online Status: Offline
Posts: 3
Quote kaled Replybullet Topic: Duplex Printing in Crystal Report Dot Net
    Posted: 03 Nov 2007 at 12:18am
hello friend
 
 
i need help  to print my report details in front and back side of singl paper.
 
 
i am using vbdotnet 2005 and i have one report to  print Registration details on the front of report and instructions  on back of the report
 
the printer i have is support Duplex  printing. but the problem how to do this in crystal report.
 
please help cause i suffer alot.
 
 
thanks all.
 
IP IP Logged
wattsjr
Groupie
Groupie
Avatar

Joined: 25 Jun 2007
Location: United States
Online Status: Offline
Posts: 51
Quote wattsjr Replybullet Posted: 05 Nov 2007 at 12:05pm
Hi kaled,
 
Since you are using VB.NET you probably have a couple of options.
 
The 1st is inside the CR developer.
1. right-click anywhere on the report and select "Designer" then select "Printer Setup..."
2. Select the printer that you want to print to and click the "Properties" button.  Since you have probably used the printer before, the rest should be familiar to you.
 
From a VB.NET standpoint, I think that you might be able to use the "PrinterDuplex" option within your "ReportDocument.PrintOptions" coding.
 
Regards,
 
-jrw
IP IP Logged
senglee
Newbie
Newbie


Joined: 17 Jan 2008
Online Status: Offline
Posts: 1
Quote senglee Replybullet Posted: 17 Jan 2008 at 4:28pm

Here was how I did it using vb.net and crystal reports.

1. In the report, create a seperate detail section to hold your second page.  Crystal will see it as Details a & b.  In section a, set the new page after property.  This will cause the second page (details b) to print on a seperate page. 

2. Ok. The next step is to programmically tell your printer to print in duplex.  Study the code below and modify it to suite your needs.

               ' Declare an object of your report.
                Dim objReportObject As New rptTheDailySavings

                'Declare a printoptions object of the objReportObjects print option.  Set the settings.
                Dim PrintOptions As CrystalDecisions.CrystalReports.Engine.PrintOptions = objReportObject.PrintOptions
                PrintOptions.PrinterName = "Your Printer Name Here"
                PrintOptions.PaperOrientation = CrystalDecisions.Shared.PaperOrientation.DefaultPaperOrientation
                PrintOptions.PaperSize = CrystalDecisions.Shared.PaperSize.DefaultPaperSize
                PrintOptions.PrinterDuplex = CrystalDecisions.Shared.PrinterDuplex.Default
                PrintOptions.PaperSource = CrystalDecisions.Shared.PaperSource.Auto

                ' Send the report to the printer.
                objReportObject.PrintToPrinter(1, False, 1, 2)

 

Hope this helps.

IP IP Logged
adelr5
Newbie
Newbie


Joined: 24 Feb 2014
Location: Saudi Arabia
Online Status: Offline
Posts: 1
Quote adelr5 Replybullet Posted: 17 Jun 2014 at 10:26am
Am using Datacard printer and i use the code above when i print the front side printer ask me to flip the card to the other side, crystal report and vb.net ... the code is working fine with HP colored printers, but when it comes to Datacard printer C800 ;-(

any one can help in this ?
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.