By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,333 Members | 1,047 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,333 IT Pros & Developers. It's quick & easy.

PrintDialog with printPreviewDialog

P: 1
Hai All...

i have a problem with my report.
my report is printdocument.

i can preview my report in PrintPreviewDialog, but i can't print my report with PrintDialog.
my code is :

Expand|Select|Wrap|Line Numbers
  1. PrintDialog1.AllowSomePage=True
  2. PrintDialog1.Document= PrintDocument1
  3.  
  4. If PrintDialog1.ShowDialog()=Windows.Forms.DialogResult.OK Then
  5.             PrintDocument1.PrinterSettings = PrintDialog1.PrinterSettings
  6.             PrintKartuData.Print()
  7.         End If
BUT... it's not work...!
I can't print my report only one page...
And I can't change properties in printDialog..

Please help me..

thank's for all..
Mar 5 '13 #1
Share this Question
Share on Google+
1 Reply


Mikkeee
P: 94
Looks like you're assigning everything to 'PrintDialog1' but when you print you're referencing 'PrintKartuData'.
Mar 7 '13 #2

Post your reply

Sign in to post your reply or Sign up for a free account.