Results 1 to 4 of 4
  1. #1
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    The Netherlands
    Posts
    216
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Change size of report window from code (access 97)

    Is it possible to change the position (left, right) and the size (height, width) of the report preview window from code?
    Trying it gives the message these properties are read only. Is there a way around?

  2. #2
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Change size of report window from code (access 97)

    How are you trying to do it? You should be able to use MoveSize, but I usually just maximize the report in its OnOpen event and do a restore in the Close event.
    Charlotte

  3. #3
    4 Star Lounger
    Join Date
    Jan 2001
    Location
    Altnau, Thurgau, Switzerland
    Posts
    447
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Change size of report window from code (access 97)

    You could use the hWnd property of the report and a windows API call such as MoveWindow or SetWindowPos

  4. #4
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    The Netherlands
    Posts
    216
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Change size of report window from code (access 97)

    Thanks,

    Maximize and Restore.... I tried to do it the hard way, forgot to consider the easy way.
    Thanks for reminding me.

    Bart

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •