Home > Software engineering >  When using a printer objects to design the report, how to preview the report
When using a printer objects to design the report, how to preview the report

Time:10-04

When using printer objects to design the report, how to preview the report, how to choose the printer, how to choose the direction of paper and print, preview again, and then print again?

Thank you for your attention?

CodePudding user response:

Look at this: http://bbs.csdn.net/topics/390469688

CodePudding user response:

Preview is the original output the contents of the output to the printer to preview the form of the canvas,
If use the print control, has achieved the preview window, usually print control
If direct printing, so the need to do the preview window, draw the content on the canvas,

Use CommonDialog controls ShowPrinter choose printers, paper, direction, and read from the object Printer Settings,

CodePudding user response:

refer to the second floor Tiger_Zhao response:
preview is the original output the contents of the output to the printer to preview the form of the canvas,
If use the print control, has achieved the preview window, usually print control
If direct printing, so the need to do the preview window, draw the content on the canvas,

Use CommonDialog controls ShowPrinter choose printers, paper, direction, and read from the object Printer Settings,


Will you please to provide a routine? Thank you very much!

CodePudding user response:

Direct call Printer is it yourself! Your done!!!!!
Statements control why don't pop, because oneself do very troublesome,

CodePudding user response:

Preview is nothing but can not see the actual printing output, save paper.

So, either you don't lack that some paper, direct hit.
Or a virtual printer. Not the actual printing, as you can see the output.

Recommend installing the virtual printer pdffactory.

I did before

CodePudding user response:

Printer object method and the picturebox method is the same,

The picturebox and the size of the printer is adjusted for the size of the same

Of course, such a simple processing bad
 Option Explicit 
Sub showit (ByRef a As Object)
Amy polumbo rint "Asds
"Amy polumbo rint "asd
"A. fine (12, 12) - (120, 120)
End Sub

Private Sub cmdPrintIt_Click ()
Showit Printer
End Sub

Private Sub cmdShowIt_Click ()
Showit Picture1
End Sub
  • Related