Using PDFExport with IntraWEB

Serge GirardSerge Girard FRANCE, NANTES, HAUTE-GOULAINE
edited 10:30AM in FastReport 4.0
Hello,

I'm newbie on this forum . Migrating an application from D2010+Intraweb+Rave to XE4+Intraweb+JQuery+Fastreport i stuck on PDFExport
I tried many solutions
1 - components frxReport,frxPDFExport,frxDataSet in the UserSession unit
2 - components frxReport,frxPDFExport,frxDataSet in the DataModule unit
3- components frxReport,frxPDFExport,frxDataSet on a IWForm
4- components frxReport,frxPDFExport built at runtime
etc...
results are the same : Pdf file size < 1K and error opening file
=> not a permission problem , files are exported / overwrote or created

Last attempt , using a simple Hello World report (no dataset)
FrReport:=TfrxReport.Create(nil);
try
 FrReport.EngineOptions.DestroyForms := False;
 FrReport.EngineOptions.SilentMode := True;
 FrReport.EngineOptions.EnableThreadSafe:=true;
 FrReport.EngineOptions.TempDir:='F:\Files';
 { This property switches off the search of the global list }
 FrReport.EngineOptions.UseGlobalDataSetList := False;
// FrReport.EnabledDataSets.Add(FrxDBDataset1);
 FrReport.EngineOptions.UseFileCache := false;
 FrReport.ShowProgress := False;
 
PDF := TfrxPDFExport.Create(nil);
 PDF.ShowDialog := False;
 PDF.ShowProgress := False;
 PDF.FileName:='F:\Files\hello.pdf';
 FrReport.LoadFromFile('hello.fr3');
 if FrReport.PrepareReport then frReport.Export(PDF);

finally
  PDF.Free;
  frReport.Free;
end;

The CGI version of the report is ok and i can export it to pdf file so i think it is the couple Intraweb+FastReport the problem

Question(s) :
as the Embarcadero RAD Edition version a limitation for this job ? (thread problem with Intraweb)
i failed where ? reading some EDN post i saw it was possible , none of the solutions exposed worked for me [img]style_emoticons/<#EMO_DIR#>/mad.gif" style="vertical-align:middle" emoid=":angry:" border="0" alt="mad.gif" /> Any suggestions ? Serge[/img]

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.