Hello,
I have a Delphi program that uses OLE to automatically refresh and export to PDF BO reports.
In BO V5, everything was fine, the following code was exporting the WHOLE report to PDF :
BOApp := CreateOLEObject('BusinessObjects.Application.5');
BODoc := BoApp.Documents.Open('TEST.REP', FALSE, TRUE);
BODoc.ExportAsPDF ('C:\TEST.PDF');
Now, in BO V6, the following code
BOApp := CreateOLEObject('BusinessObjects.Application.6');
BODoc := BoApp.Documents.Open('TEST.REP', FALSE, TRUE);
BODoc.ExportAsPDF ('C:\TEST.PDF');
crashes at the third line (message = "incorrect variable type") , but
BODoc.Reports.Item(1).ExportAsPDF ('C:\TEST.PDF');
works great(but contains only the first report).
Does someone know how to export in PDF a whole report with Business Object V6 ?
Thanks,
Stéphane
I have a Delphi program that uses OLE to automatically refresh and export to PDF BO reports.
In BO V5, everything was fine, the following code was exporting the WHOLE report to PDF :
BOApp := CreateOLEObject('BusinessObjects.Application.5');
BODoc := BoApp.Documents.Open('TEST.REP', FALSE, TRUE);
BODoc.ExportAsPDF ('C:\TEST.PDF');
Now, in BO V6, the following code
BOApp := CreateOLEObject('BusinessObjects.Application.6');
BODoc := BoApp.Documents.Open('TEST.REP', FALSE, TRUE);
BODoc.ExportAsPDF ('C:\TEST.PDF');
crashes at the third line (message = "incorrect variable type") , but
BODoc.Reports.Item(1).ExportAsPDF ('C:\TEST.PDF');
works great(but contains only the first report).
Does someone know how to export in PDF a whole report with Business Object V6 ?
Thanks,
Stéphane