Telerik Forums
Reporting Forum
2 answers
1.1K+ views
I've upgraded my reporting component to 7.0.13.426 already.  Noticed this issue in IE 10 with version 6.2.12.1017.  When I open a report that uses the web viewer it displays fine and exports to PDF fine, but when I attempt to export the exact same report to RTF I get an exception error.  This is happening over all our reports that render in the report viewer.

Using Visual Studio 2012 and ASP.net (Frame work version 4.0).

Web.config report settings as follows:

<Telerik.Reporting>
    <Extensions>
      <Render>
        <Extension name="IMAGE" visible="false" />
        <Extension name="RTF" visible="true" />
        <Extension name="PDF" visible="true">
          <Parameters>
            <Parameter name="FontEmbedding" value="Subset" />
          </Parameters>
        </Extension>
        <Extension name="HTML" visible="false" />
        <Extension name="MHTML" visible="false" />
        <!--Added Bug 4420 - CCM Dec 7, 2012-->
        <Extension name="XLS" visible="false">
          <Parameters>
            <Parameter name="UseNativePageHeader" value="false" />
            <Parameter name="UseNativePageFooter" value="false" />
            <Parameter name="ShowGridlines" value="true" />
          </Parameters>
        </Extension>
        <Extension name="CSV" visible="false" />
        <Extension name="XPS" visible="false" />
      </Render>
    </Extensions>
  </Telerik.Reporting>


Exception error details:

Parameter is not valid.
  Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

 Exception Details: System.ArgumentException: Parameter is not valid.

Source Error:

 An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Stack Trace:

 

[ArgumentException: Parameter is not valid.]
   System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format) +1141401
   System.Drawing.Bitmap..ctor(Int32 width, Int32 height) +13
   Telerik.Reporting.RtfRendering.DocumentState.WriteShape(ShapeBase shapeType, IStyle style) +459
   Telerik.Reporting.RtfRendering.DocumentRtf.WriteShape(ShapeBase shapeType, IStyle style) +56
   Telerik.Reporting.Writing.ShapeItemWriter.WriteContent(DocumentWriter writer, VisualElement element, ElementPageInfo pageInfo, IPageClip pageClip) +356
   Telerik.Reporting.Writing.ContentItemWriter.Write(DocumentWriter writer, VisualElement element, ElementPageInfo pageInfo) +408
   Telerik.Reporting.Writing.ProcessingElementWriter.StartWrite(VisualElement element, ElementPageInfo pageInfo, DocumentWriter writer) +211
   Telerik.Reporting.Writing.WriteStartOperationsDispatcher.Visit(Shape shape) +99
   Telerik.Reporting.Processing.Shape.Accept(ProcessingElementVisitor visitor) +39
   Telerik.Reporting.Processing.ProcessingElementVisitor.Visit(LayoutElement element) +39
   Telerik.Reporting.Writing.WriteOperationsDispatcher.DispatchWriteOperation(VisualElement element, ElementPageInfo pageInfo) +51
   Telerik.Reporting.Writing.DocumentWriter.Telerik.Reporting.Writing.IWriter.WriteStartElement(VisualElement element, ElementPageInfo pageInfo) +56
   Telerik.Reporting.BaseRendering.PageHandler.Telerik.Reporting.Paging.IPageHandler.StartElement(VisualElement element, ElementPageInfo info) +54
   Telerik.Reporting.Paging.PageStartElement.AddToPage(IPageHandler handler) +57
   Telerik.Reporting.Paging.PageElementLayer.AddToPage(IPageHandler handler) +107
   Telerik.Reporting.Paging.PageElementManager.AddToPage(IPageHandler handler) +59
   Telerik.Reporting.Paging.PageCompositionBase.AddElementsToPage() +78
   Telerik.Reporting.Paging.PageCompositionBase.SendPhysicalPages() +57
   Telerik.Reporting.Paging.PageCompositionBase.OutputPage() +825
   Telerik.Reporting.Paging.PageCompositionBase.CreatePages() +626
   Telerik.Reporting.Paging.PagerBase.Telerik.Reporting.Paging.IPager.CreatePages(IPageHandler handler, Report report) +73
   Telerik.Reporting.BaseRendering.RenderingExtensionBase.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback) +416
   Telerik.Reporting.RtfRendering.RtfReport.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback) +202
   Telerik.Reporting.Processing.ReportProcessor.RenderCore(ExtensionInfo extensionInfo, IList`1 reports, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback) +1407
   Telerik.Reporting.Processing.ReportProcessor.RenderCore(String format, IList`1 reports, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback) +103
   Telerik.ReportViewer.WebForms.ReportExportOperation.RenderReport(String format, IList`1 processingReports, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback) +140
   Telerik.ReportViewer.WebForms.ReportExportOperation.RenderReport(String format, IList`1 processingReports, Hashtable deviceInfo, Hashtable renderingContext) +207
   Telerik.ReportViewer.WebForms.ReportRenderOperation.PerformOperationOverride() +384
   Telerik.ReportViewer.WebForms.HandlerOperation.PerformOperation(HttpContext context, ICacheManager cacheManager) +74
   Telerik.ReportViewer.WebForms.BasicHandler.ProcessRequest(HttpContext context) +276
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +341
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69

 

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18034 

