Telerik Forums
Reporting Forum
7 answers
1.2K+ views

Hello,

We have a web site hosted in Azure, and we are trying to add Telerik report generation to it. It works just fine when running in Visual Studio, but when we publish it to Azure and run it from there, we get the below error.  I realize this is a very generic question--I don't have a little test project that I can provide--but does this symptom sound familiar to anybody?  A known issue with deploying Telerik.Reporting to Azure, perhaps?

Using Telerik Q1 2014.

Method in Question:

            try
            {
                var monthlyInvoice = new Reports.MonthlyInvoice(model);
                var reportProcessor = new Telerik.Reporting.Processing.ReportProcessor();
                var generatedReport = reportProcessor.RenderReport("PDF", monthlyInvoice, null); //*** where it crashes
                return generatedReport.DocumentBytes;
            }
            catch (Exception exp)
            {
                Tracker.TrackError(exp, ErrorTrackerTags.Report, ErrorTrackerTags.Invoice);
                return null;
            }

The Error:

Message: [ArgumentException: Parameter is not valid.]
 System.Drawing.Graphics.GetHdc():29
 Telerik.Reporting.Pdf.PdfContext..ctor():36
 Telerik.Reporting.Pdf.PdfDocument..ctor():38
 Telerik.Reporting.ImageRendering.DocumentPdf.FindOrCreateDocument():48
 Telerik.Reporting.ImageRendering.DocumentPdf..ctor(PdfRenderingContext context, IMeasureContext measureContext):15
 Telerik.Reporting.ImageRendering.PdfReport.CreateDocument(IDictionary renderingInfo, IDictionary deviceInfo, CreateStream createStreamCallback, PageSettings pageSettings):11
 Telerik.Reporting.BaseRendering.DocumentRenderingExtensionBase.CreateWriter(IDictionary renderingContext, IDictionary deviceInfo, CreateStream createStreamCallback, PageSettings pageSettings):0
 Telerik.Reporting.ImageRendering.PdfReport.CreateWriter(IDictionary renderingContext, IDictionary deviceInfo, CreateStream createStreamCallback, PageSettings pageSettings):0
 Telerik.Reporting.BaseRendering.RenderingExtensionBase.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback):120
 Telerik.Reporting.Processing.ReportProcessor.RenderCore(ExtensionInfo extensionInfo, IList`1 reports, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback):388
 Telerik.Reporting.Processing.ReportProcessor.ProcessAndRender(String format, ReportSource reportSource, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback):27
 Telerik.Reporting.Processing.ReportProcessor.ProcessAndRenderStateless(String format, ReportSource reportSource, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback):0
 Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, ReportSource reportSource, Hashtable deviceInfo):36
 Billing.Reporting.Generator.GenerateMonthlyInvoice(MonthlyInvoiceModel model):7

 

 

Todor
Telerik team
 updated answer on 26 Oct 2021
1 answer
1.0K+ views

Hi team,

I want to exclude export options (Exel ,RTF, TIFF, Web arhive) from Report designer's telerik ribbon . I can do this from web.config file but its getting excluded from other pages as well, I just wanted to exclude these options from single  page report not from all pages of my project.

Anyone can help me asap?

Kind regards,

Payal

 

0 answers
177 views

There appears to be a bug with the CSV Data Source in the Web Report Designer - There are 3 options listed:  Upload CSV file, Use existing CSV file and Use CSV Inline.  When selecting the 'Use CSV Inline' option the forms keeps either "Upload ..." or "Use existing ..." selected and continues to validate for the missing file.

Chris Womack
Top achievements
Rank 1
 updated question on 24 Oct 2021
2 answers
331 views
Is there a way to delete report definitions in Web Report Designer? I notice that when creating a custom definition storage, the interface "IDefinitionStorage" implements a "DeleteDefinition" function, so I'm assuming there is a way to do so. My first thought was the "file menu" would contain a delete option but it does not seem to be there.
Mihriban
Top achievements
Rank 1
Iron
 answered on 22 Oct 2021
0 answers
189 views

Is it possible to have asymmetric margins on a report? That is, the left margin of the odd pages must be greater than the right, and the right margin of the even pages must be greater than the left margin. This is because the report will print on both sides of the sheet, with a long margin on both sides. This long margin will serve to physically file the document.

Lucio
Top achievements
Rank 1
Iron
 asked on 21 Oct 2021
0 answers
747 views

Maybe this capability is already present, but, I am unable to find it.  When text overflows a text box and the text box is not allowed to grow, I need to be able to show an ellipsis or the remainder of the text that can fit. Currently the report removes all words that can not fit in the given area.

 It would be very helpful if we could set a few overflow options like "ellipsis", "truncate" (default), or "clip". Example


  • Original: "Hello Telerik Reporting"
  • Truncate: "Hello Telerik"
  • Ellipsis: "Hello Telerik Repo..."
  • Clip: "Hello Telerik Repor"

 

 

Ryan
Top achievements
Rank 1
Iron
Iron
 asked on 21 Oct 2021
1 answer
860 views
I have string of HTML tags with <html> ,<table>,<td>,<tr> etc tags. How I show it in HTML Textbox or Telerik Report ?
Todor
Telerik team
 answered on 21 Oct 2021
0 answers
175 views

A colleague sent me a trdx report file.  Upon opening in the Report Designer (both of us are using 15.1.21.512) one of the images, sized to fit within the picturebox, was enlarged and no longer fits within the box.

We rechecked that we were using the same trdx and we are.  The image shows properly on her PC but is cut off on mine (and is cut off when the report is rendered in the application). 

Another odd thing is that a different image in another picturebox is unchanged.

Neil N
Top achievements
Rank 2
Iron
Iron
Veteran
 asked on 19 Oct 2021
1 answer
489 views

Hi,

I have created a cross tab report with Snowflake ODBC as a data source and it works perfectly fine in Telerik Report Designer, when I click on preview I could see the data being fetched from my snowflake database.

I have snowflake DSN setup on my machine with name "SFDevAdmin"

But when I host it in .Net 5 as REST API and trying to render it in HTML I get connection error I think I need to specify the connection string in my asp.net application and I did it like this in my appsettings.json

 "connectionStrings": {
    "SFODBC": "Data Source=SFDevAdmin"
  }

but I am getting below error 

Could you please help me on this to make odbc connection work when hosted in asp.net 5 application 

1 answer
413 views
I have a report with a table for data columns.  The table has its own data source, and the data source is returning data.  However, the table does not show when I generate the report.  It has been set for Visible, so this is not a problem, and there are no bindings on it.  What else is there that could make it not appear?
Todor
Telerik team
 answered on 18 Oct 2021
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?