SQL 2005 Reporting Services doesn't print properly - sql-server-2005

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. )

Related

SSRS Report Print readiness

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

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"

import data from .txt for reporting purposes

I am running a query in Report builder that uses order numbers (approx. 100). Currently they are fixed and I have to change them each time. Is there a way that I can import those numbers to Report Builder in .txt and then run the report.
The query is like the following:
Select * from purchase p
where p.order in ('15642','1245','623565')
This is a simple query but my query has lots of joins
If not, how can I rewrite this report so that users can choose their own order number?
Does Cyrstal report have that ability?
Making a .Net/C# application Tool and export results to EXCEL??
Suggestions would be appreciated!
Yes, Crystal Reports can import from textfiles (At least Crystal Reports XI that I'm using), although that functionality might not be installed by default.
Create a new connection, choose "Access/Excel (DAO)". In the dialog that comes up, select "Text" as database type. By default the first line of the text file is supposed to be headers. I don't know if it is possible to change this behaviour.
As for letting users choose the order number at runtime that is precicely what parameters are for. Create a parameter and call it like {CR_test_txt.TEST0001} = {?myParameter} in the field selection expert. Depending on your report and advanced runtime options you want you might have to parse the parameter before using it.

Report Viewer using multiple reports

Within vb.net we've got a report that works great it has it's header/footer details then then a table in the middle which repeats data and all of that is fine.
But what the client wants now is for another button named 'Print Individual' and this will print the same report but instead of the repeated data within the table for each of those rows to be a single row on a page with the same header/footer.
So for example on the first report if there is one page with 5 rows of details the 'Print Individual' report will print the same but have 5 pages and 1 row per report. If that makes sense :-)
Obviously if I can do it where we use the same report instead of maintaing two reports would be good, as the report has a lot of information on it. Any ideas?
I ended up creating a new report and using the list box tool.

Access 2007: Problems creating multi page report

I am designing a report that shows product id, description and then quantities and dollar values for 7 different regions plus total quantity and total dollars for each product row) and also sums every column (all the quantities and dollar values). This report gets exported to a .rtf file and then emailed to various people. My current setup has the report being 22-inches wide. In Access, it shows up perfectly in Report View (product id, description, and regions 1-4 quantities and dollars on one page and regions 5-7 plus the total section on the other). When it exports it to a .rtf, it doesn't show the second page (unless you are in draft mode in Word).
I am looking for an easy way or some type of direction to have everything display correctly when exported. I've been playing around with layout, spacing, and page breaks but it either ends up displaying each individual product on separate pages or takes an enormous amount of time to load the formatted page (which doesn't work for my user). I have also tried using a subreport but get the same results as what I was doing with the page breaks.
Any help or direction is greatly appreciated!
I found out that there is a problem when I have something like report package (multiple page report.) What I did with my situation is I spit to one page report. Say Region 1-7, I have 7 reports. And use Loop to run, save, or pint it all. You may end up with 7 rtf file to email.
Other option is using MailMerge. You can do all the report in MS Words instead of in Access report. So you create say, 7-page template for all regions and added MailMerge fields in it. Then run it.
hope this help.