cancel
Showing results for 
Search instead for 
Did you mean: 

pdf in sap businessobjects design studio

former_member241445
Participant
0 Kudos

hello ,everyone.

I have to use pdf to print my report, so I have set a image as a button to print my report,I was work fine in sap design studio while I was adding an local image into my report ,but when I change the path of image to url,I can see image but I can't print the image.

follow pocture,picture one is what I see,and what I print should like it,but after I print ,I just get picture two.

is the image of url can't print?

waittting for your help!

Jing.

Accepted Solutions (1)

Accepted Solutions (1)

former_member265529
Contributor
0 Kudos

Hi Jing Zhang,

If you have configured save as PDF drive in your browser you can use Application.print(); script.

You can see it in chrome browser as it comes with that option. In print screen you can select save as PDF in chrome.

It can be used as work around for now

Thanks,

Poovarasan

former_member241445
Participant
0 Kudos

Hey,Pooarasan.

Where did you find the Application.print(). I'm try to use it,but I haven't find this script.

And what you said configured saved as PDF drive in my browser is mean?

I'm very interesting what you said ,can you share?

Thanks.

Jing

former_member265529
Contributor
0 Kudos

Hi Jing Zhang,

The Application.print(); script is used to call predefined print function in our browser.

It is now removed from application but the API is still can be used.

In chrome you can select save as pdf option as shown using change button.

Similarly, you can do it on other browsers but you need to install some drivers for that.

Thanks,

Poovarasan

former_member241445
Participant
0 Kudos

Hi Poovarasan.

is it write in design studio? I've tried write in cilick script,but its error.

Thanks.

Jing

former_member265529
Contributor
0 Kudos

Hi Jing Zhang,

Yes it is to be used in design studio.

Is the print(); is stroked out in scripting?

is that you are mentioning as an error?

you can ignore that.

Thanks,

Poovarasan

former_member241445
Participant
0 Kudos

Hi Poovarasan.

After I use Application.print(),which will show follow wrong.

Thanks.

Jing

former_member265529
Contributor
0 Kudos

Hi Jing Zhang,

Sorry for my typo, it is APPLICATION.print();

Thanks,

Poovarasan

former_member241445
Participant

Hey,Poovarasan.

It doesn’t matter.it worked well now even though it just use in google browser,but fortunately,our customer just use google.

You helped me again.

Thanks.

Jing

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Jing,

what is the image extension? .png, .jpeg, ...?

I had issues with .jpeg image, when I used PDF.exportApplicationScreen().

Regards,

Giulia

former_member241445
Participant
0 Kudos

Hi,Giulia.

My image extension is .png.

what your issues is?can't export it?

Thanks.

Jing

Former Member
0 Kudos

Hi Jing,

I can not export jpg image with PDF.exportApplicationScreen(). So I used icon, instead of image. I created a font that contain my image and I followed this blog to add custom font for the icon component.

I suggest to use PDF.exportPanelScreen(panelArray);.

Regards,

Giulia

former_member241445
Participant
0 Kudos

Hi Giulia.

I've tried PDF.exportPanelScreen(panelArray),but it still false,mabe it can't print url image.

Thanks.

Jing

TammyPowlas
Active Contributor
0 Kudos

Can you share how you are exporting to PDF? The script associated with it? I also recommend reviewing SAP Note https://launchpad.support.sap.com/#/notes/2227751/E 2227751 - Considerations when Working with Export to PDF in Design Studio 1.6

former_member241445
Participant
0 Kudos

Tammy,I'm sorry to reply so late.

I just use a click event of the image,and I use this script:

PDF.exportApplicationScreen();

I was in UI5 m model,and the image,I was use a url to match the picture that I save in service.

I've review the note you said,why design studio 1.6 can't export GEOMAP,because it is use url ?

Thanks.

Jing

Former Member
0 Kudos

Hi Jing,

Unfortunately we do not support the exporting of Geo maps in Design Studio 1.6. A geo map adds extra complexity to our PDF exporting solution which we couldn't add to the 1.6 release.

This is a popular requirement on our road map for future development in the Design Studio team.

Thanks,

Conor