Telerik Forums
Reporting Forum
1 answer
401 views
Is it possible to edit or remove the 'Created' date and time from a pdf report metadata?

I've looked at the Device Information Settings (http://www.telerik.com/help/reporting/device-information-settings-pdf.html) but there is no mention of the 'Created' meta data.
IvanY
Telerik team
 answered on 28 Mar 2013
0 answers
196 views
After upgrading to Q1 2013 of Reporting my parameter code does not work.  I'm getting parameter values in NeedDataSource in order to construct my report/chart datasource.  This code used to work:
private void report_NeedDataSource(object sender, EventArgs e)
{
    String siteParm = this.ReportParameters["Site"].Value.ToString().Trim();
    Int32 timespanParm = Convert.ToInt32(this.ReportParameters["TimeSpan"].Value.ToString());

After the upgrade the parameter values are not the values that I have entered in the UI, then previewing.  I tried changing the code to:
private void report_NeedDataSource(object sender, EventArgs e)
{
    Telerik.Reporting.Processing.Report report = (Telerik.Reporting.Processing.Report)sender;
    string siteParm = report.Parameters["Site"].Value.ToString();
    string timespanParm = report.Parameters["TimeSpan"].Value.ToString();


With this code the values of report.Parameters["xxxx"].Value are the new expected values, but setting them to a string variable results in:

The name 'siteParm' does not exist in the current context
The name 'timespanParm' does not exist in the current context
Why is this?

Also, with my Chart page if I try:

Telerik.Reporting.Processing.Chart chart = (Telerik.Reporting.Processing.Chart)sender;

then chart has no Parameters property!  How do I get the parameters then?

Dan
Dan
Top achievements
Rank 2
 asked on 28 Mar 2013
11 answers
191 views
Hello

We can get reports to display in the viewer and can export ok but when we attempt to print via the print button in the ReportViewer toolbar, the print dialog comes up but the "preview" is empty and nothing will print.

If we run the same in Chrome, it works fine.

Any suggestions?

We're currently on version 5.3.12.119 but I couldn't see any fixes relating to this in the Updates.

Thanks

Cheryl
Stef
Telerik team
 answered on 28 Mar 2013
4 answers
578 views
Hi all,
 I'm new with Telerik Reporting and now i get the sum of my fields " pt_id " per page with expression

=PageExec("textBox1",Sum(Fields.pt_id))

it works so good but now i want to add sum every page to the sum of next page like that

page 1:
total of " =PageExec("textBox1",Sum(Fields.pt_id)) " in page one = 100
page 2:
total of " =PageExec("textBox1",Sum(Fields.pt_id)) " in page two = 100

i want to total of page 2 will be = 200 ( 100 of page one and 100 of page two ...... ect ) not 100

i try to use

= RunningValue("Report1",Sum(Fields.pt_id))

but it works only if i write "Report1" i want to run it for every page not for report ???

i try to change "Report1" with "pageFooter" but not work - so please how can i do it ?

i'm so sorry if my English is bad but please can any one help me ?

IvanY
Telerik team
 answered on 28 Mar 2013
1 answer
50 views
Hi!

I have a report with 7 Groups and have to print a groupheader on three of them.
I attached an Screenshot where I add text to each groupheader to see the behavior. The grouping is on a column named "laktat" for 1,1.5,2,3,4,6,>6 
All groupheaders are printed for Laktat 1 and 1.5, groupheader 2-7 are printed for laktat 2...

The result should be:

Groupheadertext: empty Groupheader
1
empty Groupheader
1.5
Groupheadertext: "Extensiver Bereich"
2
empty Groupheader
3
Groupheadertext: "Intensiver Bereich"
4
Groupheadertext: "Vorwiegend anaerober Bereich"
6
empty Groupheader
> 6

(In the screenshot I gave every groupheader text to see the behavior)

As you can see, the grouping itself is correct, just the the groupeheader are printed very courious
Thanks in advance for your help!

regards

Willi

IvanY
Telerik team
 answered on 28 Mar 2013
3 answers
294 views
Hello,

I am using itembinding event of report table and proramatically generating report table as below.

m_ReportTable.Body.Rows.Add(

 

new TableBodyRow(m_RowHeight));

 

 

 

TextBox dataCell = new TextBox { Value = "val" };

 

dataCell.Size =

 

new SizeU(m_RowHeight, m_RowHeight);

 

m_ReportTable.Body.SetCellContent(0, 0, dataCell);

 

 

TextBox dataCell2 = new TextBox { Value = "val2" };

 

dataCell2.Size =

 

new SizeU(m_RowHeight, m_RowHeight);

 

m_ReportTable.Body.SetCellContent(0, 1, dataCell2);

 

 

Panel p = new Panel();

 

p.Items.AddRange(

 

new ReportItemBase[] { dataCell, dataCell2 });

 

m_ReportTable.RowGroups[0].ReportItem = dataCell2; //added one defauld row group at initialization

m_ReportTable.Items.AddRange(

 

new ReportItemBase[] { dataCell, dataCell2 });

I'm confused with group structure. After rendering, this is showing only "Val2" as i added it in ReportItem of row group. How do i add two cell items in one row group? Also what about column groups, can i relate column group to row cells of perticular column?

Please help or let me know if more information is needed.

Regards,
Manish

 

Manish
Top achievements
Rank 1
 answered on 28 Mar 2013
1 answer
393 views

Hai 
     
When I was takeing Data as below Report Showing output  Data.  

public
static List<Job> GetData(int ab)

{
}

but when  I was takeing data as below

 

public async static Task<List<Job>> GetData(int ab)
{
}

it was showing Error    The expression contains object 'JobName' that is not defined in the current context.



Is Telerik Reports support async methods ?

 

 

 

 

IvanY
Telerik team
 answered on 27 Mar 2013
1 answer
131 views
I have a number of reports (in asp.net).  Some of the reports construct the datasource manually in the NeedDataSource event.  I recently upgraded from Q2 2011 to Q3 2013.  Now when I run a report and select parameters, the report parameters' values do not reflect the choices selected. (they are either the initial value of the parameter, or NULL if there was no initial value) 

I am getting the parameter values via:  this.ReportParamaters["paramName"].Value.

What has changed in this area since Q2 2011, and what can I do to access the parameters in the NeedDataSource event?

Thanks,
Justin

Justin Lee
Top achievements
Rank 1
 answered on 27 Mar 2013
4 answers
106 views
I have a column, "Last File", that has a name and a hyperlink to the file on a server. 

On Excel export the file opens, e.g. the hyperlink, \\intut\PTA\Uploads\12422.pdf opens the PDF. Just what I want. 

In the Telerik Report, when I click the hyperlink Internet Exporer opens and I get, "The page cannot be found ".  In the address area is "http://localhost/intutPTAUploads12422.pdf".  It seems to have added "http://localhost", "localhost" is the server, replaced "\\intut" with "/intut" and removed all the "\"s.

What do I need to do to get a hyperlink to a file to work?
David
Top achievements
Rank 1
 answered on 27 Mar 2013
0 answers
115 views
Never mind, figured it out...
Sangeet
Top achievements
Rank 1
 asked on 27 Mar 2013
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?