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 2:30AM
    Sorry, but
    TfrxOLEView(frxReport1.FindObject('OLE1')).OleContainer.CreateObjectFromFile('C:\test.pdf', False);
    code works OK for me

Leave a Comment