Stimulsoft options functionality

Stimulsoft Ultimate discussion
Post Reply
G.hammad
Posts: 67
Joined: Tue Jun 24, 2014 7:59 am

Stimulsoft options functionality

Post by G.hammad »

Hello ,

i need to know if i can use the functionality of print option, export options and select previous and next pages?what i mean i have some buttons in my screen for example: print screen >> must print the report by use same functionality of print option in stimulsoft and same as for export and pages . is there any way to do that


thank you,
G.hammad
Posts: 67
Joined: Tue Jun 24, 2014 7:59 am

Re: Stimulsoft options functionality

Post by G.hammad »

Hello,
what i mean use same functionality of report viewer but by code

i'm trying all of these code but the report not export :( and i don't know where the problem in my code
1.Dim Report As StiReport = New StiReport()
Report.Load("report.mrt")
Report.Render()
Report.SaveDocument("document.pdf")

2. Dim pdfSettings as StiPdfExportSettings = new StiPdfExportSettings()
report.ExportDocument(StiExportFormat.Pdf, "MyReport.Pdf", pdfSettings)

3. Dim service As StiPdfExportService = new StiPdfExportService()
Dim settings as StiPdfExportSettings = new StiPdfExportSettings()
Dim stream as MemoryStream= new MemoryStream()
service.ExportPdf(report, stream, settings)
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Stimulsoft options functionality

Post by HighAley »

Hello.

Could you describe your issue more detailed?
Do you get any error?

Thank you.
G.hammad
Posts: 67
Joined: Tue Jun 24, 2014 7:59 am

Re: Stimulsoft options functionality

Post by G.hammad »

no there is no error but when click export to pdf it's saved in specific path without show to me in browser that there is something download and i'm using chrome browser! also when open the saved pdf it's contain 1 empty page !
Attachments
HeadCountByAverageIncome.pdf
(6.58 KiB) Downloaded 326 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Stimulsoft options functionality

Post by HighAley »

Hello.

Please, try to use StiReportResponse Class.

Thank you.
G.hammad
Posts: 67
Joined: Tue Jun 24, 2014 7:59 am

Re: Stimulsoft options functionality

Post by G.hammad »

thank you but i'm tried to use this class but it take long time on this line exactly in Stimulsoft.Report.Web.StiReportResponse.ResponseAsPdf(this, report)
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Stimulsoft options functionality

Post by HighAley »

Hello.

Maybe you have too large report?
You can use other methods to export report to Stream. Then you should return it to client.

Thank you.
Post Reply