Home > Back-end >  Fastreport preview when only one page, point to print more print a blank page, help!!!!!!!!!!
Fastreport preview when only one page, point to print more print a blank page, help!!!!!!!!!!

Time:09-29

I use PrepareReport add print, whether to print one page or more pages, preview when there is no problem, but is always more to print when printing a page blank page, and set to print the current page, print don't respond, all set to print the first page and always express a more blank pages, pagecount always 2, I do not know what reason be, ah, ask ace to give advice or comments
Code about style:
The button press event:

KG_ZSBH:=Trim (FieldByName (' AB006). AsString) are identical.
KG_XM:=Trim (FieldByName (' AA002). AsString) are identical.
KG_XB:=Trim (FieldByName (' AA007String). AsString) are identical.
KG_SFZH:=Trim (FieldByName (' AA003). AsString) are identical.
KG_SSZS:=Trim (FieldByName (' AA015String). AsString) are identical.
FrpKGDY. LoadFromFile (fr3Path);
FrpKGDY. PrepareReport ();


FrpKGDY. PrintOptions. ShowDialog:=False;
FrpKGZDY. Print;


FrpKGDYGetValue (const VarName: String; Var Value: the Variant);
The BEGIN
If CompareText (VarName, 'KG_XM')=0 then
The begin
Value:=KG_JB;
end;
.
.
.
.
END

CodePudding user response:

Has nothing to do with the code, it is related to your report design, such as the page footer, or any other Band height is too high,
Or control the number of print pen, but does not rule out the problem of printer

Test yourself

CodePudding user response:

Design report when no page footer, I was directly put controls on the reprotpage, isn't it the reason,

CodePudding user response:

Inspection report designer components on, under, around the height of the width, such as band,,,

CodePudding user response:

Use is A4 should not super report it

CodePudding user response:

Print set other options, set "double" to "Simplex" is no problem, has examined the print is a one-way, don't know what the problem is, how should continue to consult, Delphi directly set "double" is set to "Simplex"

CodePudding user response:

refer to fifth floor response:
print set other options, set "double" to "Simplex" is no problem, has examined the printing is a one-way, don't know what the problem is, how should continue to consult, Delphi directly set "double" is set to "Simplex"

The modified directly under the control panel, it is ok to save, not in the program,

CodePudding user response:

refer to 6th floor response:
refer to fifth floor response:
Print set other options, set "double" to "Simplex" is no problem, has examined the print is a one-way, don't know what the problem is, how should continue to consult, Delphi directly set "double" is set to "Simplex
"
The modified directly under the control panel, it is ok to save, not in the program,


How to set up?

CodePudding user response:

I also am this problem, this is the width of the page setup fastreport than when printing ability of error,,, has been solved

CodePudding user response:

Fastreport design when it is best to A4 or B5 otherwise print will appear all sorts of unexpected problems, '
How to print a page is the length of the paper set up the long, or have hidden controls what good look,

CodePudding user response:

Print content height beyond the standard of design,

CodePudding user response:

Beyond the height of the actual paper