954,515 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?

Set printer papersize

0
By sartana on Aug 10th, 2010 10:54 am

Code above perform on a button_click event, and it's show crystal report with no error.
When I click icon PRINT REPORT, dialog box appear, I just need to click button OK and printer start it's job.

But I wonder, how to set PRINTER PAPER-SIZE by coding? So every time I need to print, no need to change it manual into a specific size.

I don't want to change it directly from Control Panel>Printer>Properties and make it FIX, because it's shared printer and many user used it and often to changed paper-size according they need.

Any help appreciated, sorry if you don't understand what i mean... Thanks before!

Private Sub btn1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn1.Click
   Dim dsTemp As New DataSetTemp 'dataset
   Dim View As New FrmViewRptWithPrint
   Dim cr As New RptTest 'crystal report

   cr.SetDataSource(dsTemp)
   View.Crv.RefreshReport()
   View.Crv.ReportSource = cr
   View.Text = "TEST PRINT"
   View.Show()
End Sub

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You