Margin on PrintForm
Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance
I am printing the form that is displayed using the PrintForm method. Prints
the form OK located to the top left of the paper. Now I want to center the
form on the printout. The help file says to use the following statements to
do this, but it does not have any effect on the location of the form on the
paper when printed - it still prints at the top left of the paper.
Printer.ScaleLeft = -((Printer.Width - frmCalculate.Width) / 2)
Printer.ScaleTop = -((Printer.Height - frmCalculate.Height) / 2)
PrintForm
Printer.EndDoc
The Scale Left positions calculates to 2137.5 and the ScaleTop calculates to
2355
What am I missing?
Marv
PrintForm
.
Relevant Pages
- Re: How to print selected controls with high resolution?
... The alternative of dumping screen resolution bitmaps of TextBoxes (as the VB PrintForm and all the other alternative "dump" methods do) gives you terrible resolution, ... Printing pictures is easy. ... Printing the contents of RichTextBoxes is a little more involved though. ... (microsoft.public.vb.general.discussion) - Re: Run-time error 486: Cant print form image to this type of printer when click enter twice
... the time delay should happen *after* the PrintForm ... printing has completed before you allow the person to print again. ... > When it reach the statemnet PrintForm(), ... (microsoft.public.vb.bugs) - Printform options/parameters?
... Perhaps because the form is printing from the printform ... Do you know if there is a way to set the scaling ... >>God bless you ... (microsoft.public.excel.misc) - MArgin in printform
... When i use printform its printing to the left off the paper ... can i make a margin in left and in the top? ... Best regards ... (microsoft.public.excel.programming) - Re: printing using tabs
... You should avoid the VB PrintForm method like the plague! ... stick with dumping low resolution screen bitmaps of your ... page should be regarded as a high resolution display that the user can pick ... (microsoft.public.vb.general.discussion) |
|