Call web service and get automation error from PDFCreator

sarpherviz
Member Posts: 5
Hi
I'm open a codeunit as a web service and call it from .net. All the codes run successfully but one function call a report and mail it as PDF using PDFCreator and i'm getting an automation error.
This message is for C/AL programmers: Unable to create an instance of Automation Server {2A38400B-87E2-4398-A128-FE39E29FEFF3} with CLSID = 2a38400b-87e2-4398-a128-fe39e29feff3 Retrieving the COM class factory for component with CLSID {2A38400B-87E2-4398-A128-FE39E29FEFF3} failed due to the following error: 80040154..
When i search my computer registry records , i found that PDFCreator contains {2A38400B-87E2-4398-A128-FE39E29FEFF3} clsid.
Could someone help me.
I'm open a codeunit as a web service and call it from .net. All the codes run successfully but one function call a report and mail it as PDF using PDFCreator and i'm getting an automation error.
This message is for C/AL programmers: Unable to create an instance of Automation Server {2A38400B-87E2-4398-A128-FE39E29FEFF3} with CLSID = 2a38400b-87e2-4398-a128-fe39e29feff3 Retrieving the COM class factory for component with CLSID {2A38400B-87E2-4398-A128-FE39E29FEFF3} failed due to the following error: 80040154..
When i search my computer registry records , i found that PDFCreator contains {2A38400B-87E2-4398-A128-FE39E29FEFF3} clsid.
Could someone help me.
0
Comments
-
what version are you on?
I suggest that you create the RDLC for the report and don't use PDFCreator.
Instead change the code to just call the report
Report.SAVEASPDF(Number, FileName[, Record])0 -
NAV 2009 R2
I solve this problem.
This was because of PDFCreator version was wrong on server. I remove and reinstall the correct version this error solved.
But now i'm getting another error..
"Client callback (such as showing Pages) is not supported when executing custom Web services."
I run a report and create pdf but i couldn't achive that problem..0 -
sarpherviz wrote:"Client callback (such as showing Pages) is not supported when executing custom Web services."
Usually this error pops up when a process published as web webservice requires some sort of user interaction: please check if running it manually it needs some input/confirmation to be done and, if so, try to avoid it.* Daniele Rebussi * | * Rebu NAV Diary *0 -
sarpherviz wrote:NAV 2009 R2
I solve this problem.
This was because of PDFCreator version was wrong on server. I remove and reinstall the correct version this error solved.
Interesting ..! Which version do you use?
Do you hide request page/form when you print the report if your report have the request form/page? If not you should hide it when you run the report.- OnInit CurrReport.USEREQUESTFORM(GUIALLOWED)
Regards,
YukonMake Simple & Easy0 -
ara3n wrote:what version are you on?
I suggest that you create the RDLC for the report and don't use PDFCreator.
Instead change the code to just call the report
Report.SAVEASPDF(Number, FileName[, Record])
Looks to be the best option but how to merge this pdf with a pdf file/page in where the logo and footers are set?0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions