Stimulsoft Reports.WEB discussion
HighAley
Posts: 8431 Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office
Post
by HighAley » Tue Oct 18, 2011 6:07 am
Hello.
sofiane wrote: Thank you , i have cheked and read all links
But my problem is not the same.
I have installed the full licensed copy : Reports.Web 2011.1,
But when I updat new dlls, I do have the change but with DEMO version ie
when I updat dll I lose licence and the result of Export containing DEMO in all Pages
How can I resolve this problem ?
Did you download prerelease build from the Registered user area?
Thank you.
sofiane
Posts: 43 Joined: Fri Jun 17, 2011 8:33 am
Location: france
Post
by sofiane » Fri Oct 21, 2011 2:49 am
Thank You thats work
Alex K.
Posts: 6488 Joined: Thu Jul 29, 2010 2:37 am
Post
by Alex K. » Fri Oct 21, 2011 4:53 am
Hello,
Ok.
Let us know if you need any additional help.
Thank you.
sofiane
Posts: 43 Joined: Fri Jun 17, 2011 8:33 am
Location: france
Post
by sofiane » Mon Nov 14, 2011 9:00 am
Hello,
I have the same problem when I use all new Prerelease Builds of Stimulsoft Reports.Web
When I clic to export using the void below wich is added with (Stwebviewer componenent) the exception appears
"System.StackOverflowException' from Stimulsoft.Report.Web.dll"
protected void StiWebViewer1_ReportExport(object sender, StiExportDataEventArgs e)
{
if (this.StiWebViewer1.ProcessRtfRequest(true))
{
}
}
Thank in advance for you response
HighAley
Posts: 8431 Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office
Post
by HighAley » Tue Nov 15, 2011 2:38 am
Hello.
sofiane wrote: I have the same problem when I use all new Prerelease Builds of Stimulsoft Reports.Web
When I clic to export using the void below wich is added with (Stwebviewer componenent) the exception appears
"System.StackOverflowException' from Stimulsoft.Report.Web.dll"
protected void StiWebViewer1_ReportExport(object sender, StiExportDataEventArgs e)
{
if (this.StiWebViewer1.ProcessRtfRequest(true))
{
}
}
Thank in advance for you response
Please, send us full error stack and report template with sample data to reproduce your issue.
Thank you.
sofiane
Posts: 43 Joined: Fri Jun 17, 2011 8:33 am
Location: france
Post
by sofiane » Tue Nov 15, 2011 3:28 am
The error is
" System.StackOverflowException"
The problem appears when we clic on export buton
Attachments
1421.Report1.rar
(22.31 KiB) Downloaded 150 times
HighAley
Posts: 8431 Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office
Post
by HighAley » Tue Nov 15, 2011 6:37 am
Hello.
What are you trying to do with this code:
Code: Select all
protected void StiWebViewer1_ReportExport(object sender, Stimulsoft.Report.Web.StiExportDataEventArgs e)
{
if (StiWebViewer1.ProcessPdfRequest(true))
{
}
}
Thank you.
sofiane
Posts: 43 Joined: Fri Jun 17, 2011 8:33 am
Location: france
Post
by sofiane » Thu Nov 17, 2011 9:13 am
Hello,
I wich to test the call of ProcessPdfRequest. That let me control the retuned report.
I have remove the code because the problem is not on my code but in ProcessPdfRequest(true)
The same error with or without my code
My example,
if (StiWebViewer1.ProcessPdfRequest(true))
{
ldataUrlStr = this.DataRecupere.Text;
recouverData(ldataUrlStr);
StiReport lReportGantPlanning1;
lReportGantPlanning1 = new StiReport();
lReportGantPlanning1.Load("ReportImage6.mrt");
StiImage imagetest = lReportGantPlanning1.GetComponents()["Image1"] as StiImage;
imagetest.Image = StiImageConverter.StringToImage(limage);
float ratio = (float)imagetest.Image.Height / (float)imagetest.Image.Width;
imagetest.Width = 27.6;
imagetest.Height = imagetest.Width * ratio;
lReportGantPlanning1.Render();
StiPdfExportSettings pdfSettings = new StiPdfExportSettings();
pdfSettings.ImageQuality = 1;
pdfSettings.ImageResolution = 700;
pdfSettings.StandardPdfFonts = false;
pdfSettings.Compressed = false;
pdfSettings.EmbeddedFonts = false;
StiReportResponse.ResponseAsPdf(this.Page, lReportGantPlanning1, true, pdfSettings);
}
Thank you
HighAley
Posts: 8431 Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office
Post
by HighAley » Mon Nov 21, 2011 8:23 am
Hello.
sofiane wrote: I wich to test the call of ProcessPdfRequest. That let me control the retuned report.
I have remove the code because the problem is not on my code but in ProcessPdfRequest(true)
The same error with or without my code
My example,
Code: Select all
if (StiWebViewer1.ProcessPdfRequest(true))
{
ldataUrlStr = this.DataRecupere.Text;
recouverData(ldataUrlStr);
StiReport lReportGantPlanning1;
lReportGantPlanning1 = new StiReport();
lReportGantPlanning1.Load("ReportImage6.mrt");
StiImage imagetest = lReportGantPlanning1.GetComponents()["Image1"] as StiImage;
imagetest.Image = StiImageConverter.StringToImage(limage);
float ratio = (float)imagetest.Image.Height / (float)imagetest.Image.Width;
imagetest.Width = 27.6;
imagetest.Height = imagetest.Width * ratio;
lReportGantPlanning1.Render();
StiPdfExportSettings pdfSettings = new StiPdfExportSettings();
pdfSettings.ImageQuality = 1;
pdfSettings.ImageResolution = 700;
pdfSettings.StandardPdfFonts = false;
pdfSettings.Compressed = false;
pdfSettings.EmbeddedFonts = false;
StiReportResponse.ResponseAsPdf(this.Page, lReportGantPlanning1, true, pdfSettings);
}
The StiWebViewer1_ReportExport event is for changing export parameters before export. And it is called always before export.
And you are calling the StiWebViewer1.ProcessPdfRequest(true) method, which runs export again. And there is a loop.
Maybe you could describe what are you trying to do, and you'll try to show you the way.
Thank you.
sofiane
Posts: 43 Joined: Fri Jun 17, 2011 8:33 am
Location: france
Post
by sofiane » Mon Nov 21, 2011 11:06 am
Hello,
Thank you for your response.
How can I controle the returned exported report ?
ie:
when we clic on "Export WORD" that returns Report1 exported as report.doc file.
when we clic on "Export Pdf" that return Report2 exported as report.pdf file.
"Report1.mrt" and "Report2.mrt" are differents reports.
Report1 is the report viewed
Report2 is Report1 modified