Horizontal page in Crystal Reports - crystal-reports

How can I design my report to use it horizontally ? I really need more fields so vertically won't show everything.
Thanks.
edited:
I need the page to be landscape instead of portrait.
Sorry, my version is 8.0.

You should be able to change the orientation under the printer settings for Crystal from File > Print...
As long as your printer supports landscape printing, the report will reflect the change (check printer drivers if it doesn't allow landscape but you think it should).

Depends on if you are trying to do this at design time or run-time, and it depends on the version of Crystal Reports you are using. Usually you go to File -> Page Setup to change the paper orientation and size.
Edit - the runtime environment for that version of Crystal doesn't support changing the paper orientation at program execution through the CrystalReport object, just when you are designing the report. You would have to change the orientation using the printer options when selecting the printer to print to.

If you right click on your report,go to design-> page setup, there will be an orientation tab to select landscape or portrait.

Related

Report Orientation in Jasperreport

I have a report this is the details as follow:
- the paper size is A5
- the orientation based on the xml file is Landscape but when printing, the output is portrait.
Then when I download the file (I used adobe reader) when I go to print preview I selecting the Landscape, the report is not change to landscape format. I am new in this scenarios Please Help me out
thanks.
It is not sufficient to change pageHeight and pageWidth.
Additionally you have to set orientation="Landscape" in the top-level jasperReport tag. Otherwise it could be that some tools will always re-set your report back to portrait and ignore the width and height settings.
This option is also available in Jaspersoft Studio:

In landscape mode, can't add lines or boxes wider than 8"

In Crystal Reports 2008, to which I've recently upgraded, I have a new report in which I'm trying to place boxes and lines. The report is Letter, landscape, with .25" margins, so I have 10.5" of space to work with.
Unfortunately, Crystal will only let me place drawing objects in the first 8" of space. If they overlap that range, Crystal sizes them back to 8". If I place them entirely to the right, Crystal moves them back to the 8" mark.
I have the same problem if I try to change the width or position using the Size and Position box.
Sounds like a bug where it's mistaking the available length for the available width.
Any idea how to fix this or work around it?
Old thread i know but here is the correct answer/fix.
The issue with only being able to draw a line so far across the report is due the the ruler at the top not extending along the full length of the report page.
This in turn is down to the default printer that is selected and the restricted paper sizes that it allows.
Install a dummy printer that accepts larger paper sizes and either set it to default, or click on File > Page Setup and under printer options, select the dummy printer.
The ruler should now extend across the full length of the report page and you can extend your line to match it.
NB: This was in Crystal Reports 2013 R2 - The settings may differ slightly in older/newer versions.
i had same issue. could not scratch lines.
i tried to change page setup from landscape to portrait and then did required changes.
again changed page setup to landscape and it was working fine .

Crystal report 2008 User Defined Page Layout

I want to set the Report Layout on client side So User can set report's layout Which may be Portrait OR Landscape after report shown. So user will have the option if data comes on half page then he can use landscape to print Report Otherwise Portrait.
If you're wanting to design two different report layouts in one RPT file and pick one at runtime, that's not really possible. If you're just wanting to know how to set the orientation, here are the properties for doing that:
cryRpt.PrintOptions.PaperOrientation = CrystalDecisions.Shared.PaperOrientation.Landscape
cryRpt.PrintOptions.PaperOrientation = CrystalDecisions.Shared.PaperOrientation.Portrait
cryRpt.PrintOptions.PaperOrientation = CrystalDecisions.Shared.PaperOrientation.DefaultPaperOrientation

An annoying printing issue with Crystal Reports 2008

A little background:
I have an extremely annoying printing issue with crystal reports. My environment is crystal reports 2008 SP2 on Windows 7 (64bit), Visual studio 2008 and .net framework 3.5 with all the latest updates for everything. The report is designed basically to render a small shelf label of the size (40mm width and 20mm height). In crystal when I set the page size to the above mentioned values and set orientation to portrait and take a preview, everything is displayed as i expect it to be and issuing a print command, it prints absolutely correct.
The problem:
The problem comes when i print this report from my program (in vb.net), dynamically setting data to some text fields, the result is that crystal somehow changes the print orientation, NOT the paper orientation as in portrait or landscape. Instead of printing from top left towards the bottom right, it rotates the whole output at 90 degrees to the left and reduces everything so small that it is barely visible, although it prints everything out. I have tested it on Intermec PF8t and Zebra GK420d label printers and a whole bunch of laser printers, but with the above stated page settings the output is always the same.
Another strange thing that i noticed while experimenting with page sizes if i switch to landscape mode, the print out is correct in its font sizes and positions but then the text gets truncated due to overflowing the page size.
Can anyone help me with this. Does crystal has anything like its own print drivers or something. I have tried to ensure to the best of my abilities that it is not a printer driver problem.
I had a pretty similar problem with an older version of Crystal; I changed the layout to landscape and redefined the page size to match that layout and the problem disappeared. That and making sure no text went outside the page boundaries.

Printed Report is not recognizing margins

I have an application developed in vb using .net framework. We are using Crystal Reports XI runtime to run reports from this application. When I view the reports in Crystal, they are properly centered on the page, however, when we view the report on screen it all looks correct, however, when we send it to the printer, the report is high on the page and to the left margin. Can anyone give me a work around for this? We generally print the reports to screen first and then to Adobe PDF.
Thanks for your assistance.
Go to File/Page Setup and make sure your margins are set up correctly. This also could be a printer driver issue.