Barcode prnting with Webservice

vrushank
Member Posts: 16
Hey Guys,
I've been trying to print a barcode using web services. For this, i have exposed a codeunit web service which calls the NAV report that prints the barcode.
Following is the code:
BarcodeRep.SetBCodeTxt('MW031112345678BP-WP-0000128');
BarcodeRep.USEREQUESTFORM(FALSE);
BarcodeRep.RUNMODAL;
This works fine when i'm executing it through Classic or RTC, but the same gives me the following error when i'm running it using the web service.
I know that the error is due to the fact that i cannot do a run or runmodal when in web service mode. I'd like to know of any alternative of carrying out this printing business.
Thanks Guys!
I've been trying to print a barcode using web services. For this, i have exposed a codeunit web service which calls the NAV report that prints the barcode.
Following is the code:
BarcodeRep.SetBCodeTxt('MW031112345678BP-WP-0000128');
BarcodeRep.USEREQUESTFORM(FALSE);
BarcodeRep.RUNMODAL;
This works fine when i'm executing it through Classic or RTC, but the same gives me the following error when i'm running it using the web service.
I know that the error is due to the fact that i cannot do a run or runmodal when in web service mode. I'd like to know of any alternative of carrying out this printing business.
Thanks Guys!
A day without the sun is like night
0
Comments
-
Have a look at my thread : viewtopic.php?f=32&t=46507&hilit=print+pdf
Just make sure to:
- restart the service tier machine so that it loads the barcode font
- Read last post carefully! You need another component that does the actual printing, this is because you need a Network User where you can map your printers to. This Component then invokes the call to the pdf printer software (in my example foxit reader).
If you need any instruction the component that watches the folder & prints the pdf's let me know.0 -
Thank you Dev.Ch, I'm going to try the solution out, will let you know of the results!
Thanks once again!A day without the sun is like night0 -
Hey Dev.Ch,
Thank you for the solution. I've been sucessfull in printing the barcode from the pdf to the Barcode printer. However, I think i'd have to set the page properties of the pdf to fit the barcode page.
I'm printing on a 1 inch X 2 inch paper size, so at the moment, my barcode from pdf file doesn't fit the paper size.
Well, thanks once again buddy!A day without the sun is like night0
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