I have successfully created my first Infragistics report and web project following the steps in the User Guide chapter "Creating a Report and Integrating It Into a Silverlight Application"
Now, I want to take this existing report from this test web project and import it into my large existing web application.
Please tell me the steps to go through for adding a Silverlight Application to my existing web application - and for importing the Infragistics report.
I don't want to mess up my large web application!
Thanks.
Hello,
To add the report to your existing website you would need to do the following steps:
1. Add a reference to the report service. Please note, if you create a new report service in your existing website to use make sure that you did not have the ServiceEndpointUri in your sample project hardcoded to use a specific previous port number. If so you will need to update your original XAML page to find the current location of the service.
2. add a reference to the assembly for the class library of reports
3. add the connection string with the name of your Reporting datasource and the connection to your database to the web.config file (as in sample web application’s web.config)
4. Add the .xap file containing the xaml page with the report viewer to the ClientBin directory (you may need to add this if it does not exist). This file can be found in the ClientBin directory of the sample website you created.
5. Add a new web page which includes an object tag for a Silverlight application with the source param set to the xap file you included in the previous step. Use the Test Page from your sample solution as a guideline.
Sincerely,
Valerie
Developer Support Engineer
Infragistics
www.infragistics.com/support
I am trying to follow these steps and not getting very far. I tried to add a report class library and the option doesn't exist when right-clicking on the solution.
My web application is NOT a Silverlight application. Perhaps I need to do something about that first?
Hello Sylvia,
To display the solution associated with the project, in visual studio, select Tools – Options, then select Project and Solutions – General and check the checkbox for “Always show solution”. After doing this the solution should be displayed in the Solution Explorer and you can right click on the solution to get the Add – Existing Project option.
Please let me know if you have any questions.
I followed those steps and have added the existing report project to my web application. Now - where am I in the 5 steps that was given to me in the first reply to this post? Or - is it a different set of steps now?
I have a web page in the application that I want to be able to 'call up' the report I just added - passing it the parameters that it needs in order to render.
You should be able to add the tag that was created in the asp.net page of your test web application to the webpage in which you want to include the report it should look similar to the following:
<div id="silverlightControlHost">
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
<param name="source" value="ClientBin/SilverlightApplication1.xap"/>
<param name="onError" value="onSilverlightError" />
<param name="background" value="white" />
<param name="minRuntimeVersion" value="4.0.50826.0" />
<param name="autoUpgrade" value="true" />
<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50826.0" style="text-decoration:none">
<img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none"/>
</a>
</object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
where source value refers to the name of the .xap which includes your Silverlight user control.
Thanks so much for all the help you have been trying to give me. I have to be honest though - it was too confusing for me to follow.... so, I decided to go through the effort of re-creating the report.
I basically followed the steps in the users guide "Creating a Report and Integrating It Into a Silverlight Application' - with the exception of: I added a Silverlight project to my existing web app - instead of creating a Silverlight project as the guide says.
I have added the SilverlightControlHost tag to the web page that will be calling the report (as you mentioned in your last post).
Now - what do I do to connect a button on the web page to this report? When the user clicks the button, I want to call the report - passing the needed parms. What controls do I need on my web page and what does the code look like? I assume it has something to do with step 5 of the first answer on this post - but I don't really understand what that was saying.
I need to look into how this is done for you, but first I want to ensure I understand what you want to do. Are you determining the parameters based on logic in your asp.net website and the need to pass those parameters to the report or can the logic to determine the report parameters be handled in your Silverlight application?
Mihail has created a blog "How to integrate Infragistics Reporting in WEB Applications” which can be found here:
http://blogs.infragistics.com/blogs/mihail_mateev/archive/2011/11/24/how-to-integrate-infragistics-reporting-in-web-applications.aspx
Mihail has been working on some blog posts about reporting and will be adding other which will address you concerns. You can read his blogs at
http://blogs.infragistics.com/blogs/mihail_mateev/default.aspx
In addition, now that the product has been released the help is up online. The help can be found at:
http://help.infragistics.com/NetAdvantage/reporting/2011.2/CLR4.0
Has the blog post been written - and if so, where is it?
I have checked with engineering on this and the features needed to do have added to 11.2 which will be available soon. In addition, a blog post is being written on this subject.
My specific scenario is:
I have a web page for Customer Quotes. After the user has completed the quote, they will want to be able to just click a button on that web page and have the quote print and/or email the quote. So - I would like to be able to 'call' the report (an official customer quote) from the web page - passing it the quote # as the parameter for the report.