PDA

Click to See Complete Forum and Search --> : printing prob, fonts keep changing... :-(


logmuaddib
Jan 24th, 2000, 06:53 AM
k,
I made a "point of sale" prog for a local business, and the prog will print out invoices to a dot-matrix printer (this is also on a local network). In my code, I use the following code:

Printer.Font = thePrinterFont 'default "arial"
Printer.FontSize = 8
Printer.FontBold = True
With frmCustomerInfo
Printer.Print "#"; Tab(15); ":" & .Text1(0).Text
etc....etc...

Anyways, it will print sometimes with the defined font, and sometimes with something totally different. This will make the invoices un-usable because the columns defined for the original font will not work with this other. What is going on here? Anyone help me? If the default is not supported by the printer, windoze is suppose to substitute this font with one that is appropiate , right? I have the default printer font definable in my preferences, so it's adjustable....

Can some one explain how this printing is handled? THe docs in msdn suxx... :-(
Any help would be appreciated....tia

Frank

MartinLiss
Jan 25th, 2000, 11:03 AM
Here is a snippet from MSDN.
=====================================
Working with Small Fonts
Some fonts do not support the sizes smaller than 8 points. When you set the Size property for one of these fonts to a size smaller than 8 points, either the Name property or the Size property will automatically change to a different font or a different size. To avoid unpredictable results, each time you set the Size property to a font size smaller than 8 points, examine the values of the Name property and the Size property again after setting it.
=====================================
Now, you say you use 8 as the FontSize so perhaps the above is not your problem, but why don't you check the Font.Name and see if it's still Arial.

------------------
Marty
Why is it called lipstick if you can still move your lips?