| | |
Crystal report in vb.net, printing problems
Please support our VB.NET advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Aug 2004
Posts: 12
Reputation:
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:
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: Jan 2009
Posts: 1
Reputation:
Solved Threads: 0
I have a requirement:
I have a Parameterised Crystal Report.
I have one Button called btnView.
On btnClick event of that...
i want to Export the Crystal Report to PDF.
I have another Button called btnPrint.
On btnPrint event of that...
I want to convert to PDF and after that i want to print that PDF with Asp.net and C#.net.
Here the problem is i can able to send parameters to the Crystal Report but i am not able to Export the Parameterised Report in to PDF.
and also with Code ASP.Net and C#.Net i could not able to Print PDF directly with out showing it to the user
I have a Parameterised Crystal Report.
I have one Button called btnView.
On btnClick event of that...
i want to Export the Crystal Report to PDF.
I have another Button called btnPrint.
On btnPrint event of that...
I want to convert to PDF and after that i want to print that PDF with Asp.net and C#.net.
Here the problem is i can able to send parameters to the Crystal Report but i am not able to Export the Parameterised Report in to PDF.
and also with Code ASP.Net and C#.Net i could not able to Print PDF directly with out showing it to the user
![]() |
Similar Threads
- vb.net 2003 crystal report add sum total in one field (VB.NET)
- vb.net crystal report (VB.NET)
- Help me for how Crystal report is used with VB.NEt (VB.NET)
- Parameters in crystal report + vb.net (VB.NET)
- How to send Multiple values for one formula field in crystal reports through vb.net? (ASP.NET)
- how to add database fields dynamically to a crystal report in .net 2003 (C#)
Other Threads in the VB.NET Forum
- Previous Thread: VB 2005 - Slow , Sloooow Text Program
- Next Thread: 2008 displaying the task category vista event logs
| Thread Tools | Search this Thread |
.net .net2008 2008 access account add advanced application array basic beginner browser button buttons click code combo cpu cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationtopic employees excel exists fade filter forms generatetags html images input intel internet listview mobile module monitor mysql net number objects open panel passingparameters pdf picturebox picturebox2 port position print printing printpreview problem regex reuse right-to-left save search searchvb.net select serial settings shutdown socket sqldatbase sqlserver storedprocedure survey temperature textbox timer timespan transparency txttoxmlconverter update user usercontol vb vb.net vb.netformclosing()eventpictureboxmessagebox vbnet vista visual visualbasic.net visualstudio.net visualstudio2008 web winforms wpf wrapingcode xml year





