Blank Page and Alignment Issues in SSRS Report - c#

I am trying to generate a report in SSRS BIDS 2008 and export it to PDF format in my applicaiton. I have a main report with 20+ sub reports. On Exporting to PDF I am getting multiple blank pages in between.​
I have googled up a few things like setting the Page Width, Margins, Keepto​gether and Remove White Space. But still I am facing the issue.
Please help.

I believe that your Sub Report page size are not even, ensure that all are using the same page size E.g.: if you use Letter format as page size ensure all the Sub Report have the same Letter format. Also your Main report also must use the same page size. Hope this helps!

Related

Printing Bar-code Crystal Report in C#

I am working on a project that prints bar-code labels using crystal reports in windows forms application by c#.
the problem is what happens when i am trying to print the report:
at the end of every page there are two free labels added to the printed report.
i want the report to be printed continuously without any gabs or free labels in between pages.
here is the report page setup and the printer preferences:
as the picture shows, my report has 4 bar-codes, and every page in the report has only 2 bar-codes, so i have 2 pages to be printed ... after every page there are the 2 free labels as the picture,
the question is how to prevent that and print the 4 bar-codes without any gabs?
This is due to the crystal report headers and footers.
Open your report and suppress all its headers and footers if you are not using them. (Suppress report header, report footer, page header and page footer)
Hope you have set your printer settings properly.
[solved]
i keep watching the number of pages at the report and offline printer
i found that the number of pages always get duplicated at the printer how ever i changed the height of the report page for example to be 1 cm there always one free page at the end of every page,
so i tried to change the width of the Details Size to be more width and make all margins equal 0
then it get worked fine as expected

Report Viewer Export to PDF (ASP.NET)

I have report viewer in asp.net project with C#.
I see the report good in Chrome, and in the toolbar I have option to export it to:
pdf /word / excel.
export to word and excel work good, but when I export it to PDF, it's seperate the report to 3 diffrent pages. (altough it's enter in 1 page)
How can I fix that? and export it to one PDF page . (like the word)
(I attach picture to show the diffrents:
http://oi61.tinypic.com/mvgayw.jpg
)
You need to check the Report page orientation and your page and body margins to ensure they fit in the page size you are using.
Please refer to this previous answer for details:
How to get rid of blank pages in PDF exported from SSRS

Page Break in C# Crystal Reports

In my C# .Net windows application am using crystal reports to print employee information.Am using Roll Paper (A4) for printing purpose.Here when i print the report,its working fine.My issue is that if the table contains only one row of record,it takes the whole page to print there is no page break. ,i mean the whole A4 paper to print the report.But i need only a small portion of the same.How to put page break and remove the white blank space after the report. .
I understand your problem.it is not a one sided problem even if the records are more than A4 page capacity then your print will not be printed in single piece.
Crystal Report does not support dynamic paper size and roll printing does not have fixed paper height. so, using crystal report you could not place page break at the end of your report data.
You have to create your code to print your report if the report structure is not complicated. I don't know much about microsoft reporting tool. i think microsoft reporting tool may help you.

How to show an RDLC report in C# Report Viewer with a vertical scroll bar?

I have generated a 9 page report using RDLC reports in C# VS 2010, but what I want is a vertical scroll bar so that I scroll down the pages like PDF instead of Page Next/ Previous button. I am searching and Googled it for answer but didn't find anything. I hope I am clear with my question. For any further detail please comment. Thank You.
Unless you force your report to a single page, I'm not sure if there's a way to do what you want. See Hiding the page scroll control in a Reporting Services report for something similar. Is it a requirement that you view the report using the RDLC report viewer? Something I have done before is use the report viewer to generate my report but I export it as a pdf and display it to the user using some other method/control. For example, once the report is loaded you can call the code below.
byte[] bytes = reportViewer1.LocalReport.Render("PDF");
MemoryStream ms = new MemoryStream(bytes);
Depending on your application, use the memory stream or the byte array to display the pdf in a different control with a scrollbar. That way you aren't limited by the report viewer page navigation buttons.
Incase you are willing to only display report then you can change report page width.but to print your report either you would require specified page size or convert report to else format.you can set page size from here crystal report=>design=>page setup.

MS Report Viewer Displaying Single Page

I'm working on a WinForms program in C# which uses a ReportViewer control to display a fairly large *.rdlc report. The report was recently upgraded to the 2008 version, and now displays what should be 80+ pages as a single page and cuts off the bottom. It only seems to happen on one specific report, though it works fine in print preview and exports to PDF OK.
It may be that the report is just too long?
The only thing I've come across on Google suggested making all the cell KeepTogether properties true, which didn't help.
Open Your .rdlc file
goto Report-->ReportProperties-->Layout
Adjust your height,width,top,bottom

Categories