DirectToPrint()

Stimulsoft Reports.WEB discussion
Post Reply
fvfv
Posts: 6
Joined: Wed Sep 10, 2008 11:05 am

DirectToPrint()

Post by fvfv »

I understand that DirectToPrint() only works on the stanrdard webviewer (not fx or silverlight).

Is there a reason why the FX Version does not have this function ? After all the FlashPlayer 10 does have a print function built which prints the "Frames" of the movie.

I hope you understand that the webviewer (not SilverLight or Flash) is very limited in its printing capabilities.

For instance, if you have a landscape report you have to manually set landscape on every browser application that runs the report. Then you have to pray that the size of the paper matches the size of the report or else you will get a bunch of blank pages. There is no programatic way of printing a landscape report or tell it to not print header or footer, and I do understand that this is a limitation of the browser itselft and that Stimulsoft cannot control that.

This basically renders the usefulness of the standard webviewer report to nothing as you cannot reliable print reports on HTML format, because you depend on the poor implementation of printing Internet Explorer or FireFox have.

So this leaves us with Either SilverLight or FX. I tried silverlight and I beleive the control is not ready for prime time quite yet. I will wait for for a later revision.

So FX is the only viable solution for printing at this time. What Can I expect from StiMulsoft developers as far as enabling DirectToPrint on the FX Version ?

Thanks for your support.
fvfv
Posts: 6
Joined: Wed Sep 10, 2008 11:05 am

DirectToPrint()

Post by fvfv »

And now, after further review, I send a 12 page report from the FX version to the printer and in my printer queue I see that the document is almost 100 MB !!!!

If I use the winforms viewer and export to pdf the resulting pdf is about 580K. When I print this pdf from adobe or foxit reader it generates a spool file about 5 MG .

Where do the other 95MG come from !!!!!!!!!!!!!!!!!!!!

Am I doing something wrong ? Is there a method from the FX version that prints normal sized files ?


Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

DirectToPrint()

Post by Andrew »

Hello,

Unfortunately, printing in Flash is possible only through the images. If to enable printing in a vector mode, it will be printed in black and white mode without halftones, and font sizes will not be exactly complied. Printing from code is also impossible as it is forbidden by Flash Player security.

The only good method of printing from the Web - it is export a report to PDF with further printing.

Thank you.
fvfv
Posts: 6
Joined: Wed Sep 10, 2008 11:05 am

DirectToPrint()

Post by fvfv »

Andrew wrote:Hello,

Unfortunately, printing in Flash is possible only through the images. If to enable printing in a vector mode, it will be printed in black and white mode without halftones, and font sizes will not be exactly complied. Printing from code is also impossible as it is forbidden by Flash Player security.

The only good method of printing from the Web - it is export a report to PDF with further printing.

Thank you.
That means that the FX and the SilverLight component are really good as long as you do not need to print the report ?????

Your entire line of products is about printing a report, not just showing a pretty interface with a nice progress bar to show a report on the web.

How do I reliable print a simple textual report of 12 pages on the web without filling the spooler with a 100MG file ????
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

DirectToPrint()

Post by Vladimir »

Hello,

We have implemented printing as Flash and Silverlight technologies allows. If you have a specific suggestion regarding printing and how it can be implemented, we would be happy to consider this with interest.

Thank you.
fvfv
Posts: 6
Joined: Wed Sep 10, 2008 11:05 am

DirectToPrint()

Post by fvfv »

So I take it then that there is nothing that can be done with the current technologies.

Do the FXviewer or SLviewer components have a method to render to pdf so at least that part can be automated ?

For instance, on an ASP.net page I could use something like :

Rep = new StiReport();
rep.Load ("xxxxxx");
StiWebViewer1.Report = rep;

StiWebViewer1.RenderAsPDF();

In this case StiWebViewer1 is either the FXViewer or SLViewer component that runs on the web page.

And what the user gets is an adobe window or whichever pdf reader is installed on their computer.

Or at least StiWebViewe1.PrintToPdf() and that would force the user to Not Print but save as pdf .

Thanks.



Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

DirectToPrint()

Post by Jan »

Hello,
So I take it then that there is nothing that can be done with the current technologies.
We always try to use all possibles ways of printing under specific technology, but usually printing feature have big amount of restrictions. Its right for Adobe Flash, Silverlight and WPF.

Code: Select all

Do the FXviewer or SLviewer components have a method to render to pdf  so at least that part can be automated ?

For instance, on an ASP.net page I could use something like :

Rep = new StiReport();
rep.Load ("xxxxxx");
StiWebViewer1.Report = rep;

StiWebViewer1.RenderAsPDF();

In this case StiWebViewer1 is either the FXViewer or SLViewer component that runs on the web page.

And what the user gets is an adobe window or whichever pdf reader is installed on their computer.

Or at least StiWebViewe1.PrintToPdf() and that would force the user to Not Print but save as pdf .
You can create PDF file from report in any moment. In this case we don't restricted with specific technology. Also you don't need use viewer in this case. You can use following code to export report to pdf:

Code: Select all

rep = new StiReport();
rep.Load ("xxxxxx");
rep.Render(false);
report.ExportDocument(Stimulsoft.Report.StiExportFormat.Pdf, "1.pdf");
Code for sending pdf file to browser:

Code: Select all

rep = new StiReport();
rep.Load ("xxxxxx");
rep.Render(false);
Stimulsoft.Report.Web.StiReportResponse.ResponseAsPdf(myWebPage, rep);
Class Stimulsoft.Report.Web.StiReportResponse placed in Stimulsoft.Report.Web assembly. We can provide source code of this method if required.

Thank you.

Post Reply