Telerik Forums
Reporting Forum
4 answers
1.2K+ views
I would like to display "No data available message" for my empty datasource   for a cross tab report and I found this link helpful

http://www.telerik.com/community/forums/reporting/telerik-reporting/conditionally-display-message-if-no-results-found.aspx

But i am not able find where i can do the bindings for the textbox item....has this changed in the new version of telerik reporting..Please guide me... i.e in the  textbox properties->bindings->property path i am not able to find parent.visible....

thank you
Andy
Top achievements
Rank 1
 answered on 04 May 2018
1 answer
8.2K+ views
Hello,

I have Telerik Reporting v2.5.8.519 and have a ReportViewer on a SharePoint page.  I put this on using SharePoint Designer and it is working as it should.

The only problem I have is that I want to resize the ReportViewer to 100% of available space on the screen.  I can set the report height in pixels (i.e., Height="500px") which makes the ReportViewer 500 pixels high.  However, if I put in Height="100%" then the ReportViewer does NOT fill up the screen height.  It only fills up the <div> the ReportView control lives in.

How do I do this?

Thanks,

Randall Price
jguti
Top achievements
Rank 1
 answered on 03 May 2018
0 answers
226 views

HI team

I wanted to know if its possible to change the culture of a report during the rendering process.

 

Say for example you are grouping by Country. When printing a given country the Currency symbol should reflect that of the country.

 

Do you set the culture of all the report items in the lower detail sections (and possibly any child  groups) in the item databinding event. Thats what first came to mind.

 

Some code would be appreciated..

 

Kind Regards

 

Michael

Mike
Top achievements
Rank 1
 asked on 03 May 2018
22 answers
2.0K+ views

Hello,
it has been a long time since I got this error happening randomly on my production enviorment and not been able to solve it.... I got this error message when opening a report with 2 parameters (int, datetime) :

Value cannot be null.
Parameter name : Instance.......

Consider that there' approximatelly 400 ppl using this application, I don't know it if it's something related to concurrency or what... I can just say that one time it happens it continue till I do an iisreset

I got this problem with Q2, can't move immediatly to Q3 since we got scheduled deploys..... any suggestion?
Thanks
Paolo

 

Edward
Top achievements
Rank 1
Veteran
Iron
Iron
 answered on 03 May 2018
6 answers
1.0K+ views
Hi all,

My application includes a Telerik report for a client that has a printer with A3 printing capability. I have defined the PaperKind to A3, Landscape to False, and the Width to 42cm. The PaperSize (disabled in the Properties list) shows a correct 297mm x 420mm. In design mode everthing looks fine and I can add controls over the required width of the report.

However, when running the report in the WinForms ReportViewer the report splits my pages, spreading the columns over 2 pages. I suspect this is due to the fact that my default printer (attached to my development machine) does not support A3 printing.

Is this a correct assumption?
Can I change this setting so I can see the report on screen in A3 width?

Lucien Dol
QicSoluciens
Wellington, New Zealand

(Telerik Reporting Q1 2011 v5.0.11.316)
Silviya
Telerik team
 answered on 03 May 2018
1 answer
186 views

  Hi, I have some reports implemented in WPF, with the Telerik ReportViewer, in there the user can export the report result to CSV, PDF, Excel, etc. but I want what he will can export it only to PDF, how I can configure?

Thanks

JOSE
Top achievements
Rank 1
 answered on 02 May 2018
1 answer
317 views

We have implemented a custom report resolver that returns an InstanceReportSource based on the report class name. The InstanceReportSource.ReportDocument is instantiated from our IoC container (Simple Injector) and all objects are injected into the report via a constructor as expected. Within each report we subscribe to the NeedDataSource event and retrieve the data from a repository instance that has been injected. However, when we attempt to retrieve data from the repository, the repository instance has already been disposed. The injected objects are scoped to the webapi request. I read in the forums that the processing of the report happens in a separate context. Could that be causing my issue?

We've used this approach for years with the WCF report service and it has worked well. How can we configure this to work with the REST report service? We are now using the WPF report viewer.

 

 

Katia
Telerik team
 answered on 01 May 2018
0 answers
172 views

I have some dynamic variable in my ASP.NET web-form application in session, that will stored when user login. In session variable I have some user information and some connection string of some database which will be created dynamically at run-time. 

How can I pass these variable data to report to bind some control to display user information and show some data from SqlDataSource which connection string also passed form ASP page to report.

SURYA
Top achievements
Rank 2
 asked on 01 May 2018
5 answers
466 views

Hi Guys,

 

As per the title is that funciton thread save? When I'm calling this in a multi threaded app I get an exception on the rendering although all variables are declared locally. So my guess would be that it is not?

Stack Trace JIC:

------------------------------------------------------------------------------------------------------------

System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at Telerik.Reporting.Processing.Common.FontContainer.GetFontDef(String fontName, FontStyle fontStyle)
   at Telerik.Reporting.Processing.Common.FontContainer.FillBuffer(Font gdiFont, Byte[]& buffer)
   at Telerik.Reporting.Pdf.Fonts.TrueType.FontReader.GetFontData(Font font, Boolean& isTTC)
   at Telerik.Reporting.Pdf.Fonts.TrueType.TrueTypeDescriptor..ctor(Font gdiFont)
Object reference not set to an instance of an object.
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at Telerik.Reporting.Processing.Common.FontContainer.GetFontDef(String fontName, FontStyle fontStyle)
   at Telerik.Reporting.Processing.Common.FontContainer.FillBuffer(Font gdiFont, Byte[]& buffer)
   at Telerik.Reporting.Pdf.Fonts.TrueType.FontReader.GetFontData(Font font, Boolean& isTTC)
   at Telerik.Reporting.Pdf.Fonts.TrueType.TrueTypeDescriptor..ctor(Font gdiFont)
