CppMax Homepage
Forum Home Forum Home > ReportMax > ReportMax
  New Posts New Posts RSS Feed - How to auto-zoon to full page
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to auto-zoon to full page

 Post Reply Post Reply
Author
Message Reverse Sort Order
emadns View Drop Down
Admin Group
Admin Group


Joined: 06 Feb 2012
Status: Offline
Points: 130
Post Options Post Options   Thanks (0) Thanks(0)   Quote emadns Quote  Post ReplyReply Direct Link To This Post Topic: How to auto-zoon to full page
    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()

Back to Top
MarcB View Drop Down
Newbie
Newbie
Avatar

Joined: 22 Apr 2014
Location: NH, USA
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote MarcB Quote  Post ReplyReply Direct Link To This Post 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 ?  
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

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