Telerik Forums
Reporting Forum
1 answer
137 views
I have a form with some products and uses can export that to pdf. I was wondering if I could make that pdf editable so they could select checkboxes etc in that offline pdf and print it? Thanks.
Steve
Telerik team
 answered on 18 Sep 2009
3 answers
159 views
hi,

In the progress of designing my report, i put some controls (PictureBox, Shape, TextBox...) then i have a question is how can i access to these controls at run-time ? Such as, i want to type some texts on Textbox control, change image on PictureBox, change the title of report...

Sorry for a question again that is not relative to Telerik reporting. I known that ComponentOne's report supports a feature is i can type text on textbox on Print Preview so the Telerik Reporting support this feature ?

Thanks

(Sorry for my bad english)
Le
Top achievements
Rank 1
 answered on 18 Sep 2009
1 answer
162 views
I am trying to get a line chart to display two different series of data that come from the same datasource(table). Here is my code. It seems the chart is correctly adding the second series when looping through the string values that come back from the one parameter, but only one line is drawn on the chart for the data. How can I filter data down to only certain records per chart series...I've gone through a lot of foums and can't seem to find an answer for this. Any help would be appreciated, thanks.
basically I need the series name to match the value in the ID column for this datatable....


        private void chart1_NeedDataSource(object sender, EventArgs e)

        {

           chart1.DefaultType = ChartSeriesType.Line;

          

           ArrayList al = new ArrayList();

           al = (ArrayList)this.ReportParameters[0].Value;

 

           (sender as Telerik.Reporting.Processing.Chart).DataSource=                                   this.serverAvgCPUDS.ServerAvgCPUDSTable; 

          

           foreach (string s in al)

           {

               ChartSeries series = new ChartSeries(s.ToString());

               series.Type = ChartSeriesType.Line;

 

               series.DataYColumn = "Percent";

               series.DataLabelsColumn = "Time";

 

               chart1.Series.Add(series);

               series = null;

           }

 

        }

Chavdar
Telerik team
 answered on 17 Sep 2009
1 answer
201 views

Hello,

           I want to generate PDF output on Click of ASP.NET Button click.I am using following code to generate it

         

private

void ExportToPDF(Telerik.Reporting.Report reportToExport)

 

{

Telerik.Reporting.Processing.

ReportProcessor reportProcessor = new ReportProcessor();

 

Telerik.Reporting.Processing.RenderingResult result = reportProcessor.RenderReport(

"PDF", reportToExport, null);

 

 

string fileName = result.DocumentName + ".pdf";

 

Response.Clear();

Response.ContentType = result.MimeType;

Response.Cache.SetCacheability(

HttpCacheability.Private);

 

Response.Expires = -1;

Response.Buffer =

false;

 

Response.AddHeader(

"Content-Disposition",

 

 

string.Format("{0};FileName=\"{1}\"",

 

 

"attachment",

 

fileName));

Response.OutputStream.Write(result.DocumentBytes, 0, result.DocumentBytes.Length);

Response.End();

}


in above code "ReportProcessor" class is available in "Telerik.Reporting.Processing" Namespace, but I cant see "RenderingResult" class.Also I can't find  "RenderReport" method on "reportProcessor" object.I have added both the required dll ie. "Telerik.Reporting" and "Telerik.Reporting.Processing" .But I am using trial version of this Control.

So, is it a issue related to trial version dlls or am i miising any reference thats needs to be done?

Any help would be highly appreciated.

Thanks in advance.

Regards,
Ajay

Steve
Telerik team
 answered on 17 Sep 2009
7 answers
533 views
Can someone please direct me to an example where the user uses a calendar(s) to set a date range for a report parameter?  For example, I need to see all records from Jan8 to Feb16; where the user sets the date range at runtime.

Thanks,
Rich
Steve
Telerik team
 answered on 17 Sep 2009
1 answer
421 views
Hello,

