Jump to content

TUniPDFFrame


picyka

Recommended Posts

6 minutes ago, Sherzod said:

Você pode testar com uma demonstração padrão primeiro?

C:\Program Files (x86)\FMSoft\Framework\uniGUI\Demos\Desktop\PDFViewer - (it works)

C:\Program Files (x86)\FMSoft\Framework\uniGUI\Demos\Desktop\PDFViewer - UniPDFFrame (does not work)

Link to comment
Share on other sites

5 minutes ago, Sherzod said:

Hello,

Make a simple testcase and send via PM if possible.

Test with example C:\Program Files (x86)\FMSoft\Framework\uniGUI\Demos\Desktop\PDFViewer -

UniPDFFrame (does not work) PDF sent in private

Link to comment
Share on other sites

17 minutes ago, picyka said:

Test with example C:\Program Files (x86)\FMSoft\Framework\uniGUI\Demos\Desktop\PDFViewer -

UniPDFFrame (does not work) PDF sent in private

In the console I see the following error:

Warning: getOperatorList - ignoring errors during task: RenderPageRequest: page 0

Link to comment
Share on other sites

Workaround...

procedure TMainForm.UniListBox1Change(Sender: TObject);
begin
  if UniListBox1.ItemIndex > -1 then
  begin
    //UniPDFFrame1.PdfURL := FUrl + UniListBox1.Items[UniListBox1.ItemIndex];
    UniPDFFrame1.JSInterface.JSCall('setUrl', [FUrl + UniListBox1.Items[UniListBox1.ItemIndex]]);
  end;
end;

 

  • Like 1
Link to comment
Share on other sites

40 minutos atrás, Sherzod disse:

Solução alternativa...

procedure TMainForm.UniListBox1Change(Sender: TObject);
begin
  if UniListBox1.ItemIndex > -1 then
  begin
    //UniPDFFrame1.PdfURL := FUrl + UniListBox1.Items[UniListBox1.ItemIndex];
    UniPDFFrame1.JSInterface.JSCall('setUrl', [FUrl + UniListBox1.Items[UniListBox1.ItemIndex]]);
  end;
end;

 

Worked perfectly

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...