K
KWOK
Hi all,
I want to use a printDocument and PrintPreviewDailog to
print more pages.
I can view more pages in printPreviewDialog, but I click a
print button, it only print a last page.
my code here...
Dim PrintInv as new PrintDocument()
AddHandler PrintInv.PrintPage, AddressOf printInvoice
PrintInv.PrinterSettings.PrintRange = PrintRange.AllPages
PreInvDialog.Document = PrintInv
PreInvDialog.ShowDialog()
If PreInvDialog.ShowDialog() = DialogResult.OK Then
Me.PrintInv.Print()
End If
Thanks,
KWOK
I want to use a printDocument and PrintPreviewDailog to
print more pages.
I can view more pages in printPreviewDialog, but I click a
print button, it only print a last page.
my code here...
Dim PrintInv as new PrintDocument()
AddHandler PrintInv.PrintPage, AddressOf printInvoice
PrintInv.PrinterSettings.PrintRange = PrintRange.AllPages
PreInvDialog.Document = PrintInv
PreInvDialog.ShowDialog()
If PreInvDialog.ShowDialog() = DialogResult.OK Then
Me.PrintInv.Print()
End If
Thanks,
KWOK