An error has occurred while rendering the report: System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at Telerik.Reporting.Processing.Common.FontContainer.GetFontDef(String fontName, FontStyle fontStyle)
   at Telerik.Reporting.Processing.Common.FontContainer.FillBuffer(Font gdiFont, Byte[]& buffer)
   at Telerik.Reporting.Pdf.Fonts.TrueType.FontReader.GetFontData(Font font, Boolean& isTTC)
   at Telerik.Reporting.Pdf.Fonts.TrueType.TrueTypeDescriptor..ctor(Font gdiFont)
   at Telerik.Reporting.Pdf.PdfFontTable.GetDescriptor(PdfFont font)
   at Telerik.Reporting.Pdf.PdfFontDictionary..ctor(PdfDocument document, PdfFont drawingFont)
   at Telerik.Reporting.Pdf.PdfFontType0Dictionary..ctor(PdfDocument document, PdfFont font)
   at Telerik.Reporting.Pdf.PdfFontTable.GetFont(PdfFont font)
   at Telerik.Reporting.Pdf.PdfPageDictionary.GetFontName(PdfFont font, PdfFontDictionary& fontDictionary)
   at Telerik.Reporting.Pdf.Rendering.PdfRendererGraphicsState.Update(PdfFont font, Brush brush, Int32 renderMode)
   at Telerik.Reporting.Pdf.Rendering.PdfRenderer.Update(PdfFont pdfFont, Brush brush, Int32 renderMode)
   at Telerik.Reporting.Pdf.Rendering.PdfRenderer.DrawString(String text, PdfFont pdfFont, Brush brush, RectangleF rect, Boolean rightToLeft)
   at Telerik.Reporting.ImageRendering.CanvasPdf.DrawRegularChunk(String text, Font font, Brush brush, RectangleF rect, TextFormat textFormat)
   at Telerik.Reporting.ImageRendering.CanvasBase.DrawStringMultiline(String s, Font font, Brush brush, RectangleF rect, TextFormat format, Boolean isFinalTextChunk)
   at Telerik.Reporting.ImageRendering.DocumentBase.WriteText(String text, RectangleF bounds, IFont font, Color foreground, TextFormat format, Matrix transform, Boolean isFinalTextChunk)
   at Telerik.Reporting.Writing.TextBoxWriter.WriteContent(DocumentWriter writer, TextBox textBox, ElementPageInfo pageInfo)
   at Telerik.Reporting.Writing.ProcessingContentElementWriter`1.WriteContent(T element, ElementPageInfo pageInfo, DocumentWriter writer)
   at Telerik.Reporting.Writing.ProcessingElementWriter`1.Write(T element, ElementPageInfo pageInfo, DocumentWriter writer)
   at Telerik.Reporting.Writing.ElementWriter`1.Telerik.Reporting.Writing.IElementWriter.StartWrite(LayoutElement element, ElementPageInfo pageInfo, DocumentWriter writer)
   at Telerik.Reporting.Writing.WriteStartOperationsDispatcher.Write(IElementWriter writer, LayoutElement element, ElementPageInfo pageInfo, DocumentWriter documentWriter)
   at Telerik.Reporting.Writing.WriteOperationsDispatcher.Visit(TextBox textBox)
   at Telerik.Reporting.Processing.TextBox.Accept(ProcessingElementVisitor visitor)
   at Telerik.Reporting.Processing.ProcessingElementVisitor.Visit(LayoutElement element)
   at Telerik.Reporting.Writing.DocumentWriter.Telerik.Reporting.BaseRendering.IWriter.WriteStartElement(LayoutElement element, ElementPageInfo pageInfo)
   at Telerik.Reporting.BaseRendering.PageHandler.Telerik.Reporting.Paging.IPageHandler.StartElement(LayoutElement element, ElementPageInfo info)
   at Telerik.Reporting.Paging.PageStartElement.AddToPage(IPageHandler handler)
   at Telerik.Reporting.Paging.PageElementLayer.AddToPage(IPageHandler handler)
   at Telerik.Reporting.Paging.PageElementManager.AddToPage(IPageHandler handler)
   at Telerik.Reporting.Paging.PageCompositionBase.AddElementsToPage()
   at Telerik.Reporting.Paging.PageCompositionBase.SendPhysicalPages()
   at Telerik.Reporting.Paging.PageCompositionBase.OutputPage()
   at Telerik.Reporting.Paging.PageCompositionBase.CreatePages()
   at Telerik.Reporting.Paging.PagerBase.Telerik.Reporting.Paging.IPager.CreatePages(IPageHandler handler, LayoutElement root)
   at Telerik.Reporting.BaseRendering.RenderingExtensionBase.Render(LayoutElement root, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback, PageSettings pageSettings)
Exception thrown: 'System.NullReferenceException' in Telerik.Reporting.dll

------------------------------------------------------------------------------------------------------------

 

Cheers

Nils

Peter
Telerik team
 answered on 01 May 2018
3 answers
183 views
I have a main report that lists cities, and I have a subreport for each city that lists buildings of them. I mean, subreport presents the detail of buildings of each city od the main report.

I want to pass a parameter to each sub report, this parameter is a value of a textbox in the main report. I'm passing this parameter in the "detail_ItemDataBound" event (main report), and then I intend to read it in the subreport, in the "NeedDataSource" event. The problem is that the parameter that corresponds to the first row appers in the second row, and the parameter that is part of the second row appers in the third one.

What am I doing wrong? or Does it have any mistake those telerik events?

I apreciate your help.

(I'm using Telerik Reporting R1 2018)
Lucio
Top achievements
Rank 1
 answered on 26 Apr 2018
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?