report.Print() problem

Stimulsoft Reports.WEB discussion
Post Reply
AbdulAleem
Posts: 37
Joined: Tue Sep 15, 2009 9:42 am
Location: jeddah

report.Print() problem

Post by AbdulAleem »

Hi

Iam using the following code to print the report.

StiReport report = new StiReport();

report.Load(Server.MapPath("Report.mrt"));

report.Print(false);


It is not working in client PC but it is working in my PC.

What are the prerequistes for deploying the stimulsoft.

I have added the following references Stimulsoft.Base.dll, Stimulsoft.Report.dll , Stimulsoft.Report.Web.dll , Stimulsoft.Report.WebDesign.dll to the BIN folder.

I have not made any changes in the web.config.

Please provide the sample code for deploying the stimulsoft dlls.

I do not want to use stimulsoft report viewer for printing the report.

Kindly help me,this is very critical and urgent.

Thanks,
Abdul Aleem.



Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

report.Print() problem

Post by Ivan »

Hello,

Please check the following topic in our knowledgebase:
http://stimulsoft.helpserve.com/index.p ... icleid=310
It is impossible to print a report without a WebViewer on a page.
If you call the report.Print() method, then printing will be done on a printer that is connected to the server.
Printing to the client is possible only using the WebViewer.
You can implement it the following way: you need to put the WebViewer with the width and height of 1px on a page, and use its PrintToDirect(), PrintToPdf(), PrintToPopupWindow() methods.
Thank you.
AbdulAleem
Posts: 37
Joined: Tue Sep 15, 2009 9:42 am
Location: jeddah

report.Print() problem

Post by AbdulAleem »

Hello,

When I try to print using PrintToDirect(), PrintToPopupWindow() of WebViewer the print is not proper as designed in the report.

PrintToPdf() method prints properly but it is insecure since I do not want the user to download the report.

when the PrintToPdf() is called the report opens in acrobat reader through which user can easily save the report.

Is there any possiblity to print using PrintToPdf() without allowing the user to save the report in pdf format.

This is very urgent and critical.


Thanks,
Abdul Aleem.

Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

report.Print() problem

Post by Vladimir »

Hello,
When I try to print using PrintToDirect(), PrintToPopupWindow() of WebViewer the print is not proper as designed in the report.
Please try this solution:
When I print a report using the Web Viewer, the size of the printed page is not the same as the size of the page in a report. How do I fix this?

Is there any possiblity to print using PrintToPdf() without allowing the user to save the report in pdf format.
Unfortunately, Adobe Acrobat Reader has no way to hide the save file option.


Thank you.
Post Reply