S
Steve
Hi All
Using VB.net 2008, windows forms application on Windows XP SP2
I need to set the paper size when printing to an 80mm Epson docket printer
using windows drivers
Some customers have invoices with many items on it and once past 297mm, the
rest are lost (not printed)
If I set a custom size within the printer driver (in printers and faxes)
then all works fine. If not then the roll cuts off at 297mm, regardless of
the custom size set in code, which is the default standard papersize length
I have tried the following... which DOES NOT WORK
frmpos.pd.PrintController = New StandardPrintController
frmpos.pd.DefaultPageSettings.Margins.Left = 10
frmpos.pd.DefaultPageSettings.Margins.Right = 10
frmpos.pd.PrinterSettings.DefaultPageSettings.Margins.Left = 10
frmpos.pd.PrinterSettings.DefaultPageSettings.Margins.Right = 10
Dim pkCustomSize1 As New PaperSize("New Long Roll", 315, 2000)
frmpos.pd.PrinterSettings.DefaultPageSettings.PaperSize = pkCustomSize1
frmpos.pd.DefaultPageSettings.PaperSize = pkCustomSize1
AddHandler frmpos.pd.PrintPage, AddressOf frmpos.pd_RePrintPage
frmpos.pd.Print()
RemoveHandler frmpos.pd.PrintPage, AddressOf frmpos.pd_RePrintPage
Regards
Steve
Using VB.net 2008, windows forms application on Windows XP SP2
I need to set the paper size when printing to an 80mm Epson docket printer
using windows drivers
Some customers have invoices with many items on it and once past 297mm, the
rest are lost (not printed)
If I set a custom size within the printer driver (in printers and faxes)
then all works fine. If not then the roll cuts off at 297mm, regardless of
the custom size set in code, which is the default standard papersize length
I have tried the following... which DOES NOT WORK
frmpos.pd.PrintController = New StandardPrintController
frmpos.pd.DefaultPageSettings.Margins.Left = 10
frmpos.pd.DefaultPageSettings.Margins.Right = 10
frmpos.pd.PrinterSettings.DefaultPageSettings.Margins.Left = 10
frmpos.pd.PrinterSettings.DefaultPageSettings.Margins.Right = 10
Dim pkCustomSize1 As New PaperSize("New Long Roll", 315, 2000)
frmpos.pd.PrinterSettings.DefaultPageSettings.PaperSize = pkCustomSize1
frmpos.pd.DefaultPageSettings.PaperSize = pkCustomSize1
AddHandler frmpos.pd.PrintPage, AddressOf frmpos.pd_RePrintPage
frmpos.pd.Print()
RemoveHandler frmpos.pd.PrintPage, AddressOf frmpos.pd_RePrintPage
Regards
Steve