SSRS export to excel on separate worksheets issue - excel

I'm using SSRS 2008 to export data to an excel file. I need 4 worksheets in the file. As a result, I'm inserting a page break after each Tablix. But when there's no data in the page,it's merging the sheet with the next one. I looked up for help, I found one where it says I need to insert a rectangle to avoid this. I'm not sure how I do this. Any help?

To add a rectangle On the Insert tab, in the Report Items group, click
Rectangle. On the design surface, click the location where you want
the upper left corner of the rectangle, and drag to where you want the
lower-right corner. Note that as you move the cursor, "snap lines"
appear as the cursor lines up with other objects on the design
surface. These help you if you want objects to be aligned.
Then I believe you set the page break to occur after the rectangle instead of after the tablix

Related

How to automatically center a Word Table

I wrote a code to paste a Table from Excel
After the Paste, the table is aligned to the left, which prevents it from fitting inside the document.
I want to center it, which I can do manually (by clicking the "move" button and centering, or using the "Table properties" menu).
(I don't need to center the text inside the table, but really the table itself)
But I don't find the way to replicate this in VBA.
Does anyone know the way to do this?
I tried using the Paragraph Format of the range property, but it doesn't seem to have any effect

How to use vertical headings in Excel tables

I am currently using Excel 2013. I wanted to use vertical headings in tables instead of horizontal ones. Horizontal headers take a lot of space but vertical ones don't.
I looked upon a number of web sites but not even one gave an intelligent answer. There were answers like inserting a section break or an image, etc.
I am a 9th grade student.
You can change the text direction by editting the "Format" of a cell or range of cells:
A table:
Right click on the header cells after selecting them and go to "Format Cells":
Go to the Alignment tab and change the alignment to 90 degrees:
Click OK and your text will be vertically aligned. You can align the cell text to the left using the button at the top to make it a bit prettier if you want:
Good luck on the class!

In excel, how to quickly let the cursor to focus on data when I want to select the range of them?

When I insert one chart in excel, the generated chart will always on the top of the data. However, if I want to select some range of my data to the chart, I usually have to drag the chart away from the top of data for locating the cursor on them.
My question: is there any simple and quick way to switch to focus on one of the data and the chart while hiding the other?
Not a perfect answer, but you can adjust the transparency of the fill of the chart object. Then, click on a cell and use the arrow keys to select the cells of interest behind the chart ...

SSRS Export to Excel creates additional columns

I have a SSRS report that when I export to Excel, creates unwanted columns when viewed in Excel. What would the best way to go about ensuring no additional columns are created. I have tried setting the location of the table rows to 0in, 0in but that did not resolve the problem. The attached screen shot is what the report looks like in both Visual Studio and Excel.
There are two ways to approach this:
Align everything:
You need to align your textboxes with the main tablix to remove the unwanted columns.
So the first expression after the main tablix start, Align left with the Patient Name and right with the right of state text box.
Second Expression align the left with the left of Phone text box and align the right of expr with the right of state.
Same thing you need to do with all the text boxes. If they don't align you will get the extra columns.
Align Left by moving the left column of textbox to match with the table. You will see blue line which indicates if the report items are aligned.
Aligning right using mouse
Also if you select multiplie object you align them using Format >> Align Menu option.
Create Tables to handle the alignment
Create tables without any groupings or detail. Delete the groupings as shown below.
Then add your report items in that table. One table before the main tablix and one after it. Make sure it doesn't give you any data otherwise you might get duplicate info.
It is lot easier to align table then to align 20 text boxes.
I have used both methods. If there are few items I will use 1. If there are lot more then I use approach 2.

Why is Autofit Labeling greyed out?

I Have created a bar chart in a 2007 .xls file, but the data labels cannot be resized. When you go to the "format Data Labels" and then click on alignment, the Autofit and Internal Margin option is grayed out. Anyone know why?
Short version: It is greyed out for chart text, because it the option doesn’t apply.
Long version:
This is because on a chart, chart text do need to use margins, rather you can you can just move the text., and set its X and Y position. For example take the Chart Title, if you want more space to the left, just click and drag the title to the right. If you want the chart title to be bigger you just set a larger font, you have complete control over the title, as well as all other text on that chart, axis titles, legends, data labels, etc.
Internal margins are meant to be used when you don’t have complete control take for example text in a shape. If you insert a shape in your workbook, and add text to it, you cannot just pick the text up and move it to the right if you want more space on the left, so you can set the margin.
Here's a trick that worked for me:
My problem was: I added more text to the axis title and it was too long for it's original shape so some text went into second line.
My solution: I type the complete text somewhere else, copy the text, double click on the axis title and delete the original text -- the cursor would still be there -- now insert the copied text. Done! They are all in one line!
Partial solution to resize label to a single line: Data labels in a chart will often wrap themselves, when you dont want them to. They would often seem better in a vertical single line above the graph item. Reset them to one single line by editing the text in the label, deleting the Excel imposed return, and replace it with a space. The line, and label box, will resize to fit a single line. However because you have "manually interfered with the lable, it will no longer update for changing graph data. You would have to double click each lable then reset it. Most annoying.
A way around it is to make the chart area big. The data label boxes will resize to fit the words in one line. Then make the chart small (not the chart area).
Manually insert a textbox into the bar chart and type in the label that way. It's annoying and labor-intensive, but it works.

Resources