Results 1 to 6 of 6

Thread: Printing??

  1. #1

    Thread Starter
    Fanatic Member Stevie's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    565

    Question

    A part of my app requires me to print out a cheque and remittance. The way I've done this is to format my display by writing it all out to a text file, then print out the text file as it is. I'm setting the margins, font size and all that Jazz, but on different printers my cheque comes out slightly different. It seem that the height of the line being printed is different.

    Does anybody know if there is a way to set this, or another way to make the print outs on different printers identical?

  2. #2
    Lively Member
    Join Date
    Jun 2000
    Location
    Belgium
    Posts
    77
    You can use the RTF file format.
    In VB you can create a RTF or edit one with the Microsoft Rich TextBox Control.
    You can also print your text with this OCX.
    KWell

  3. #3
    Guest
    Yes, the SelPrint method works for the RichTextBox.

    But if you are sticking with Standard Text, Can you post your code up? It will be easier to analyse and solve it.

  4. #4

    Thread Starter
    Fanatic Member Stevie's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    565
    As the cheques come out slightly different on different printers, I was thinking of adding a print setup form which allows you to print a dummy cheque (for lining up), and allows you to move certain parts of the cheque up/down/left/right so that the user can alter the layout so it will come out correctly. By using a Rich Text box I could use it as a kind of print preview, which also allows the user to manipulate the layout.

    I would want to put a default cheque layout into it, so would my default layout come out the same on all printers or would it still differ slightly?

  5. #5
    Addicted Member
    Join Date
    Apr 2000
    Location
    Sheffield, England.
    Posts
    136

    Question

    Are you using the Printer object?

    If not, why not?
    Visual Basic 6 Enterprise Edition + SP4

  6. #6

    Thread Starter
    Fanatic Member Stevie's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    565
    Umm, let me see. Yes!

    That was kind of the gist of my question. Is it possible to somehow set the size of the line height on a printer.

    I can't see if you can do it, I know a while back I did something like it in Delphi, but thats something different.

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