Is there anyway possible to have a SSRS Report that has excel like tab? Bascially a user has many data saved in Excel sheet with many tabs (close to 7-8) with little difference in those tabs. Hence he was looking for to built the report that when exported to excel can bring data in those tabs.
Second Question: When I export the report to excel, is it possible to have predefined filters in excel?
Let me know for any questions.
Thanks!
You can configure the report (2008R2 and up) to break the data up into named tabs when exporting to Excel...
Reporting Services export to Excel with Multiple Worksheets
I don't think you can have predefined filters in excel (I'm assuming you mean the Excel Auto-Filter stuff on the data ribbon tab) with the basic export to excel functionality in SSRS. If you go custom (via the ReportViewer control) then you could add logic to update the export file (after exporting) to programmatically add in the filtering options.
As far as i have worked on SSRS, i dont think so we can import parameters in excel same as in report.
However we can show data in separate sheets in excel
As you said data can be in 7-8 sheets, there are properties named 'PageName' and 'Pagebreak' of a tablix. Write the name of the page and add page break between those tablixes.
This will create sheets and also give names on those sheets.
Related
I have a report which has a tablix as the master report with a sub report which relies on two fields from the master report. When the master report is opened, the sub report is displayed correctly. However, the sub report is not updated when I click on the next row in the master report; I would expect it to be refreshed based on the values of the two parameter fields.
I think you are misunderstanding how subreports work and what they are intended for.
As stated in the MSDN documentation:
A subreport is a report item that displays another report inside the
body of a main report. Conceptually, a subreport in a report is
similar to a frame in a Web page. It is used to embed a report within
a report.
Typically we use subreport(s) when creating a main report that acts as a container for one or more related reports. This is not the same as Master/Detail in the way that you are understanding it. For what you require to work, SSRS would have to be capable of refreshing the subreport independently within the body of the main report. And it simply cannot do that.
What are your options?
Create a drillthrough report by defining an Action on a textbox or placeholder so that when the clicks on it they are taken to a new report showing the detail. Clicking the back button in the report toolbar returns them to the main report.
Merge your queries to create a single report. You can then use grouping and toggle items, creating a drilldown report, allowing your users to interactively hide/show detail rows as desired.
Of the two, I would recommend the second approach. In my experience users too easily confuse the SSRS toolbar back button with the browser back button.
I was given an enormous Excel spreadsheet that I have to port to an Access database. There are roughly 40 fields in the spreadsheet per entry. Is it possible to create a form in Access, and use the data from the Excel spreadsheet to automatically populate the form, and in turn, the database?
Using a form for this item by item is a complete waste of time.
On the External Data Tab, you can Import From Excel. If you have a weird layout that doesn't play nice with the Import tool, you can add the Microsoft Excel Object Library and use VBA to open and control Excel Workbook Objects and Worksheet Objects to pull the data in a custom way. Using the second method, I would use a form, but the only purpose for it would be to hold a button that would execute the VBA to import.
I'm currently working with BIRT and I am having problems trying to create a report with multiple data sources and data sets.
For example, let's say I have a wizard. This wizard allows the user to graphically select data sources in a list. After selecting a few data sources and finishing the wizard, I would like the report to be rendered with the selected data sources.
I have tried a few thing such as adding data sources/sets to an ElementFactory object, but that does not seem to work.
Does anyone know of where I can find documentation on this sort of thing? Possibly some pointers?
Thanks.
I'm kind of new to Access. I've got some experience working with integrating MySQL and Oracle with PHP to create web-based database search engines, but I am having difficulty understanding certain concepts with Access.
I've got a small database with around 200 entries with 20 fields each. I've written a form to search it by using VBA to run an SQL query against the database and displays the results in datasheet mode to a different form (is this the standard way of doing this, or is there a better way?)
I want to be able to add a button to export those results to excel (or csv or tab or whatever, it doesn't really matter). However, I'm not sure how to do this with the form results. Its easy with an entire database, but I can't find documentation on how to do this. Is there a way to do this? Or am I doing this wrong?
If at all required, I can provide more details.
You said "I've written a form to search it by using VBA to run an SQL query against the database and displays the results in datasheet mode to a different form".
If you mean an actual form in datasheet view, you can export that form's data to Excel with the DoCmd.OutputTo method.
DoCmd.OutputTo acOutputForm, "frmResults", acFormatXLS, _
"C:\SomeFolder\ExportedResults.xls"
However, if you're opening a query in datasheet view, rather than an actual form, you can export the query's result set.
DoCmd.OutputTo acOutputQuery, "qryResults", acFormatXLS, _
"C:\SomeFolder\ExportedResults.xls"
You can choose a different OutputFormat instead of Excel if you wish. Look at Access' Help topic for the OutputTo method to see the available choices.
I was given an Excel template and have to automate filling it.
It is supposed to be uploaded every month into the grand central DB of our company. Grand central accepts nothing other than an Excel file with that template.
I tried reproducing the same using SSRS but it looks like SSRS has no control over rendering the looks and data in Excel (it keeps hiding columns and rows which is not acceptable). I have created a SQL connection on the Excel to get the stored procedure data into Excel.
Now I have to make sure the data goes into the template into appropriate fields. I think it needs groupings and page breaks also.
Please help..
You're on the right track with dumping SSRS as a way to export into the template. I've also found that the Excel rendering extension in SSRS does a lot of hiding and merging cells with certain report designs.
You will probably end up needing to write a script in your language of choice to load the data into appropriate cells on the template.
Here are some Powershell articles on Excel automation:
http://blogs.technet.com/b/heyscriptingguy/archive/2006/09/08/how-can-i-use-windows-powershell-to-automate-microsoft-excel.aspx
http://winpowershell.blogspot.com/2007/03/powershell-and-excel-com-object.html
Also take a look at Perl and the Win32::OLE module:
https://metacpan.org/pod/Win32::OLE
http://www.perlmonks.org/?node_id=153486