I am trying to print on a custom sized paper but the printer doesn't pick the default setting of the printer, therefore during printing the paper is Letter. I have created a new form from
Open Printers from Control Panel.
Select the Dot Matrix Printer and Make it as Default Printer;
Keep it selected and Click on menu : File - Server Properties
Check option : Create New Form.
Give appropriate name say "A6 LR" and Give Height and width
Save the Form
Below is my code
cmd.CommandText = ("SELECT * FROM Sales)
rptDoc = New CrystalSales
cmd.Connection = Con
DA.SelectCommand = (cmd)
DTRpt = DSRpt.Tables(0)
frmRptViewer.Text = "Sales Order Report"
frmRptViewer.CrystalReportViewer1.ReportSource = rptDoc
rptDoc = Nothing
I need to show the report before printing because the report can be more than 1 page. Is there a way either through codes I use the printers default setting or change the paper size at runtime?
Thank you and you help will be highly appreciated.