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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...