Jump to content


Photo

PDF Problems in IIS and UNIGUI


  • Please log in to reply
17 replies to this topic

#1 mikelustosa

mikelustosa

    Newbie

  • Banned
  • Pip
  • 9 posts

Posted 12 September 2017 - 10:11 PM

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?

 

 


  • 0

#2 Schuiab

Schuiab

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 315 posts

Posted 12 September 2017 - 10:31 PM

Hi,

 

try MainModule.UniMainModule.rel_indicadoresEnfermeiro.AllowPrintToFile := False;

 

i had same problem, but all working after changing settings in report builder


  • 0

#3 mikelustosa

mikelustosa

    Newbie

  • Banned
  • Pip
  • 9 posts

Posted 12 September 2017 - 11:54 PM

Hello! I did what you said. But the same problem continues, it does not display the PDF when I publish to IIS. Do you remember if there is any other configuration in rbuilder that should be wrong?


  • 0

#4 mikelustosa

mikelustosa

    Newbie

  • Banned
  • Pip
  • 9 posts

Posted 13 September 2017 - 12:15 AM

UP


  • 0

#5 mikelustosa

mikelustosa

    Newbie

  • Banned
  • Pip
  • 9 posts

Posted 13 September 2017 - 02:59 AM

I noticed that with the .EXE, cache is generated. But already with the DLL does not generate cache, so the PDF is not displayed?


  • 0

#6 billyChou

billyChou

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 113 posts

Posted 13 September 2017 - 07:23 AM

IIS cann't call Exe to generate PDF ,

 

refer 

 

Demos\Desktop\FastReport  sample.

 

Demos\Desktop\FastReport - MultiReport

 

can Compile in IIS  generate PDF.


  • 0

#7 Schuiab

Schuiab

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 315 posts

Posted 13 September 2017 - 11:17 AM

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


  • 0

#8 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 9661 posts

Posted 13 September 2017 - 12:21 PM

 

I'm using report builder and IIS 6, Delphi Seatle and UNIGUI

 

UniGUI edition & version?


  • 0

#9 mikelustosa

mikelustosa

    Newbie

  • Banned
  • Pip
  • 9 posts

Posted 13 September 2017 - 03:01 PM

UniGUI edition & version?

FMSoft uniGUI Complete Professional Edition v1.0.0.1397


  • 0

#10 mikelustosa

mikelustosa

    Newbie

  • Banned
  • Pip
  • 9 posts

Posted 13 September 2017 - 03:04 PM

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


  • 0

#11 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 9661 posts

Posted 13 September 2017 - 03:08 PM

FMSoft uniGUI Complete Professional Edition v1.0.0.1397

 

The cracked version?


  • 0

#12 mikelustosa

mikelustosa

    Newbie

  • Banned
  • Pip
  • 9 posts

Posted 13 September 2017 - 04:29 PM

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

  • 0

#13 mikelustosa

mikelustosa

    Newbie

  • Banned
  • Pip
  • 9 posts

Posted 13 September 2017 - 04:32 PM

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; 

  • 0

#14 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 9661 posts

Posted 13 September 2017 - 06:03 PM

 

 
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

 

 

This is not trial edition. You are using a pirated copy.


  • 0

#15 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 9661 posts

Posted 13 September 2017 - 06:05 PM

 

I'm almost giving up using unigui.

 

Yes you are free to give up on uniGUI because what you are using is a pirated copy.

 

Why do you think that we should help you?


  • 0

#16 Ronny Encarnacion

Ronny Encarnacion

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 505 posts

Posted 13 September 2017 - 06:32 PM

I think that as soon as you detect a user of the forum using pirated copy, should be banned immediately


  • 1

Ronny Encarnacion


#17 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 9661 posts

Posted 13 September 2017 - 08:27 PM

I think that as soon as you detect a user of the forum using pirated copy, should be banned immediately

I do so.

Sent from my SM-N900 using Tapatalk
  • 1

#18 Freeman35

Freeman35

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 142 posts

Posted 14 September 2017 - 11:35 AM

Farshad, If I were you, I'm not share trap questions info ;)


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users