Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 9 of 9 total
Thread How To Generate A Report?
Mon, Aug 27 2012 11:46 PMPermanent Link

Frederick Chin

I am going through EWB and have studied the online manual but I can't figure out how to generate a report for printing to the printer.

Specifically, I am looking at how to:-

o   Layout the format
o   Save the format to a file
o   Generate the report for printing to the printer or PDF file
o   Allow the user to make changes to the layout

Any pointers would be appreciated.

Frederick
Tue, Aug 28 2012 12:48 AMPermanent Link

Raul

Team Elevate Team Elevate


This is bit tricky - EWB is javascript so you're running inside the
browser (sandbox) environment so accessing files and printers is not
allowed.

I think best idea for now would be to have the report generated on the
server and then serve it up from there 0 i think Tim was planning to do
a sample for PDF display so maybe check back in demos area soon.

Raul



On 8/27/2012 11:46 PM, Frederick Chin wrote:
> I am going through EWB and have studied the online manual but I can't figure out how to generate a report for printing to the printer.
>
> Specifically, I am looking at how to:-
>
> o   Layout the format
> o   Save the format to a file
> o   Generate the report for printing to the printer or PDF file
> o   Allow the user to make changes to the layout
>
> Any pointers would be appreciated.
>
> Frederick
>
Tue, Aug 28 2012 1:40 AMPermanent Link

Frederick Chin

Ouch! I guess it won't be as simple as report writing in Delphi then.

Frederick
Tue, Aug 28 2012 6:50 AMPermanent Link

Walter Matte

Tactical Business Corporation

>Frederick Chin wrote:

>Ouch! I guess it won't be as simple as report writing in Delphi then.

>Frederick


It will be as simple as Delphi - it will not be as simple as working only in a Windows Environment.

Walter
Tue, Aug 28 2012 9:57 PMPermanent Link

Frederick Chin

Walter,

/*
It will be as simple as Delphi - it will not be as simple as working only in a Windows Environment.
*/

Do you have any sample code I could use? I very much like to use EWB but without reporting, it's a no-go for me.

Frederick
Wed, Aug 29 2012 1:51 PMPermanent Link

Peter

Am 29.08.2012 03:57, schrieb Frederick Chin:
> I very much like to use EWB but without reporting, it's a no-go for me.

you can use a php-library like tcpdf (http://www.tcpdf.org/) on the
server side. It's easy to use.

Greetings ... Kiffi
Wed, Aug 29 2012 4:26 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Frederick,

<< Do you have any sample code I could use? I very much like to use EWB but
without reporting, it's a no-go for me. >>

The main issue is creating the reports on the server-side in HTML or PDF
format, and then using a TPage (HTML) or TPlugin (PDF) component to display
them in the application.  I'll be adding a Print option to the TPage
component shortly, while the TPlugin component just surfaces whatever the
PDF plugin provides in terms of visual printing options for the user.

If you have any other questions, please let me know.

Tim Young
Elevate Software
www.elevatesoft.com
Wed, Aug 29 2012 10:47 PMPermanent Link

Frederick Chin

/*
you can use a php-library like tcpdf (http://www.tcpdf.org/) on the
server side. It's easy to use.
*/

Thanks. I will check it out.

Frederick
Wed, Aug 29 2012 10:48 PMPermanent Link

Frederick Chin

Tim,

/*
The main issue is creating the reports on the server-side in HTML or PDF
format, and then using a TPage (HTML) or TPlugin (PDF) component to display
them in the application.  I'll be adding a Print option to the TPage
component shortly, while the TPlugin component just surfaces whatever the
PDF plugin provides in terms of visual printing options for the user.
*/

Thanks for the update. I am looking forward to it.

Frederick
Image