PDF is TfrxOLEView

edited March 2011 in FastReport 4.0
Please , I want too explime how can i do to use the function frxOleView to load pdf files

(the only way to use PDF is TfrxOLEView objec)

Example:

procedure TForm2.Button1Click(Sender: TObject);
begin
TfrxOLEView(frxReport1.FindObject('OLE1')).OleContainer.CreateObjectFromFile('C:\test.pdf', False);
FrxReport1.showreport;
end;

I only see an empty leaf

Thank you

Ivan Davila
System Zurita el original
Ecuator

Comments

  • gpigpi
    edited 4:07PM
    Sorry, but
    TfrxOLEView(frxReport1.FindObject('OLE1')).OleContainer.CreateObjectFromFile('C:\test.pdf', False);
    code works OK for me

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.