Telerik Forums
Reporting Forum
3 answers
226 views
hi,
How can i access App setting set in app.config for setting value for footer of a telerik report.
 I am trying to do it by accessing ConfigurationManager.AppSetting but the problem is 'ConfigurationManager' doesnt show up in intellisense and gives error when i use it.
Please suggest me a way out.
Jaspreet
Top achievements
Rank 1
 answered on 19 Sep 2011
14 answers
174 views
With the new 2011 Q1 Telerik Reporting release I'm getting errors when trying to export reports that have HtmlTextbox components in the report.  The other export formats work correctly.  Anyone else having issues with docx exports?

Here's the stacktrace:

[ObjectDisposedException: Cannot access a closed Stream.]
   System.IO.__Error.StreamIsClosed() +57
   System.IO.MemoryStream.Seek(Int64 offset, SeekOrigin loc) +9628100
   Telerik.Reporting.OpenXmlRendering.Wordprocessing.DocumentHelper.WriteHtmlPart(HeaderPart headerPart, String html) +218
   Telerik.Reporting.OpenXmlRendering.Wordprocessing.HeaderStorage.WriteHtml(String html) +45
   Telerik.Reporting.OpenXmlRendering.Wordprocessing.ContentStorage.CreateHtml(String html) +92
   Telerik.Reporting.OpenXmlRendering.Wordprocessing.ContentBuilder.WriteHtml(String html) +45
   Telerik.Reporting.OpenXmlRendering.Wordprocessing.HtmlTextBoxWriter.WriteHtml(ContentBuilder contentBuilder, LayoutElement layoutElement) +303
   Telerik.Reporting.OpenXmlRendering.Wordprocessing.HtmlTextBoxWriter.WriteContent(ContentBuilder contentBuilder, LayoutElement layoutElement) +37
   Telerik.Reporting.OpenXmlRendering.Wordprocessing.ContentWriter.WriteContent(LayoutBuilder layoutBuilder, LayoutElement layoutElement) +68
   Telerik.Reporting.OpenXmlRendering.Wordprocessing.ElementWriter.WriteElement(LayoutBuilder layoutBuilder, LayoutElement layoutElement) +101
   Telerik.Reporting.OpenXmlRendering.Wordprocessing.ElementWriter.WriteContent(LayoutBuilder layoutBuilder, LayoutElement layoutElement) +166
   Telerik.Reporting.OpenXmlRendering.Wordprocessing.ElementWriter.WriteElement(LayoutBuilder layoutBuilder, LayoutElement layoutElement) +101
   Telerik.Reporting.OpenXmlRendering.Wordprocessing.LayoutWriter.WriteElement(LayoutBuilder layoutBuilder, LayoutElement layoutElement) +245
   Telerik.Reporting.OpenXmlRendering.Wordprocessing.HeaderWriter.WriteDocument(DocumentBuilder documentBuilder, LayoutElement layoutElement) +101
   Telerik.Reporting.OpenXmlRendering.Wordprocessing.WordprocessingWriter.WriteEndElement(ProcessingElement pageElement, ElementPageInfo pageInfo) +92
   Telerik.Reporting.BaseRendering.PageHandler.Telerik.Reporting.Paging.IPageHandler.EndElement(ProcessingElement element, ElementPageInfo info) +49
   Telerik.Reporting.Paging.PagerBase.AddEndElementToPage(ProcessingElement processingElement, ElementPageInfo pageInfo) +49
   Telerik.Reporting.Paging.RenderingElement.AddToPageRecursive(RectangleRF parentClip, RoundedFloat parentTop, RoundedFloat parentLeft, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight) +1201
   Telerik.Reporting.Paging.PageComposition.WritePageSection(PageArea pageArea, RenderingElement pageSection, RoundedFloat height) +763
   Telerik.Reporting.Paging.PageComposition.ApplyPageSections() +308
   Telerik.Reporting.Paging.PageComposition.SendPhysicalPages(Boolean lastPage) +81
   Telerik.Reporting.Paging.PageComposition.PageOverride() +1268
   Telerik.Reporting.Paging.PagerBase.Page(IPageHandler handler, Report report) +103
   Telerik.Reporting.BaseRendering.RenderingExtensionBase.Render(Report report, Hashtable renderingInfo, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback) +361
   Telerik.Reporting.Processing.ReportProcessor.Render(IList`1 reports, ExtensionInfo extensionInfo, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback) +1481
   Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IReportDocument reportDocument, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback) +608
   Telerik.ReportViewer.WebForms.ServerReport.Render(HttpResponse response, String format, Int32 pageIndex) +894
   Telerik.ReportViewer.WebForms.ReportExportOperation.PerformOperation(NameValueCollection urlQuery, HttpContext context) +112
   Telerik.ReportViewer.WebForms.HttpHandler.ProcessRequest(HttpContext context) +276
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

Steve
Telerik team
 answered on 19 Sep 2011
2 answers
110 views

Hi ,

 

Can you please provide the fallowing information ,

 

1)      Silverlight:-

 

a)       Does Telerik Reporting  support SilverLight , if so , does  Silverlight Designer and Viewer support the fallowing list of languages:-

 

Arabic

Czech

Danish

Dutch

English

Estonian

Finish

French

German

Greek

Hungarian

Italian

Latvian

Norwegian

Polish

Portuguese

Rumanian

Russian

Spanish

Swedish

Turkish

Ukraine

China

 

 

b)      Does this support RTL format ?

 

2)      HTML:-

 

a)      Is there any support of Designer and Viewer to create HTML reports?

b)      If there is a support of creating HTML reports , is there any support for above listed languages?

c)       How about RTL support in case of that?.

 

Thanks,

Prasanna

 

Peter
Telerik team
 answered on 19 Sep 2011
1 answer
265 views
We have a form that includes a radgrid, and a section at the top where users can specify various filtering criteria (NOT filtering in the grid). When the user activates the filter, there is some code that looks at the various filtering items, and builds a filter string based on which ones are populated.

We also have a report designed to contain the same data as this radgrid, so that users can print the data in a formatted report.

I'd like to pass the filtering over to the report, but the filtering is a string that could contain multiplle variables and expressions, for example;

"startdate >= '01/01/2011' and startdate <= '12/31/2011' and ClientID = 3"
or
"CategoryID = 7 and Description like '%test%'"

Let's say my report parameter is called rpFilter, and rpFilter has the value

 "CategoryID = 7 and Description like '%test%'"

...then I'd like to have my filter expression be just the value of rpFilter with no operator and no comparison value. Is there a way to do that? I am trying to avoid having to generate and deal with a bunch of parameters, since this is going to be used from a number of sources.
Peter
Telerik team
 answered on 19 Sep 2011
0 answers
92 views
Hi
I have a problem because when I try to get a subreport in detail, it seems to be out of place, like subreport of page 1 appears in detail of report on page 2 and goes on

I call the subreport in this way in main report and set the pareter in detail_ItemDataBinding event for get a parameter for actual detail for show or hide this subreport :
 
private void detail_ItemDataBinding(object sender, EventArgs e)
        {
 
 
            // Get the detail section object from sender
            Telerik.Reporting.Processing.DetailSection section = (Telerik.Reporting.Processing.DetailSection)sender;
            // From the section object get the current DataRow
            Telerik.Reporting.Processing.IDataObject dataObject = (Telerik.Reporting.Processing.IDataObject)section.DataObject;
            object rowdata = (object)section.DataObject.RawData;
 

 
            subReport1.Visible = false;
            if (Convert.ToInt32(((System.Data.DataRow)rowdata)["GraphCount"].ToString()) == 0)
            {
 
                Unit unitX = Unit.Inch(0.1);
                Unit unitY = Unit.Inch(0.0);
                SizeU size = new SizeU(Unit.Inch(1), Unit.Inch(0.5));
 
 
                subReport1.Location = new PointU(unitX, unitY);
                subReport1.Size = size;
                unitY = unitY.Add(Unit.Inch(1));
                subReport1.Visible = true;
                subReport1.ReportSource = new rtSubReport(Convert.ToInt32(this.ReportParameters["id"].Value), Convert.ToInt32(((System.Data.DataRow)rowdata)["num"].ToString()));
 
            }
 
             
        }

Do you have any suggestions?
Thanks in advance


Gerardo
Top achievements
Rank 1
 asked on 19 Sep 2011
4 answers
281 views
I have created my my reports for a WPF application we are in the process of creating. Reports run fine and all parameters are visible and usable by the client. They requested a similiar window frame from our app that would encapsulate the the report window. No problem. I added the same custom features(Borders and whatnot) around the window with no problem. Reports ran fine and everything. The problem then comes that the color scheme of the ReportViewer in WPF is gray and it was requested to be black. Though there is a public property to define the background in XAML it does nothing. I went into Blend again and adjusted the template for the ReportViewer (default was No Brush) and was able to change the border background to the desired color gradient scheme.

The REAL problem is that when I change the default template for the ReportViewer to a new DynamicStyle using my new styles all parameters become hidden. All reports with no paramaters run as desired, but any report that uses a parameter(s) hide the Date Calender, or the drop down menu from the user. What needs to be done to change the ReportViewer look and feel and STILL maintain the parameters for usage?

Any info you could provide would be greatly appreciated.

Tom

Charlie
Top achievements
Rank 2
 answered on 16 Sep 2011
1 answer
121 views
I have a report which binds to a Dataset.  Dataset loads an xml file which sometimes doesn't contain all elements (if user didnt specify any data for those elements).  If an element such as 'Name' is missing I will receive "An error has occurred while processing TextBox 'Name': The expression contains object 'Name' that is not defined in the current context".  Instead I just want the report to leave the textbox blank if the binding fails.  Is it possible to somehow supress binding errors if the biniding element doesn't exist?
Thanks, Emil.
Peter
Telerik team
 answered on 16 Sep 2011
7 answers
361 views
When i export my report to MS Excel the image i placed in the report header is not visible,
it is visible in MS Word though, any help would be appreciated.
Peter
Telerik team
 answered on 16 Sep 2011
3 answers
113 views
I've tried a million times and I get the same issue. When I try the stepped layout I get a generation error that states "OBJECT WITH NAME 'Country' ALREADY EXISTS. OBJECTS SHOULD HAVE UNIQUE NAMES".  Yet the query IS bringing back unique names. I looked at the designer code generated and sure enough it is creating children with the same name, not sure why.
Hrisi
Telerik team
 answered on 15 Sep 2011
3 answers
157 views
When I use the save dropdown to save a report in a format such as excel, the drop down data continues to show even after the report has been saved.  The only way to get rid of it is to close the window.
Chavdar
Telerik team
 answered on 15 Sep 2011
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?