Home > Back-end >  TADVPREVIEWDIALOG bundle GRID control, preview only one page, but more blank pages when printed
TADVPREVIEWDIALOG bundle GRID control, preview only one page, but more blank pages when printed

Time:09-20

TADVPREVIEWDIALOG bundle GRID control, preview only one page, but when printing a page more blank pages

CodePudding user response:

Information is too little, it is better to stick a print preview dialog interface, and set up relevant statements printing paste,

CodePudding user response:



Adv_Preview. Grid. PrintSettings. HeaderFont. Style:=[fsBold];

Adv_Preview. Grid. PrintSettings. TitleLines. The Clear;
Adv_Preview. Grid. PrintSettings. TitleLines. Add (");
Adv_Preview. Grid. PrintSettings. TitleLines. Add (");
Adv_Preview. Grid. PrintSettings. TitleLines. Add (s);
Adv_Preview. PreviewWidth:=1200;
Adv_Preview. PreviewHeight:=600;
Adv_Preview. Grid. PrintSettings. RowSpacing:=8;
Adv_Preview. Grid. PrintSettings. ColumnSpacing:=8;

Adv_Preview. Execute;

CodePudding user response:

Printed page button and preview the adapt to set about, can't flip preview may be more than one page, you can further tests, such as advpreviewdialog1. PrintSelection:=True; This is to set up print only selected areas, selected a small area of the data, if still hit extra pages, the printer or the driver problem is suspected, the print setup dialog also have "fit the page" option to test, need to add another print setup components, https://www.tmssoftware.com/site/asg16.asp asg16 is printed in the official component bag relevant example, you can refer to,

CodePudding user response:

How to set the print blank pages

CodePudding user response:

reference 4 floor liaosy_ren response:
how is set to print blank page

Consider the following situation, your program with other print opportunity is not going to have a blank page, other programs to use your printer doesn't have a blank page, gradually narrow the scope, if you do the most rigorous testing problem still, perhaps really is a bug, because there is no error message, I'm afraid it is difficult to locate code position,
  • Related