Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Save AS parameters in Impromptu6

Status
Not open for further replies.

vjmanda2

Technical User
Aug 22, 2002
1
US
Team!

I am automating report generation using VB. I am calling impromptu application, opening the report & trying to save the output into .pdf format.
But when I use, impRpt.saveas "saved.pdf", it is saving it into a .pdf but I cannot open it using Adobe. Adobe complains that it is not in the correct format.

I believe that I am missing something very simple. Please help!!!!

My code sample is...

set objRpt = objImp.openreport("report.imr")
objRpt.RetriveAll
objRpt.SaveAs "Saved.pdf"
objRpt.CloseReport

Thanks a ton!
 
The proper syntax is:

Set objPDFPub = objImpRep.PublishPDF
objPDFPub.Publish "C:\Temp\Annual_Sales.pdf"

Hope this helps,

Dave Griffin
The Decision Support Group
Reporting Consulting with Cognos BI Tools
"Magic with Data"
[pc2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top