I have a custom interface where my users select multiple reports and export them all at once. I need to programatically export these reports and preferably offer all the same format options. I understand this can be done through the SSRS API. Does anyone already know how to do this to save me some research time?
Many thanks...
Looks like you would use the ReportExecutionService class - not the management API, which is where I was looking at first.
Use the Render method to generate the report. Pay attention to those first two parameters of Render to specify the format.
Hope this helps.
Related
I would like to know whether it's possible to get hold of the data associated with a specific report. This also includes the schema of the data. In other words, if the report makes use of an Excel file, I would like to get hold of the data in that Excel file. Is something like this even possible? I have tried some of the methods, like GetDatasetAsync as well as GetDatasourcesAsAdminWithHttpMessagesAsync, but it did not provide the desired result.
Any assistance is greatly appreciated.
Thanks!
Here are the options I know of:
You can publish a PowerBI dataset and have other reports connect to it. You can find it on the list of connectors.
Exporting the data from the report (as csv). This only applies to the current visual.
You can export visual via PDF or PowerPoint.
XLMA Endpoints can let you query the model and retrieve what you want programmatically however this is a PREMIUM feature only. Here is a how-to.
You can build your model in analysis services (SSAS) and have a live connection to the tabular model, then you can work with the data in SSAS using XLMA.
That is about as good as it get's.
I am developing an application using C# which is simply the user inputs data, it is saved in a db (which is not SQL Server but MySql) and then prints it.
At this stage the user gave me a template which has the logo and some company information on top, in the middle the lines i need to fill and on the bottom some other information regarding this company.
Is it possible to open this document fill the required lines and print it using c#?
Sorry i cannot provide anything but i am stuck here and can't seem to figure out from where to start?
Thanks & Regards
Do you have access to any kind of reporting ie.Crystal Reports or SQL Server Reporting Services. You have one of 2 options, either you need to write a report that mimics his template using one of the technologies above, or you would need to use interops to access MSWord or MSExcel and do it that way. You may be able to use some third party PDF software.
If this was my project I would go the report route.
I work on some project that is migrating from vb6 to web (asp.net). I need to print some kind of report - A table from database and number of simple headers with date and time. In vb it was implemented using vsPrinter object. Is there any Class in C# that is similar to this Class in vb6 in its functionality? If there in no such thing in .net, what is the easiest way to do this?
Thanx for assistance!
Remember you are moving to the web so you don't have access to the hardware printer controls. You only have access to what the browser gives you. If you are not doing anything fancy with this you can do one of two things.
Since this is an ASP.NET webpage, simply create a new browser or popup and render your report as html. The user can them choose print from the browser print dialog or you can launch it with some generated javascript.
Use the Microsoft Report and Report Viewer controls is you need more formal report layout. These are available from your toolbox under the category Reporting.
I think the easiest way would be by using any reporting tool, one of the powerfull tools is Crystal reports, just google it an you will find alot of useful tutorial such as:
Creating Crystal Reports using C# with Datasets.
Crystal reports in ASP.NET
You can also find alot of useful threads about it here in SO under Crystal Reports tag, like:
How to use Crystal Reports with ASP.NET?
C# Crystal Reports Tutorial on asp.net?
I have an Excel file with a formatted table. Right now I have a database in sql server, I'm pulling the data into my c# asp.net program. I want to know if anyone has an idea of what I should try to use that Excel format to display data from a query at a webpage without having to go in and construct the table from scratch. I tried looking for a good tutorial on how to import an excel file and use it as a template for crystal reports, had no luck. Any advice would be greatly appreciated!
I have used a third party component called ASPOSE.NET to acheive this. ASPOSE provides extensive formatting options and support a wide variety of file formats.
However it is not a free product.
I am using Crystal Reports to create a pretty PDF of a text document with client data in it. What I need to do is pass the job number from the C# code to Crystal Reports so I can put it on top of the PDF document. I have tried a few things that I found on the internet, but to no avail. Anyway to do this? Thanks.
Why not disclose what you have tried so far and how you have implemented.
If you use crystal report doc object, you can pass on a lot of things, including the conditions. One of the easiest thing is the report parameters. You can capture your inputs using parameter. The other ones include setting report header etc. So once you disclose how you are doing things, I am pretty sure, you shall get the rest of the things very easily.