Hi Telerik,
I've upgraded Q1-2012 from Q3-2011.
We prepare the program tested on the Web, ReportViewer gives an error message.
ReportViewer program is working as a local mode.
We have made many report dll installation.
But ReportViewer program does not work on the Web.
How we can solve.
I'm sending Web.config and error message.
Regards,
Mehmet
IEnumerator itemEnumerator =
this
.pnlTotals.Items.GetEnumerator();
while
(itemEnumerator.MoveNext())
{
if
(itemEnumerator.Current.GetType() ==
typeof
(Telerik.Reporting.TextBox))
{
Telerik.Reporting.TextBox textBox = (Telerik.Reporting.TextBox)itemEnumerator.Current;
// value contains an expression, vs. literal text?
if
(textBox.Value.StartsWith(
"="
))
textBox.Value =
"0"
;
}
}
// bind the data table to the .DataSource property of the report
(sender
as
Telerik.Reporting.Processing.Report).DataSource =
this
.dtSource;
// if the query didn't return any rows, hide the groups and the detail section
if
(
this
.dtSource.Rows.Count == 0)
{
this
.gL_ACCT_CODEGroup.Visible =
false
;
this
.dEPT_CODE_NAMEGroup.Visible =
false
;
this
.detail.Visible =
false
;
IEnumerator itemEnumerator =
this
.pnlTotals.Items.GetEnumerator();
while
(itemEnumerator.MoveNext())
{
if
(itemEnumerator.Current.GetType() ==
typeof
(Telerik.Reporting.TextBox))
{
Telerik.Reporting.TextBox textBox = (Telerik.Reporting.TextBox)itemEnumerator.Current;
// value contains an expression, vs. literal text?
if
(textBox.Value.StartsWith(
"="
))
textBox.Value =
"0"
;
}
}
}
I have Telerik Report that have about 700 images on it. When I generate the pdf, I get the following error message:
Here is the code that I uses.
Telerik.Reporting.Processing.ReportProcessor reportProcessor = new Telerik.Reporting.Processing.ReportProcessor();
Telerik.Reporting.Processing.RenderingResult result = reportProcessor.RenderReport("PDF", tk, null);
FileStream fs = new FileStream("d:\\report1.pdf", FileMode.Create);
fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length);
fs.Flush();
fs.Close();
However, when I display that in the report viewer on the screen, there is no error. Any idea on how to fix this? I have plenty of diskspace in c:/d: drives.
Thanks.
System.OutOfMemoryException was unhandled by user code
Message=Exception of type 'System.OutOfMemoryException' was thrown.
Source=mscorlib
StackTrace:
at System.IO.MemoryStream.set_Capacity(Int32 value)
at System.IO.MemoryStream.EnsureCapacity(Int32 value)
at System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at Telerik.Reporting.Pdf.IO.PdfWriter.Write(Byte[] bytes)
at Telerik.Reporting.Pdf.IO.PdfWriter.WriteStream(PdfDictionary value)
at Telerik.Reporting.Pdf.PdfDictionary.WriteDictionaryStream(PdfWriter writer)
at Telerik.Reporting.Pdf.PdfDictionary.WriteObject(PdfWriter writer)
at Telerik.Reporting.Pdf.PdfDocument.Save(Stream stream)
at Telerik.Reporting.ImageRendering.DocumentPdf.EndDocument()
at Telerik.Reporting.Writing.DocumentWriter.Telerik.Reporting.Writing.IWriter.WriteEndDocument()
at Telerik.Reporting.BaseRendering.PageHandler.Telerik.Reporting.Paging.IPageHandler.EndDocument(Boolean output)
at Telerik.Reporting.Paging.PagerBase.AddEndDocument(Boolean output)
at Telerik.Reporting.Paging.PageComposition.PageOverride()
at Telerik.Reporting.Paging.PagerBase.Page(IPageHandler handler, Report report)
at Telerik.Reporting.BaseRendering.RenderingExtensionBase.Render(Report report, Hashtable renderingInfo, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback)
at Telerik.Reporting.Processing.ReportProcessor.Render(IList`1 reports, ExtensionInfo extensionInfo, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback)
at Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IReportDocument reportDocument, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback)
at Telerik.Reporting.Processing.ReportProcessor.RenderReportStateless(String format, IReportDocument reportDocument, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback)
at Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IReportDocument reportDocument, Hashtable deviceInfo)
at _ViewReport.rdbGo_Click(Object sender, EventArgs e) in d:\SVN\ROVCatalog\Web\ViewReport.aspx.cs:line 89
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
InnerException: