Home > Back-end >  INTRAWEB FASTREPORT output reports
INTRAWEB FASTREPORT output reports

Time:11-03

Masters,
I use the INTRAWEB 15 + FASTREPORT 6.0 to achieve browser side generate reports (that is, in a temporary directory on the server side to generate PDF) code is as follows:


PROCEDURE TIWFORM1. Preview_frx (tbname: string; Doc_no i_code: string);
VAR
DM: TDATAMODULE1;
SQL1: STRING;
PDF_PATH: STRING;
PDF_GUID: STRING;
PDF_FILENAME: STRING;
FR3_LOADPATH: STRING;
I: INTEGER;
FRXRP: TfrxReport;
FRXPDFEX: TfrxPDFExport;
The begin
FRXRP:=TFRXREPORT. Create (SELF);
FRXPDFEX:=TFRXPDFEXPORT. Create (SELF);
FR3_LOADPATH:=WEBAPPLICATION ApplicationPath + 'PRINT_MODLE_TYPE \';
IWRDGP_PRINT_DETAIL. Items. The Add (FR3_LOADPATH);
PDF_PATH:=WEBAPPLICATION ApplicationPath + 'lable \';
PDF_GUID:=getGUID;
PDF_FILENAME:=PDF_PATH + PDF_GUID + 'PDF';
DM:=TDATAMODULE1. Create (SELF);
SQL1:='SELECT * FROM' + TBNAME;
DM.SSPDS.DataSet.Com mandText:=SQL1;
DM. SSPDS. Active:=true;
DM. SSPDS. DataSet. Active:=true;
FRXRP. LoadFromFile (FR3_LOADPATH + IWEDIT_FR3NAME. Text);
FRXDBDATASET1. The DataSet:=DM. SSPDS;
FRXRP. The DataSet:=FRXDBDATASET1;
FRXRP. PrintOptions. ShowDialog:=false;
FRXPDFEX. ShowDialog:=FALSE;
FRXPDFEX. FileName:=PDF_FILENAME;
FRXRP. PrepareReport ();
FRXRP. Export (FRXPDFEX);
DM. SSPDS. DataSet. Active:=FALSE;
DM. SSPDS. Active:=FALSE;
DM. Free;
FRXRP. FREE;
FRXPDFEX. FREE;
end;

In the process of the actual test server IIS INTRAWEB generate DLL files on the server, the question now is, IIS starts first open IE generating PDF report didn't ask, don't close the IE could have been generated, but after close before open IE again open the IE, unable to generate reports, tracking and found FRXRP. PrepareReport (); Did not perform well,

Hope masters teach you one, two

CodePudding user response:

What is not normal execution errors, or what is unusual,

CodePudding user response:

Client IE in the execution has been exported hope of PDF file, there is no error window

CodePudding user response:

refer to the second floor steven_zk response:
client IE in the execution has been exported hope of PDF file, there is no error window

You said "tracking and found FRXRP PrepareReport (); Not normal execution ", arguably, there should be a mistake here,
You should FRXRP is generated dynamically, and the last time it doesn't matter; File name is GUID files should not be repeated, so, you may need to expand the scope of error checking,
The client will have been waiting for, because the server and completes, did not return data,

CodePudding user response:

Now is to follow to the second open IE PREPAREREPORT stopped () is executed, the server side also have no what can track, how could've picked?
  • Related