Crystal Report Document Print options

msvidron

Member
Joined
Jul 21, 2005
Messages
14
Programming Experience
5-10
Trying to print directly to the print using crystal reports. I got it to Print to the printer, but when I try to set the paper source to manual feed, the report still prints. Can anyone Help?
 
Manual Paper Source

Sorry about my ignorance, but I can't seem to understand the problem. I looked at my Crystal Reports and I can't find a property of "Manual Feed".
When I click the printer icon, a printer dialogue box appears, and from there, I can select a paper source of "Manual Feed". If this is what you were talking about, then the problem is not with Crystal Reports. When the printer dialogue box appears, Crystal Reports is not in control and this is a function of the printer (I think).

Please enlighten me.
:confused:
 
I"m working on a Web application. Here is my code:


Dim CrReportDocument as ReportDocument

CrReportDocument = New CrReportDocument

CrReportDocument.Load(RptName)
CrReportDocument.Printoptions.PaperSource = PaperSource.Manual
CrReportDocument.PrintToPrinter(1,False,0,0)
 
msvidron,

Perhaps you should ask the makers of Crystal Reports (Business Objects).
What comes with VS 2005 is a slim version of Crystal Reports V10. Only
they can answer what it can or cannot do. I don't have this problem
because I never used the feature.
 
After a little further experimenting, I was able to accomlish setting what tray I wanted to pull paper from.

Dim crReportDocument As CrystalDecisions.CrystalReports.Engine.ReportDocument
Dim PrinterSettings As New System.Drawing.Printing.PrinterSettings
Dim RptSource As System.Drawing.Printing.PaperSource
crReportDocument =
New CrystalDecisions.CrystalReports.Engine.ReportDocument
For Each RptSource In PrinterSettings.PaperSources
If RptSource.SourceName.ToString = "Tray 2" Then
crReportDocument.PrintOptions.CustomPaperSource = RptSource
Exit For
End If
Next

 
Back
Top