I'm new to Telerik Reporting, I've benn working with it for a few days trying to make a specific report. So... my question - is there any way of adding columns to a table codebehind, not from the design view. Tere is no problem for generating rows from the datasource, but the thing is every time I call the report I'm giving it a different DataSet(Different columns and entirely different data) codebehind, so I cant know how many comumns are there going to be, so I cant assign the values and number of the columns at design view. I would appriciate any help.

Thanks, 
Apostol Apostolov
Steve
Telerik team
 answered on 17 Sep 2009
2 answers
139 views
I am using Version 2.9.8.1209.

I would like to generate an invoice report. In the report, I have my main report with 3 sub reports in the middle, meaning main report data then follow with 3 sub reports and then main data report data after that in the main report like below.

Date: 23rd Nov 2009

To : CEO

Sub Report 1
Sub Report 2

Sub Report 3

Total Amount : Five Hundred and sixty only


---------------------------------
Eugene
Marketing Officer

i would like to be able to control that if at the end sub report 2 there is only left a certain amount of space on that page, automatically the sub report 3 should move to the next page and not right after the sub report 2 on the same page. this is because also there are times that the signature section will end up at the top of the next page which is not acceptable for an invoice. i would like it to know when to move to the bottom of the page.

Currently now i have no idea on how to go about this or go around it. please advice. thanks
Eugene
Top achievements
Rank 1
 answered on 17 Sep 2009
4 answers
436 views
I have a report that needs to use a multivalue parameter with a stored procedure, yet I am getting an error when I select multiple values because it comes back as an array when the report doesn't seem to be expecting it.

Does anybody have an example where they are using a stored proc with a multi value parameter?

Thanks in advance.
Steve
Telerik team
 answered on 16 Sep 2009
1 answer
218 views
Hi there, we have been using the telerik reporting for quite a while now, and found it handy in most of the scenarios we're facing. Thanks for the great work.

However, one of the problem we got now is that as we send the report as an email out (which using MHTML, and works fine), the mail content become large as what telerik reporting engine generate all images as mime and embeds into the content.
as example
<img alt="Image" src="cid:uf32gweyf5y" style="width:100%; height:100%" /></div

then as we generate the report as HTML, it export the follow for image
<img alt="Image" src="/Telerik.ReportViewer.axd?culture=en-NZ&amp;uiculture=en-US&amp;instanceid=3d09e5a8d49d412c9e85073ece538511&amp;&amp;optype=ReportImage&amp;StreamID=m4b13jtidmk" style="width:100%; height:100%" /> 

The question is, how would we export it, as the orignal link instead? Is that a way which we can put a unique identfier and replace it in the code-behind as work around? (prefer no workaround though)
Steve
Telerik team
 answered on 16 Sep 2009
1 answer
245 views
Hi,

I wonder if it is possible to generate report for a LINQ object that might  have different number of fields.
For example, we currently have 7 active stores and have to make a sales/stock report as follows.
Each data row requires two lines to fit in the letter-sized printed output.
------------------------------------------------------------------
 Item       Store1        Store2      Store3      Store4
         Sale Stock   Sale Stock Sale Stock Sale Stock
             Store5          Store6    Store7        Total
         Sale Stock   Sale Stock Sale Stock Sale Stock
------------------------------------------------------------------

But a few month later we are going to open 2 more stores so there will have to be 3 line for each item.
The header should look like the following.
------------------------------------------------------------------
 Item       Store1        Store2      Store3      Store4
         Sale Stock   Sale Stock Sale Stock Sale Stock
             Store5          Store6    Store7        Store8
         Sale Stock   Sale Stock Sale Stock Sale Stock
             Store9                                            Total
         Sale Stock                                      Sale Stock
-----------------------------------------------------------------

In case of .NET ReportViewer Object, I heard that we can modify the RDLC file at run time and generate the report dynamically.

Olso is there any way to allow detail-line of each data-row to be extended into multiple lines dynamically??

Thanks,

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

Milen | Product Manager @DX
Telerik team
 answered on 16 Sep 2009
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?