Results 1 to 4 of 4

Thread: Help needed with changing print page size

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Three Anchor Bay, Cape Town, South Africa
    Posts
    769

    Question Help needed with changing print page size

    Hi,

    I am using the old track feed printers to print tickets. The paper size is 210x145. I have set the printdocument papersize to this setting, but the printer still spools A4 size paper....

    Another application that I have wich also prints out these tickets prints the correct size paper. I must be missing a setting somewhere

    Is there some other setting that I need to change as well?

  2. #2
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    518
    You might compare your code with the following sample app (from the 101 sample VB .NET apps from MS)
    Zipped project attached.
    Attached Files Attached Files

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Three Anchor Bay, Cape Town, South Africa
    Posts
    769
    Thanks for the help.

    I found an article somewhere in msdn that says that in order to use custom size paper on win2k or nt4, you first need to define the form for it (Open printers folder. Right click anywhere in folder, select server properties).

    Once u have defined a form you have to loop through the PaperSizes collection of the printersettings object to find the form. You then have to assign the papersize to the defaultpagesetting's papersize property. Creating a form with the papersize constructor does not work......

    Thanks for help

  4. #4
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    518
    If that doesn't give you enough control over printing (DrawString is difficult or maybe impossible to use to get multiple fontstyles/fonts) then take a look at this thread:

    http://www.vbforums.com/showthread.p...richtextboxex2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width