130
Views
5
Comments
Print Preview for downloaded file
Question
Application Type
Reactive

Hi All,

I am looking for a solution , where I need to Print preview of downloaded file.

I have gone through lot of forum post's but still my scenario not available,

I am attaching one sample oml in that i am able to upload and print but direct preview option is not available.

can someone help me here, on this.

JS being used is:

var pdf_newTab = window.open("");

 pdf_newTab.document.write( "<iframe width='100%' height='100%' src='data:application/pdf;base64, " + encodeURI($parameters.BinaryData) + "'></iframe>" );


Thank You.

PDfOpen.oml
2021-06-02 20-50-04
Márcio Carvalho

What do you mean by the direct preview option?

By previewing the pdf file on your screen?

You can use a iframe like it is done in this post

https://www.outsystems.com/forums/discussion/77734/storing-and-displaying-pdfs/

Kind Regards,

Márcio


UserImage.jpg
Kumar S

Hi

I am looking for print preview screen instead of opening pdf file in new tab and clicking print icon there,

I want to bypass these actions and what print preview popup on screen on click of button.

Hoping you understood my requirement.

Thank you 


2021-06-02 20-50-04
Márcio Carvalho

Have a look at the OML, is that what you want?


PDfOpen.oml
UserImage.jpg
Kumar S

Hi,

Now on click of print icon  we will be getting print preview screen, can we skip that click on Print icon and have Preview screen, something like this with print button.

Thank You.

UserImage.jpg
Kumar S

Hi Márcio Carvalho,

if there is any way to do this,

Please let me know on this.


Thank You.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.