Hide columns in Excel export of SSRS Report - excel

I'd like to have several non-adjacent columns in an SSRS report, that when exported to Excel, by default are hidden in the worksheet. If the user would like to see them they could choose to unhide them from within Excel. I've tried playing with the visibility but when they are hidden, its like they never existed once I export to Excel. Is this possible?
Thanks in advance,
Sean

Related

Export SSRS Report to Excel but then add formulas and formatting to create a worksheet that users can add own data (Power Automate?)

I have created a report in SSRS that is several tables. I can export the report to Excel easily enough but the users want to have the ability to input their own numbers in a line below the tables. This line (y) would be followed with another summary line(y+z, or x-y=z, whatever). Yes, they can open the report insert extra lines, add formulas and formatting... but since this report will be run monthly and there are 11 tables in this report it would be nice if there is a Power Automate solution to add lines, formulas and formats or some other solution. Feel free to post potential solutions or teaching resources that may allow me to piece together a solution. Thank you.
I haven't tried anything yet. The only solution I can do at the moment is create a Excel template where I paste the exported spreadsheet and it gets 'lookedup' by a second tab with the proper/end formatted spreadsheet. Would like to modernize the solution(and learn)....although learning VBA is not solution I am looking for....

Erroneous Sheet Objects in Excel won't delete

I had an error in my code that I have since corrected but it made a bunch of sheets objects while it was running that I didn't notice. The sheets are not simply hidden, they don't exist in the Excel frontend and can't be unhidden.
normally I just write a code like sheet15.delete and let the VBA takes care of this kind of thing for me. But these sheets can't seem to be deleted that way. I've also checked the window setting on the view tab in Excel and the unhide option is greyed out.
I've also saved the workbook as xlsx, stripping out the VBA, with intention of importing the VBA back in from backups. But before I can even inport the VBA, the sheets are listed in the VBA editor of the xlsx file. Very frustrating and weird.
Any idea how I can delete these false sheets without starting a new project and just importing the forms?
too many sheeeeeets
Open the VBA editor and click on one of the hidden sheets. In the VBA editor there should be a properties panel, usually under the project explorer, look at the visible property and set it to "1 - xlSheetVisible." 0 is a normal hidden sheet and 2 is a very hidden sheet. Nothing can be done to a very hidden sheet.

How to have an SSRS report export to different excel sheets by each subreport?

I have a report that contains several subreports that are very similar to the main/base report. I want each subreport's data to be housed on a separate tab when the user exports the report as Excel.
I found a similar answer here, but it's not subreport-specific (I don't see a "PageBreak" property on Subreports, so the answer there doesn't seem to help me).
How can I cause the exported Excel file to break into separate sheets on each subreport, and with the name of each subreport on its respective sheet or the text property of the label that I place above each subreport?
Place the subreport inside of a rectangle control and set the PageBreak options on the rectangle.

SSRS reports on EXCEL

I'm trying to export a report to Excel from SSRS reports builder. When I export it to excel i don't want to re-organise the cell size to be able to see the entire data. I've tried using both tables and Textboxes for those cells to be exported as they are, neither worked.. any help will be highly appreciated..
I got it fixed. I had to manually expand the size in the reports builder and set 'can grow' and 'can shrink' to false for each text box. I understand that Excel doesn't support can Grow and can Shrink. Cheers

SSRS export to Excel UNFORMATTED

I'm looking into SSRS with intention of exporting a lot of the reports to excel. The problem is that when you export it changes cell sizes and removes borders to try and keep the original report format.
Is there anyway to stop this happening? So that the report exports to excel with the "usual" excel formatting? If it requires any coding that's fine as most of my reports will be run from C# code.
Thanks
Mat
You could export to a CSV and import that into a spreadsheet, possibly with some sort of template sheet for the particular report.
You could export the data to Sheet2. Mark sheet 2 as hidden.
Create your designer report on Sheet1.
Run an Excel Macro to read data from Sheet2 and put on Sheet1.
It's not pretty, but you could consider generating Excel sheets from the XML renderer, as described here - this would give you full control over the appearance of the worksheet.
I think what's happening is that you have stacks of fields in your reports that aren't aligned with each other and so when you export to excel, it compensates and generates extra columns to try to come close to what you report looks like.
I used to get this all time and then I figured out that if you used as little tables as possible while using more grouping within that grid, it goes along way to send a clean format to excel. Also watch out if you use a report header whose ends don't align to columns within the report.
So match object's begin and ends with other objects' or span of cells' begins and ends.
I create a seperate report with the same data, but no formatting.
Include a button to export on the main report, and when they click it, it directs them to an unformatted version of the report that is automatically exported to Excel.

Resources