Jump to content

PDF Problems in IIS and UNIGUI


mikelustosa

Recommended Posts

I have the following routine to generate and view pdf files:

 

ReportName := 'report_' + FormatDateTime('ddmmyy_hhmmss', Now) + '.pdf';
MainModule.UniMainModule.rel_indicadoresEnfermeiro.AllowPrintToFile := True;
MainModule.UniMainModule.rel_indicadoresEnfermeiro.ShowPrintDialog := False;
MainModule.UniMainModule.rel_indicadoresEnfermeiro.DeviceType := dtPDF;
MainModule.UniMainModule.rel_indicadoresEnfermeiro.TextFileName := UniServerModule.LocalCachePath + ReportName;
MainModule.UniMainModule.rel_indicadoresEnfermeiro.Print;
UniURLFrame1.URL := UniServerModule.LocalCacheURL + '/' + ReportName;
 
In the ISAPI project running .exe, the PDF is displayed in the browser normally.
But when I publish the DLL in IIS, the system simply hangs and displays nothing.
 
I'm using report builder and IIS 6, Delphi Seatle and UNIGUI
 
Can anybody help me?

 

 

Link to comment
Share on other sites

IIS cann't call Exe to generate PDF ,

 

refer 

 

Demos\Desktop\FastReport  sample.

 

Demos\Desktop\FastReport - MultiReport

 

can Compile in IIS  generate PDF.

But does this demo generate the dll? I need to generate the dll, publish to IIS and generate the PDF with Report Builder and display in the browser

Link to comment
Share on other sites

pp.jpgmodal preview & ModalCancelDialog = false; showCancelDialog and showprintDialog

 
I set it up your way. Now it loads the UniURLFrame1.URL: = UniServerModule.LocalCacheURL + ReportName. But the main screen appears in place of the PDF. What madness! kk
 
Look:
 
www.softmaisbrasil.com.br/imagem.jpg
Link to comment
Share on other sites

The cracked version?

Demo version.

 

I'm almost giving up using unigui. Does not show the PDF in IIS!

 

the unigui repeats the main screen, instead of displaying the PDF file. Look:
 
With DLL:
www.softmaisbrasil.com.br/imagem.jpg
 
With EXE:(it's right)
www.softmaisbrasil.com.br/imagem2.jpg
 
for both it's the same routine:
 
ReportName := 'report_' + FormatDateTime('ddmmyy_hhmmss', Now) + '.pdf';
MainModule.UniMainModule.rel_indicadoresMedico.AllowPrintToFile := false;
MainModule.UniMainModule.rel_indicadoresMedico.ShowPrintDialog := false;
MainModule.UniMainModule.rel_indicadoresMedico.DeviceType := 'PDF';
MainModule.UniMainModule.rel_indicadoresMedico.ArchiveFileName := UniServerModule.LocalCachePath + ReportName;
MainModule.UniMainModule.rel_indicadoresMedico.Print;
UniURLFrame1.URL := UniServerModule.LocalCacheURL + ReportName; 
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...