Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Viewing/rendering PDF file(Generating reports using PDF file.)
Viewing/rendering PDF file [message #1805999] Tue, 30 April 2019 10:03 Go to next message
Mark Novem Grisola is currently offline Mark Novem GrisolaFriend
Messages: 14
Registered: November 2017
Junior Member
hello Mat,

Good day.

I want to render a pdf file for a report just like the example from the old version of scout, but i having a problem because the Interface IShell (eclipse.scout.rt.shared-2013-02-06_S-3.8.2RC3) does not exist anymore. What i was thinking, may be if i could just include the specific jar package were the IShell exist into my project it may solve my problem. Is it a good idea? or is there any latest example of eclipse scout for generating report were i can look on to? i am using JasperSoft Studio as my third party.

I would be very much happy and glad if you can share a little of your time for assisting my concern.

sincerely,

Mark
Re: Viewing/rendering PDF file [message #1806005 is a reply to message #1805999] Tue, 30 April 2019 10:42 Go to previous messageGo to next message
Andre Wegmueller is currently online Andre WegmuellerFriend
Messages: 66
Registered: September 2012
Location: Baden-D├Ąttwil, Switzerla...
Member
Hi Mark. Which version of Scout do you use now? Since v5.1 Scout is a web-framework. It does not have any built-in facility to create PDF files, but you may use whatever tool or library best fits your requirements to do that.

The important part is: you must create the PDF document on the UI server and download that document from there. I'd recommend to store the PDF document in a org.eclipse.scout.rt.platform.resource.BinaryResource and call the method AbstractDesktop#openUri(BinaryResource res, IOpenUriAction openUriAction). This causes the Scout client which runs in the browser, to download the given PDF document (BinaryResource).

Open source Scout has no PDF viewer widget, so you must provide a custom widget or -field for that. I'd recommend to use PDF.JS, or (if you don't need to support older browsers) you could try to use an AbstractHtmlField, set the BinaryResource as an attachment and use the EMBED tag.



Eclipse Scout Homepage | Documentation | GitHub
Re: Viewing/rendering PDF file [message #1806031 is a reply to message #1806005] Wed, 01 May 2019 05:47 Go to previous message
Mark Novem Grisola is currently offline Mark Novem GrisolaFriend
Messages: 14
Registered: November 2017
Junior Member
Hello Andre,

Thank you for a quick reply. Actually i am using version 8 of scout and when i done with my problem (report genertion) i am gonna move into version 9.0. I am using the old version of scout (3.0) as a reference only for generating pdf report.

Yeah, i think, what you just suggested about the location or placement of report is a nice method & your recommendation its already a lot of information for me..

Thank you so much Andre.

Sincerely,

Mark
Previous Topic:Translation of texts built into the scout platform
Next Topic:Authentication in Scout 8
Goto Forum:
  


Current Time: Mon Dec 09 15:19:44 GMT 2019

Powered by FUDForum. Page generated in 0.01985 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top