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 ();
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"