|
-
Jul 3rd, 2000, 04:39 AM
#1
Thread Starter
Fanatic Member
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?
-
Jul 3rd, 2000, 05:18 AM
#2
Lively Member
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.
-
Jul 3rd, 2000, 08:38 AM
#3
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.
-
Jul 3rd, 2000, 08:51 AM
#4
Thread Starter
Fanatic Member
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?
-
Jul 3rd, 2000, 09:26 AM
#5
Addicted Member
Are you using the Printer object?
If not, why not?
Visual Basic 6 Enterprise Edition + SP4
-
Jul 3rd, 2000, 09:34 AM
#6
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|