Telerik Forums
Reporting Forum
2 answers
393 views
Hi,
I want to export the telerik report to a pdf file with the browser download option where user is given the option to Open or Save. I searched for it but couldnt find the right code for it though i have implemented it by exporting it to a pdf file and saving it on local host or client machine which is as http://www.telerik.com/help/reporting/programmatic-exporting-report.html. But this is not what i want.
I want the similar functionality as the Export link in report viewer.
How can i achieve this. Please help.
Jaspreet
Top achievements
Rank 1
 answered on 20 Sep 2011
1 answer
85 views

Hi,

Would like to know , Does Telrik  reports with Wnforms have support for localization of fallowing languages with Right To Left formating support.

Arabic
Czech
Danish
Dutch
English
Estonian
Finish
French
German
Greek
Hungarian
Italian
Latvian
Norwegian
Polish
Portuguese
Rumanian
Russian
Spanish
Swedish
Turkish
Ukraine
China

Thanks

Steve
Telerik team
 answered on 20 Sep 2011
1 answer
243 views
Hello,

Please do let me know the maximum no. of pages supported by the telerik reporting tool...

Thank You
Massimiliano Bassili
Top achievements
Rank 1
 answered on 20 Sep 2011
1 answer
51 views
Hi, everybody.
I want to bind a businessobject that I generete in silverlight to a Telrik:Report. There some example but I looks like they are for winforms.

Some body can help me.

Steve
Telerik team
 answered on 20 Sep 2011
1 answer
66 views

I have several reports the have parameters passed to the SQL statement through class parameters.

public string Param1
{
    get
    {
        return (string)this.OrderPackData.Parameters["@InvoiceHeaderKey"].Value;
    }
    set
    {
        this.OrderPackData.Parameters["@InvoiceHeaderKey"].Value = value;
    }
}

The reports are run as follows:

IReportDocument runtimeReport;
runtimeReport = new InvOrderPackList();
this.ReportViewer1.Report = runtimeReport;
(ReportViewer1.Report as InvOrderPackList).Param1 = "='" + Request.QueryString["InvoiceHeaderKey"] + "'";

How do I convert this to use in a reportbook?

Regards, Lee

 

Peter
Telerik team
 answered on 20 Sep 2011
3 answers
197 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
151 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
95 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
230 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
76 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
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?