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

Print a Envelope using

P: 1
We are using an application to print a letter and its envelope to the printer. The application was performing properly till we upgraded our printers to Canon 3225/1555. The envelopes gets processed from the regular tray instead of the feeder tray.

this how we set the envelop

Code in PrintEnvelope_BeginPrint event
Expand|Select|Wrap|Line Numbers
  1.  With PrintEnvelope.DefaultPageSettings
  2.             .PaperSize = New Printing.PaperSize(Printing.PaperKind.Number10Envelope, 412, 910)
  3.             .Landscape = True
  4.             .Margins.Left = 10
  5.             .Margins.Right = 10
  6.             .Margins.Top = 25
  7.             .Margins.Bottom = 25
  8.         End With
Code in the CmdButton before the .print is called

Expand|Select|Wrap|Line Numbers
  1.  Dim papSource As System.Drawing.Printing.PaperSource
  2.                 For Each papSource In PrintEnvelope.PrinterSettings.PaperSources
  3.                     If papSource.Kind = PaperSourceKind.Envelope Then
  4.                         PrintEnvelope.DefaultPageSettings.PaperSource = papSource
  5.                         Exit For
  6.                     End If
  7.                 Next
I am not able to understand what has changed that the printer does not recognise the difference in papersize and source.

Thank you
Sep 1 '09 #1
Share this question for a faster answer!
Share on Google+

Post your reply

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