Print Page | Close Window

How to auto-zoon to full page

Printed From: CppMax
Category: ReportMax
Forum Name: ReportMax
Forum Description: ReportMax Questions and Answers
Printed Date: 21 Apr 2018 at 3:22am
Software Version: Web Wiz Forums 11.06 -

Topic: How to auto-zoon to full page
Posted By: MarcB
Subject: How to auto-zoon to full page
Date Posted: 28 Apr 2014 at 1:04pm
When I initially display a report, I would like it to auto-zoom so that the entire report page is visible.  How can I do this ?  

Posted By: emadns
Date Posted: 29 Apr 2014 at 2:09am
1. Add the following function to the code behind:
private void ResizeReportMaxViewer()
    if (reportMaxViewer3 != null)
          reportMaxViewer.Location = new Point(0, 0);
          reportMaxViewer.Size = new Size(ClientRectangle.Width, ClientRectangle.Height);

2. Override Form Load event
Call ResizeReportMaxViewer()

3. Override Form SizeChanged event
Call ResizeReportMaxViewer()

Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.06 -
Copyright ©2001-2016 Web Wiz Ltd. -