cancel
Showing results for 
Search instead for 
Did you mean: 

How to print view contents

Former Member
0 Kudos

How can I print the whole view content

from a button on the view.

I have written a Printable implemented java class

and calling that from print button on my view, but it is not working

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi ,

Can I get the URL of the book u have mentioned

for help required on this topic .

also I am working on SP 9 .....

Thanks in advance,

Kavitha

Former Member
0 Kudos

Kavitha,

You can buy the book from SAP-Press and the link is http://www.sap-press.com/product.cfm?account=&product=H983.

Regards,

Raju

Former Member
0 Kudos

To my knowledge, a PrintButton UI element that triggers the browsers print function has just been developed, but I have no idea in which SP it will be included (SP 12 maybe?).

Another idea: You could (generically) traverse a view and render a printable representation in any format you need. The (excellent) new book by Chris Whealy ("Inside Web Dynpro") describes how this could be implemented.

Armin

HenrikD
Participant
0 Kudos

Hi,

Any news on the PrintButton UI?

Has it been discontinued? If not, which SP will it be included in?

Best regards,

Henrik

Former Member
0 Kudos

Hello Armin Reichert,

In wich chapter do you see the way to traverse a view to have a printable version ?

Thanks a lot.

Former Member
0 Kudos

Hi Kavitha,

Create a context variable "vaPrintData" type "String". "vaPrintData" is for holding the data to be print.

Create one "TextView" object (txtViewPrintData) in your text view object's text value map the context variable "vaPrintData".

On click of the "PRINT" button, in action handler set the data to be displayed to the value attribute "vaPrintData".

Hope this helps you

Regards,

Santhosh.C