cancel
Showing results for 
Search instead for 
Did you mean: 

How to print from webdynpro client

Former Member
0 Kudos

Hi Mobile friends,

I have a big problem, I don't know how to print a webdynpro screen from the mobile client. I'm developing webdynpro laptop applications for offline scenarios with Mobile 7.1. Can anyboy help me with this issue?

Regards,

David Faustini

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi David,

if you simply want to print the page you can use the print option of the browser in the file menu.

Regards,

Sahidur

Former Member
0 Kudos

Hi Sahidur,

Yes you have right, there is a print option under the mobile client. But my problem is that I need to create printable reports (text, tables, etc.) and the print option that you suggest is like a screenshot and don't print all the data that is contained on the WD Application, for example:

I have a WD Application with a table. The table has 300 rows, and the mobile client show me the first 40 rows and a scrollbar. When I use the print button, only print the 40 rows and not all the rows.

I think that now the problem is very clear, can you help me with this issue?

Best Regards,

David Faustini

Former Member
0 Kudos

Dear David,

If your scope is for Laptops, you can search on trying to export Adobe pdfs from Java. You may require freeware/opensource jar files which may also be available in the internet.

Regards,

Veera

Former Member
0 Kudos

Hi David,

as you have described it seems you need to generate some report and print it. one possible option is you can create a PDF report using tool like iText library for java. free jar file is available for the same. you can store the file in a repository or send to some network printer for printing.

For details about he iText library visit the link:

[iText Library Home|http://www.lowagie.com/iText/]

Regards,

Sahidur

Former Member
0 Kudos

Hi Sahidur,

Your suggestion was very helpfull. But now I have a problem, how to add the iText jar files to my webdynpro laptop Development Component. Please, remember that I'm developing apps for mobile laptops under Mobile 7.1 tech.

Best Regards,

David Faustini

Former Member
0 Kudos

Dear David,

You can add the jar files to your WebDynpro Laptop Project's Library. To do this follow my steps below:

1. Select your project in the Laptop UI Explorer pane.

2. Right click the project and go to Properties.

3. Go to Java Build Path.

4. Select the Libraries Tab.

5.Click Add external jars.

6. Add your Jar files.

Regards,

Veera

Former Member
0 Kudos

Hi Veeraraagavan,

This method is not possible with development component projects, because when you try to build the DC it's fail.

Regards,

David Faustini

Former Member
0 Kudos

Dear David,

For Laptop applications, refer to the NWDS help under:

Help->Help Contents->SAP NetWeaver CE Development Studio->Developer's Guide->Introduction to the SAP NetWeaver Developer Studio->Working with the Developer Studio->Referencing Libraries->Referencing an External JAR File

Regards,

Veera

Edit: Edited Help Path

Edited by: Veeraraagavan R on Jan 20, 2009 6:48 AM

Former Member
0 Kudos

Hi,

I follow the help page but these are my results:

1- When try to add a lib dc to my project with a compilation and assembly public part: The component fails to instal when is downloaded from the server.

2- When try to add a lib dc to my project with just a compilation public part: The component successfully instal when is downloaded from the server but the lib can't be resolved, when I put the jar under the libs folder of my client the problem solved.

Conclusions:

It's still an error on the SAP documentation with the use of external libs on a DC project.

Can any help me using external libs DC with an assembly part on Mobile 7.1?

Regards,

David Faustini

Former Member
0 Kudos

Hi David,

did you solve this issue? If yes, how?

I have a similar problem, but I want to use a JDBC driver to connect to network DB.

Does anyone have any hints about that?

Many thanks

BR

Roberto

Former Member
0 Kudos

Hi folks,

just few minutes ago, I found a way to work on that, I put my jdbc jar file into the lib folder of my client. Ok, now all the stuff works but how can I distrubute this jar file to the connected client?

thanks again

BR

Roberto

Edited by: roberto.urban on Oct 21, 2010 12:57 PM

Answers (0)