I am preparing a report and currently I have a portrait and landscape subreports, I want to mix them in one report.?
It's possible to combine landscape and portrait subreports, you need a new section for ever subreport.
Right click on one of the section and select "Section expert", from here you can add new sections by clicking on an existing section (header, details, footer) and the Add button on the "Paging" tab on the right you can decide the orientation of you section (Default (portrait), landscape and portrait).
Now create your subreport and put it in the new section.
For a portrait subreport just follow the default creation procedure.
For a landscape subreport create a landscape oriented section and in the subreport set landscape orientation in each section of the subreport.
Page Header and Page Footer won't allow you to change the orientation, so in your landscape subreport suppress those section without drill down (right click on the section to find this option) or Crystal Report will act weird and create a new page for every section with different orientation and suppressing them will prevent this situation.
At the end you will have a situation like this
If a main report is set to portrait orientation and the subreport is set to landscape, the subreport will print landscape, on a portrait oriented page, thus resulting in data being cut off. In the reverse scenario, main report is landscape, subreport portrait, the subreport will print portrait on a landscape oriented paper and as above, data will be cut off.
I am using Crystal Reports 10. It doesn't has "Paging" tab in Section Expert. I believe mix page orientation is not possible in this version.
Related
I have a report which contains multiple pages. Is there any possibility to use a design for the first page and on the other pages to have a different one? If so, how can I achieve this? Thanks
It's possible to combine landscape and portrait subreports, you need a new section for ever subreport.
Right click on one of the section and select "Section expert", from here you can add new sections by clicking on an existing section (header, details, footer) and the Add button on the "Paging" tab on the right you can decide the orientation of you section (Default (portrait), landscape and portrait).
Now create your subreport and put it in the new section.
For a portrait subreport just follow the default creation procedure.
For a landscape subreport create a landscape oriented section and in the subreport set landscape orientation in each section of the subreport.
Page Header and Page Footer won't allow you to change the orientation, so in your landscape subreport suppress those section without drill down (right click on the section to find this option) or Crystal Report will act weird and create a new page for every section with different orientation and suppressing them will prevent this situation.
I have created a report using crystal report in which i have suppressed the header. Orientation of page is Landscape but when i print the page there is space in top area of page. I don't know why this space is coming.any help?
Print snapshot is below
Check list:
Report header supressed
Margin top sets to 0
I need to create a report with a subreport, but the main report has vertical orientation, and I need that the subreport has horizontal orientation, the problem is when I change the page orientation in the subreport, change in the main report.
If someone know how to put diferent orientation in the main and the subreport, please tell me.
Thanks
Place the subreport in its own section. Then, in the Section Expert for the section in which the sub report resides, set the orientation of that section to landscape.
I was able to change the layout of sub-report by going to section expert of sub-report sections and changing layout there, individually for each section.
Placing sub-report in a separate subsection was not required in my case.
Thank you
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
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.