nav 2009 - codeunit webservices with automation variables

tayf
Member Posts: 6
Hi! i generate a webservice (in RTC) from a codeunit made by me that prints a invoice (from sales invoice header table) through PDFCreator.
I use some automation variables like "PDFCreator.clsPDFCreator" and "PDFCreator.clsPDFCreatorOptions" to cileonfigure some parameters and to specify the output path, filename and terminate execution program when all it´s done.
Everything runs fine if i run the codeunit in classic client but through the webservice it gives me a error :
the webservice is consume by a asp.net application.
Can anyone help me with this? thank you
I use some automation variables like "PDFCreator.clsPDFCreator" and "PDFCreator.clsPDFCreatorOptions" to cileonfigure some parameters and to specify the output path, filename and terminate execution program when all it´s done.
Everything runs fine if i run the codeunit in classic client but through the webservice it gives me a error :
This message is for C/AL programmers: Unable to create an instance of Automation Server PDFCreator.clsPDFCreatorOptions with CLSID = fcc886f6-e0df-4302-8be4-f8a8d9cb881c Retrieving the COM class factory for component with CLSID {FCC886F6-E0DF-4302-8BE4-F8A8D9CB881C} failed due to the following error: 80070005..
the webservice is consume by a asp.net application.
Can anyone help me with this? thank you

0
Comments
-
[Topic moved from 'NAV/Navision Classic Client' forum to 'NAV Three Tier' forum]Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Why are using pdf creator with nav webservice. You should you the new function
Report.saveaspdf0 -
I didn´t know about that new function! now it´s working properly! thank you ara3n0
-
You are welcome.0
-
Hi all,
I do face the same issue, same error.
This message is for C/AL programmers: Unable to create an instance of Automation Server PDFCreator.clsPDFCreatorOptions with CLSID =....
I know about the saveaspdf function but, i dont know rdlc report designing. So going for PDF creator.
is there any restriction in calling automation variables through webservices.?
please help.
Thank you,aav!o0 -
please any help on this?
Thank You
Avinashaav!o0
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