•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the VB.NET section within the Software Development category of DaniWeb, a massive community of 363,520 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,424 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our VB.NET advertiser:
Views: 34518 | Replies: 3 | Solved
![]() |
•
•
Join Date: Aug 2004
Posts: 12
Reputation:
Rep Power: 4
Solved Threads: 0
I created a crystal report in vb.net 2003 that generates invoices. I need to be able to print this report to a Canon copy machine(with four paper drawers), but I can't select the paper drawer to print from at runtime, it has to print to the fourth drawer. I am using a ReportDocument object with the report source being Invoice.rpt within .NET.
Here is my current code for printing:
Public Sub PrintForm(ByVal s As String)
rdInvoice.RecordSelectionFormula = "trim({SOP10100.BACHNUMB}) = '" & s & "' and {SOP10100.SOPTYPE} in [4, 3]"
rdInvoice.Refresh()
rdInvoice.PrintOptions.PrinterName = "\\RAPCONT1\Canon iR3300 PS3"
rdInvoice.PrintOptions.PaperSource = PaperSource.Lower
rdInvoice.PrintToPrinter(1, False, 5, 5)
End Sub
Any ideas on how I can select at runtime the paper tray to print from?
Thanks in advance!
Here is my current code for printing:
Public Sub PrintForm(ByVal s As String)
rdInvoice.RecordSelectionFormula = "trim({SOP10100.BACHNUMB}) = '" & s & "' and {SOP10100.SOPTYPE} in [4, 3]"
rdInvoice.Refresh()
rdInvoice.PrintOptions.PrinterName = "\\RAPCONT1\Canon iR3300 PS3"
rdInvoice.PrintOptions.PaperSource = PaperSource.Lower
rdInvoice.PrintToPrinter(1, False, 5, 5)
End Sub
Any ideas on how I can select at runtime the paper tray to print from?
Thanks in advance!
•
•
Join Date: Sep 2004
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 1
•
•
•
•
Originally Posted by AK47
I created a crystal report in vb.net 2003 that generates invoices. I need to be able to print this report to a Canon copy machine(with four paper drawers), but I can't select the paper drawer to print from at runtime, it has to print to the fourth drawer. I am using a ReportDocument object with the report source being Invoice.rpt within .NET.
Here is my current code for printing:
Public Sub PrintForm(ByVal s As String)
rdInvoice.RecordSelectionFormula = "trim({SOP10100.BACHNUMB}) = '" & s & "' and {SOP10100.SOPTYPE} in [4, 3]"
rdInvoice.Refresh()
rdInvoice.PrintOptions.PrinterName = "\\RAPCONT1\Canon iR3300 PS3"
rdInvoice.PrintOptions.PaperSource = PaperSource.Lower
rdInvoice.PrintToPrinter(1, False, 5, 5)
End Sub
Any ideas on how I can select at runtime the paper tray to print from?
Thanks in advance!
Simplest method is to create a printer with the default properties you require and just switch to that printer when required.
hope this helps
•
•
Join Date: Apr 2008
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
if you find difficulty in printing from Crystal report , u can export it as PDF or Excel format and print it.
http://vb.net-informations.com/cryst...export_pdf.htm
its very easy.
http://vb.net-informations.com/cryst...export_pdf.htm
its very easy.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 3 (0 members and 3 guests)
•
•
•
•
•
•
•
•
DaniWeb VB.NET Marketplace
- ASP.NET Crystal Report ODBC MySQL (ASP.NET)
- how to add database fields dynamically to a crystal report in .net 2003 (C#)
- Crystal Report Problems (VB.NET)
- Problem with Crystal Report in ASP.NET (ASP.NET)
- Problems on making Crystal Report (VB.NET)
Other Threads in the VB.NET Forum
- Previous Thread: problem saving image into mysql database
- Next Thread: Snapping Forms together


Linear Mode