Crystal Report: Centering reports within report viewer control - crystal-reports

Looking for a way to center a report within the .NET Crystal Reports viewer control when the containing form is maximized.

I thought it centers the report by default? I put the crv onto a form and set the dock to fill. In fact, I don't know how to get it to not center the report.

On the DOCK property of the viewer control, set it to FILL.

Set the ReportViewer control DOCK property to FILL and set the Maximized property of the form programmatically after calling the Show method. If it is set in the design time it's not working. See below my sample code.
Me.rptViewer.Zoom(100)
Me.rptViewer.Show()
Me.Show()
Me.WindowState = FormWindowState.Maximized

Related

Microsoft Access : form height size in view mode does not match the height in design mode

I have designed an Access 2016 form with an embedded subform.
When displaying my (main) form (shown in 1st picture), I notice a space below the sub-form and above the "Form footer" that I cannot see in design mode (see 2nd picture).
I have no clue how I could get rid of this unncessary space. Can someone help me out to find out what I have missed in the design of my userform ?
Many thanks in advance.
The simplest way would be to move the buttons from the form footer to the bottom of the detail section.
Then get rid of header & footer, and set the form to Auto Resize = Yes.
If you don't want to do this, you must set and save the display size (height) of the popup form in design view.
You can't do this with tabbed documents, you need to switch to overlapping windows:
https://support.office.com/en-us/article/show-or-hide-object-tabs-25074ab7-bcc8-466d-81aa-b6cf739715cb
(and then open the form non-maximized in design view.)
It may take a bit of trial & error to get the height exactly right in design view.
Similar question: Access 2010 Popup Report always matches size of Report Design window

Jasper report - Collapsible Input section

Is there a way to make the input section (filters) collapsible while viewing the report in jasper? This is to get a wider view of the entire report. The input section takes away some space. So, once I select my filters, I would want a mechanism to collapse it. Is there a way for this?
Thanks
Rathi
If you right-click the report in the repository browser and choose Edit, you can customize how the input controls layout in the report viewer, for example you could choose Pop-up window.
See here for a description of all the layouts: https://community.jaspersoft.com/documentation/tibco-jasperreports-server-ultimate-guide/v640/customizing-report-rendering-page
There is a way. You can use "Input Controls" icon available in the Report Viewer Tool Bar to show/ hide the filters for a report. See image here:
Show-Hide Input controls
Alternatively, if you got Commercial edition of Jasper Reports Server, you can create your own custom report viewer page to add auto hide feature for input controls (filters) and can embed reports inside it using Visualize.js.

How to align parameters Textbox in SSRS 2008

I have read in MSDN it says that...
1.Parameters pane: The report viewer toolbar displays a prompt and default value for each parameter. Parameter layout on the toolbar is formatted automatically. The order is determined by the order that parameters appear in the Report Data pane.
It is not possible to change the design of the parameters textbox?
No, it is not possible to change the design of the parameters textbox if you are using SSRS out of the box. If you want to customize the layout, you need to design a Web/Windows form and create your own layout for parameters and use the ReportViewer control to which you pass the parameters via code and then display the report.
The below 'dirty' way worked for me. If you already have the parameters built then delete them and rebuild them
Step1: Create the paramters in the report data window in the order which you want them to be display left to right(and they overflow into the row below)
Step2: Assign the parameters in the same order in the dataset.

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

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.