cancel
Showing results for 
Search instead for 
Did you mean: 

How to print the smartforms to the windows local printer from WD4A

Former Member
0 Kudos

Hi Experts,

How to print the Smartforms to the windows local printer (LOCL) from Webdynpro for ABAP, where the application runs within SAPGUI.

I created a T-code for the application which runs within SAPGUI. And why its not finding the windows local printer in webdynpro application, where it does prints in SE38 custom program.

And this application does not require to show the pdf preview, as it is created in ZPL code especially for Zebra Printer.

Your help is highly appreciated.

Thanks,

Raj

View Entire Topic
thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

When a WDA is running within the SAPGUI - it is still actually running within a web browser. The SAPGUI is just hosting the Web Browser in place. This means you have the same technical limitations with regards to interaction with the desktop. It is not possible to connect to LOCL from a Web Dynpro application because there is not connection to the SAPGUI/Desktop.

Former Member
0 Kudos

Hi Thomas,

Thanks for your response.

The users are going to use this application through a third party, they doesnt even have SAPGUI in their system.

But they need to print the smarfroms to their windows local printer.

Please can you suggest how can I over come this problem? Is there any possibilities to accomplish this task?

Thanks,

Raj

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

My suggestion would be to conver the form output to PDF and send the PDF to the client side from WDA. The PDF will open in Acrobat Reader and then the user can print to any local printer they want.

Former Member
0 Kudos

Hi Thomas,

Thanks for the response.

I tried that, and i gave the pdf preview for the Smartfoms, and the users can able to choose the print button on the pdf, it works fine.

But there are some other smartforms which are created in ZPL language especially for Zebra printers. These smartforms cannot generate pdf preview. This shows only the ZPL code itself instead of showing the content of the smartform, so i cannot show these smartforms to the users.

Now am in a situation where i cannot do this either.

Thanks,

Raj

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

>But there are some other smartforms which are created in ZPL language especially for Zebra printers.

Then it is pretty straight forward. You can't just use the frontend print option. You will need to setup each of these printers within the SAP backend print infrastructure and print them via the ABAP spool to those printers.

Former Member
0 Kudos

Hi Thomas,

Thanks for the solution

Thanks,

Raj