SSRS Report Print readiness - sql

I have created a report in SSRS and exported to SSRS.
Requirement:
When I do a print it has to fit horiontally in one page. However because of the size of my report it gets cut.
I have figured a way to customize it in my SSRS design, however this is what i am looking for.
In excel - go to print - page set up - fit to 1:(blank)
Is there a way to achieve this in excel while exporting the report to excel?
Thanks!

You should adjust DocumentHeight and DocumentWidth according to your needs

Related

How to achieve this in crystal report?

How to do this in crystal report with sub-report
the image above is from excel and that's what im trying to achieve..and here's what i do in crystal report
and after i run it..the result is devastating..lol here's what it looks like
the sub-report is just keep on repeating..lol how to fix this ? i already set the sub-report link id's..it's all good but the only problem is that its keep on repeating where what i want is to only show the sub-reports content if the id's is match..btw im using vb.net for the project
Don't put it in the Details Section. I suggest you put it in your Report Footer Section or Group Footer Section (based on which group you are summarizing). Putting it in the Details Section will repeat the Sub Report depending on how many records you show in that area.

How do I get the index of each record displayed on crystal reports?

I'm developing winform application using vb.net. I use crystal report in my application. Now i need to store the index of each record that is displaying in current report into database. Then i create another report which displays the index of all the records. My plan is to read the page number of each record and save them on database. I have a group field in the report. I don't know how to scan one by one record and get appropriate page number. I tried the following code to get the field value but did not work.
msgbox(rpt.DataDefinition.FormulaFields("name").Text)
It displayed the formula of that field.
I don't know in which order the records fetched using following.
msgbox(rpt.rows(0).item(0))
Please Help me out....
The way your question reads, it sounds like you're trying to generate an "index" for the order records appear in a report and store that index in a database for use in another report. I am not clear at all what you're trying to do with the page number.
In any case, I need to make something clear: the definition of the report (which you're accessing in your code sample) only represents where data will go when the report is formatted - it is not the actual data itself.
At the most basic level, Crystal Reports takes data out of a database and formats it nicely for you on pages. Rather than trying to take data out of a database, put it into a report, then try to read that report to put it back in a database to make another report, why not just do all your data manipulation at the database level itself before going to a report in the first place?
If you really must have that first report, the easiest option you'll have for getting at the formatted data is to export it to excel and access it programmatically through an Excel API - Crystal Reports doesn't have an API for getting at your formatted data (including things like generated page numbers, whatever you're trying to do with them).
You are trying to break few basic rules. For example a report should never change the data. The right way is to handle data processing in a stored procedure or command and to call the report in a separate process. In such way you will be able to control the data change and data visualization separately.
P.S. You probably mean "Identifier" not "Index"

What do multiple reports listed in a single SSRS report mean?

I have one SSRS report like following (image)
I'm new to SSRS; what does this report mean?
If I need to change any parameter value for this kind of report, do I need to go to every report and change the parameter for them individually?
Question:
What does this SSRS report mean?
Answer:
Portfolio dashboard = Main report
Portfolio_XXX = all 8 are subreports.
The subreports may or may not link with the main report. To find the report link, you can right-click on the subreport (gray) then report link.
Question:
Do I need to go to every report and change the parameter for them individually?
Answer:
If you are changing parameter name/type and subreport are linked or use parameter to filter the data, then YES you have to change in main report and subreport.
If all of your reports use same parameters then you only need to make changes onto main report, but if sub reports have their own parameters then you should change main report as well as sub reports parameters.
You have two ways to change the parameter of any SSRS report.
At the design time: When you are designing your report you can set the input parameters in report. You can provide a default value or you can leave this part if you are not willing to provide default parameters.
At run time: When you preview your report or view report in browser, then you can provide parameters if that reports is parametric. You can change the parameters here.
Please note that, if you have provided default parameters and you view report in browser/preview then it shows the default parameters.
You can use subreports if all reports are expecting the same parameters. If not is is best to go another route. I've only had to use one subreport for recent projects.
This is one of main features of sub reports to be able to use same parameters for all of them, so most likely they are the same, but final call should be made upon complete review, including any expressions involved. M

SQL 2005 Reporting Services doesn't print properly

We have a 900+ page report that was created in RS. You can only print 1 page at a time from the report manager. We have tried exporting to pdf, etc but the dollar amounts don't line up properly when it is exported. Does anyone have any suggestions to get this to print correctly?
You have to ensure all the page sizes, breaks, margins, interactive size, etc. are properly setup for the export to work properly. You also should be able to print the whole thing in one go from the report manager in 2005.
Do your other reports print ok?
Do you have conditional filters, hidden contorls, etc?
If you use table and right-align your dollar amount column it should line up properly.
Can you provide more details like what kind of report layout you are using ( which objects you are using to render report. )

Inserting a page break in Crystal Reports programmatically

How do I insert a page break in Crystal Reports. Using VB.Net, not in the report definition?
The best technique I've used for stuff like this is to group on a formula. Set the report to break on that formula, then you can set the value of the formula in your .Net code to a value that'll break where you want to break.
Using this technique, you can create a single report and have it dynamically sort and break on any field (or formula) you want at runtime, which makes the report very versatile.