Stef
Telerik team
 answered on 16 Jul 2013
2 answers
477 views
Hi!, I´m having problems with my report. We didn´t update anything from the report since April, it was working fine but since last week it stoped working. In the production server the report loads almost fine the first time (Some images are missing), but when you navigate to the second page of the report you get a "Session expired" message.
I tried running the project locally using the production connection and i get a "exception has been thrown by the target of an invocation" message. The report´s preview works fine. Im using Stored procedures. 
I changed the connection string and used the development SQL Server connection and the report works , so I suspect it may be a data Issue but I get that generic error and I can´t know with precision what is causing it.

Can you help me?

Regards.
Pablo
Top achievements
Rank 1
 answered on 15 Jul 2013
1 answer
93 views
When I try and insert a report viewer control, it says "Failed to create designer....".  All of the other Telerik reporting controls are also greyed out.  I've reset the toolbox but the issue remains.  Do I need to reinstall the reporting app?
Peter
Telerik team
 answered on 15 Jul 2013
1 answer
107 views
Hi,
I m using 30 day trial reporting from: http://www.telerik.com/products/reporting/download.aspx

As per the article at : http://www.telerik.com/help/reporting/quick-start-create-simple-report.html
When I tried to add new data source, I get a blank space with no option to choose from (see attached 'untitled.png').

Please help me out.

Thanks.
Peter
Telerik team
 answered on 15 Jul 2013
1 answer
106 views
Is it possible to have the DrillThrough report target be a radwindow?
I want to display the drillthrough report in a modal popup window.
Squall
Top achievements
Rank 1
 answered on 15 Jul 2013
1 answer
165 views
Hi

I have nested lists in 3 levels in my detail section. When the innermost list is very big, then is forces a page break. it forces a page break.

list 1 has only 1 line - print on top of page 1
list 2 has only 1 line - prints on top of page 2
list 3 has 200 lines - starts printing on top of page 3 and runs over 2 pages pages

I need list 1,2 and 3 to start printing underneath each other on page 1.

I have set keeptogether to false on all 3 lists, with no luck.

Please help
Peter
Telerik team
 answered on 15 Jul 2013
3 answers
289 views
We'd like to replace the default functionality for the Excel export button on the HTML report viewer.  We'd like to write a custom method for each report that will export the underlying data to spreadsheet in a format that is conducive to sorting, totalling, etc. via Excel.  We don't need to export the headings, totals, etc.

Can we override the default behavior? 

 
Stef
Telerik team
 answered on 15 Jul 2013
2 answers
271 views
Hello,

I'm new to Telerik Reporting. Is it possible to force parameter fields to be displayed on an new line. In my case the parameters are placed after each other (by 2) . I've 5 parameter fields and I want them to be displayed like:

ParameterField1
ParameterField2                ParameterField3
ParameterField4                ParameterField5

Please let me know how to achieve this.

Regards,
  Jos.
Gaurav
Top achievements
Rank 1
 answered on 15 Jul 2013
6 answers
712 views
Hi,

I am trying to use column groups and row groups to pivot the data programatically. Following is the code snippet I am working on
             crosstab1.RowGroups.Add(tableGrouprow);
                textboxGroup1 = new Telerik.Reporting.TextBox();

                textboxGroup1.Style.BorderColor.Default = Color.Black;

                textboxGroup1.Style.BorderStyle.Default = BorderType.Solid;

               
textboxGroup1.Value = "=Fields." + ds.Tables[0].Columns[0].ColumnName;/***giving column index on the column we want to group****/
                textboxGroup1.Size = new SizeU(Unit.Inch(1.1), Unit.Inch(0.3));

                tableGrouprow.ReportItem = textboxGroup1;

but i am unable to do grouping.I have attached the screen shot of the table I want to pivot.I want pivot on month(column group) and drug(row group).I couldn't find any sample projects on this.can you please give some hint on this or a working sample would be more useful.

Thanks you..
Subrahmanya Kadiyala
Top achievements
Rank 1
 answered on 12 Jul 2013
3 answers
247 views
Hi

I'm trying to apply some custom date formatting.
So I have created a method to format the date (where parameter dt is the Field from the database)

public static string FormatDate(DateTime dt) 
        { 
            string newDt = ""
 
            if (dt != null
            { 
                string oid = waSessionState.Current(HttpContext.Current).oid; 
                waOrganisation org = (waOrganisation)HttpContext.Current.Cache[oid]; 
                newDt = dt.ToString(org.DateFormat); 
            } 
             
            return newDt; 
        } 

And for the expression I wrote:

=waMemberDetailsReport.Utilities.FormatDate(IsNull(Fields.[MemberDateRegistered], null)) 

If a DBNull value is returned from the database then I get the error "The expression contains undefined function call FormatDate()."

I don't understand why the error is occuring when I am using the IsNull() function.
Calvin
Top achievements
Rank 1
 answered on 11 Jul 2013
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?