automate export a report in pdf . is it possible?

Stimulsoft Reports.PHP discussion
treviweb
Posts: 4
Joined: Tue Mar 22, 2011 10:56 am
Location: Italia

automate export a report in pdf . is it possible?

Post by treviweb »

Hello, I need to create a PDF of a specific report every hour to send it via email. is a function to call in php to generate the pdf?
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

automate export a report in pdf . is it possible?

Post by Vladimir »

Hello,

Unfortunately, it is impossible to implement, because PDF export is carried out on the client side.

Thank you.
treviweb
Posts: 4
Joined: Tue Mar 22, 2011 10:56 am
Location: Italia

automate export a report in pdf . is it possible?

Post by treviweb »

Thanks . Other format to export report ? ( jpg , png ? )
Is Possibile ?
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

automate export a report in pdf . is it possible?

Post by Vladimir »

Hello,

All report exports and report rendering is carried out on the client side.

Thank you.
chopper64
Posts: 26
Joined: Mon Dec 20, 2010 2:33 am
Location: Berlin

automate export a report in pdf . is it possible?

Post by chopper64 »

I am facing the same problem too. I need to create the PDF on the server side and save it in my database. There should be a program on "Export report"for the PHP version. Just an EXE that can be passed in the command-line parameters:

... / reportexport.exe-stimulsoft_report_key xxxxxx.mrt-stimulsoft_file_key = = = -stimulsoft_format_key

In PHP, you can then start the server with the exec (...) and you have the report in the file format that you need.

I think by the lack of server-side export loses ReportFx (PHP) on appeal. What use is the best web-based designer, if I can produce the final report only on the client and then painstakingly re-upload must be on the server.

In the. NET demos there are already something like ....
I do not understand ....
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

automate export a report in pdf . is it possible?

Post by Vladimir »

Hello,

We will will consider your suggestion soon. Most likely, we will add support for these parameters in the AIR application for export possibilities.

Thank you.
chopper64
Posts: 26
Joined: Mon Dec 20, 2010 2:33 am
Location: Berlin

automate export a report in pdf . is it possible?

Post by chopper64 »

Yes maybe the implementation in an AIR application is a good idea.

I find that following the proposed tool "ExportFX.EXE" the syntax of the INDEX.PHP should:

Code: Select all

stimulsoft_report_key = xxxxx - specifies the name of the Report Files
stimulsoft_file_key = yyyyy - specifies the name of the output flat file
stimulsoft_format_key = fff - defines the format of the output.
Stimulsoft_format_key may also contain a list of formats (PDF, DOC, XML, XLS;....)
Thus, the tool generate a call to multiple export files.

The call is then the same as the call of ViewerFX DesignerFX:

Code: Select all

/ server / ... / index.php?stimulsoft_client_key=ExportFx&timulsoft_report_key=xxxxxxx&stimulsoft_file_key=yyyyyyyy&stimulsoft_format_key=PDF;DOC
I find myself now at the stage that I implement the demo version in my portal to my boss to convince them to buy StimulsoftReports. Bear without the possibility of server-side file output I have basically no chance to enforce. I need this solution so as soon as possible .... as a BETA version ...
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

automate export a report in pdf . is it possible?

Post by Vladimir »

Hello,

Please clarify, do you need to initialize the saving of the exported report on the server using web-based viewer (through the export menu), or export reports using only an application on the server (for example, 'export.exe file_name export_format', where file_name and export_format are starting parameters)?

Thank you.
chopper64
Posts: 26
Joined: Mon Dec 20, 2010 2:33 am
Location: Berlin

automate export a report in pdf . is it possible?

Post by chopper64 »

Actually I need both.
Create For legal reasons, does my system automatically document files in the required format and archived in the database. For this I need a server-side application that can be based on a report template to create the document automatically. In parallel, the user must manually create reports and save the client side can.
I myself have been a Export.exe tried with the. NET programming libraries. but have failed repeatedly. I suspect that the threads with the DesignerFX templates are not 100% compatible, and vice versa.

In short: It should be extended the existing functionality and a possibility to be created, which can create documents on the server side. This should cover all formats are supported, which can also export the viewer via the Export menu.

The most professional solution would be safer if the rendering of reports would be done with a php-script. But the solution is a ExportFX.exe is used as command-line tool just ok. Main, the reports are on the server.

A download of files to create a way one can be easily implemented using PHP.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

automate export a report in pdf . is it possible?

Post by Vladimir »

Hello,

We send you for test the utility that works as you describe. To export a report should be specified the following parameters:

report_file: report template file name
export_file: exported file name for output
export_format: one of the following formats: pdf, excel, text, richtext

For example:

Code: Select all

ExportsFx.exe report_file=Report.mrt export_file=result.pdf export_format=pdf
The path to the files is relative to the application directory.

Return error codes of application:
0: action completed successfully
1: the report file does not exist
2: an erroneous report file name or the name contains invalid characters
3: error in saving exported report

Thank you.
Attachments
904.ExportsFx.zip
(2.59 MiB) Downloaded 1348 times
Post Reply