Telerik Forums
Reporting Forum
2 answers
217 views
Hello,

I'm working on a Windows Forms Application where I want to load Reports into a Reportviewer after a click on a Button.
This is the Event that gets triggered by pressing on the button in the Code behind of the Windows Form:

private void button1_Click(object sender, EventArgs e)
{
 
    Telerik.Reporting.InstanceReportSource reportSource = new
    Telerik.Reporting.InstanceReportSource();
    reportSource.ReportDocument = new Reportlibrary.Report1();
 
    reportSource.Parameters.Add(new Telerik.Reporting.Parameter("OrderNumber","123456789"));
 
    reportViewer1.ReportSource = reportSource;
    reportViewer1.RefreshReport();
 
}

The problem now is that I have no Idea how I can access / get the parameter I added before Refreshing the Reportviewer.
The Report already has set a Datasource. I don't know if this matters.
This is what I have right now. I've tried everything and I'm just not getting further.

public Report1()
        {
            InitializeComponent();
 
            Position[] all = new Position[]{
 
               new Position("Test", "Test","test"),
 
            };
 
            this.DataSource = all;
 
             MessageBox.Show("Number: " +
             this.Report.ReportParameters["OrderNumber"].Value.ToString());
                 
        }

Is there any way to get this parameter straight after InitializeComponent(); ?
Do I need to add another Event to the report to access it? If yes which on is the best way to do this?

Any help very apreciated.
Thank you
Peter
Telerik team
 answered on 06 May 2013
4 answers
168 views
Environment : 
- Mac OSX (Lion and Mountain Lion),
- Safari (Version 6.0 (8536.25)) and Firefox (15.0 Beta 3)  
- Silverlight Ad-On 5.1.10411.0 

no data when exporting

Please help,

Thanks,
Wit
jean-Marc
Top achievements
Rank 1
 answered on 06 May 2013
1 answer
86 views
Hi, I use Telerik Reporting with Silverlight

All is OK, but when i put data into grid (from DataSource) part of the text is cut off on the preview page. And then if I convert it into 
Word or Pdf situation is the same. But if I convert it into Excel then everything is Ok.

Thank you very much for your prompt response!!!
Stef
Telerik team
 answered on 03 May 2013
1 answer
600 views
We're using Version 7.0.13.220 of the Report Designer to allow users to create reports and upload them into our web application.  The TRDX files are stored in the database and at runtime are deserialized with ReportXmlSerializer.  This works well but is rather cumbersome when subreports are used.

The Report Designer provides two options for defining the source of a subreport: 1) Url or File (this embeds a reference to the subreport file and is not an option for us since we store the report definition in a single data record) or 2) XML markup.  

Currently we are requiring the user to open the subreport in notepad, copy the content, select XML markup as the subreport source, and paste the XML into the dialog. 

Are there any plans to extend the Report Designer to allow selecting the subreport file and pulling the XML to prevent the "Open in notepad" approach?  

If not is there any other way to make it easier for the end user?  I'm currently under pressure to extend our report upload process to reach into the TRDX, iterate the subreports, prompt for upload of those files and then set the subreport source to the uploaded XML.  I'd rather not build in this dependency if the Report Designer can to it instead.

On a separate note, it looks like there is a minor defect in the tool tips for vertical spacing controls in the Layout section of the designer.  They all say "horizontal spacing" rather then "vertical spacing".

Thanks
Hrisi
Telerik team
 answered on 03 May 2013
1 answer
189 views
Hello, I'm working with a solution containing silverlight projects and need to integrate a report viewer, I add the user control and all without problems, but when you run the project, to load the user control that contains the ReportViewer me is launching this exception, which is not a data type, so what is strange since the ReportViewer is empty yet. Anyone can help me solve it? Deputy images.

Please, I'm a little desperate.
Stef
Telerik team
 answered on 03 May 2013
1 answer
55 views
Hi,
I am working on a project that needs to create an excel based report (excel book with multiple worksheets) from data stored in C# objects.

For example, I have a Customer list, that has names, addresses, and last 5 orders for each customer. This needs to go into one worksheet. Similarly, I will have Inventory list, Pending orders list and so on. No user input, graphs, calculations or formulas.

Is Telerik reporting the right product for this or is it an overkill?
Thanks
Nikhil
Stef
Telerik team
 answered on 03 May 2013
5 answers
249 views
Our company has mandated moving to NitorPDF to replace Adobe to solve some latency issues on PC's running Reader X.   After an install of NitroPDF reader, the report viewer stops working.  I understand that it will only work with Adobe.  That being said, I have uninstalled NitroPDF reader from a few machines and am now getting the error described in the title and the image attached below.

The report viewer will display the report but will not open the print dialog box.  It only displays that message that telerik.reportviewer.axd file type is not found and wants to save or find.

I have confirmed this using your sales demo website.

These machines are running Windows 7 32 bit / IE 8


Doug
Chavdar
Telerik team
 answered on 03 May 2013
7 answers
394 views
Until last week I've seen this problem, I think Chrome update itself to lastest version (8.0.552.215).
You can see this problem on Telerik Report demo page too. 
http://demos.telerik.com/reporting/sales-dashboard/demo.aspx

Regards

Update:
I got more info. Print button work fine on Chrome version (5.0.375.126). Maybe this is Chrome's problem.
I will report this to Google.

Update:
issue link: http://code.google.com/p/chromium/issues/detail?id=65834
Peter
Telerik team
 answered on 03 May 2013
19 answers
735 views
The javascript message in the lower left says" Downloading from site
myserver/telerik.reportviewer.axd?culture  &tc .
but the print dialogue is not being invoked. 
Peter
Telerik team
 answered on 03 May 2013
3 answers
59 views
We just recently upgraded from Q3 2011 to the Q1 2013 version of the report tool. We are putting a QR code in the footer of each page to identify it when scanned. Since we don't know the page number at the time we generate the QR code we are just increment a counter every time the OnDataBinding Event of the picture box that displays the QR code is called. Before the upgrade this worked. After the upgrade the event is getting fired 4 times for every page and it's messing with our page counts. Any suggestions on how to accomplish what we need to do?
Chavdar
Telerik team
 answered on 02 May 2013
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?