Page 2 of 3
problem with ProcessPdfRequest() and export Word and RichText
Posted: Tue Oct 18, 2011 6:07 am
by HighAley
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.
problem with ProcessPdfRequest() and export Word and RichText
Posted: Fri Oct 21, 2011 2:49 am
by sofiane
Thank You thats work
problem with ProcessPdfRequest() and export Word and RichText
Posted: Fri Oct 21, 2011 4:53 am
by Alex K.
Hello,
Ok.
Let us know if you need any additional help.
Thank you.
problem with ProcessPdfRequest() and export Word and RichText
Posted: Mon Nov 14, 2011 9:00 am
by sofiane
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
problem with ProcessPdfRequest() and export Word and RichText
Posted: Tue Nov 15, 2011 2:38 am
by HighAley
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.
problem with ProcessPdfRequest() and export Word and RichText
Posted: Tue Nov 15, 2011 3:28 am
by sofiane
The error is
" System.StackOverflowException"
The problem appears when we clic on export buton
problem with ProcessPdfRequest() and export Word and RichText
Posted: Tue Nov 15, 2011 6:37 am
by HighAley
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.
problem with ProcessPdfRequest() and export Word and RichText
Posted: Thu Nov 17, 2011 9:13 am
by sofiane
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
problem with ProcessPdfRequest() and export Word and RichText
Posted: Mon Nov 21, 2011 8:23 am
by HighAley
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.
problem with ProcessPdfRequest() and export Word and RichText
Posted: Mon Nov 21, 2011 11:06 am
by sofiane
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