none
Windows Forms: PrintPreviewControl - not allowed to preview more than 1000 pages? RRS feed

  • Question

  • Large reports (> 1000 pages) give out an error message if you try to "page down" from page 1000

    Error message:

    Value of '1001' is not valid for 'Value'. 'Value' should be between 'Minimum' and 'Maximum'.

    From immediate window":
    "A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in System.Windows.Forms.dll"


    Terje Myklebust

    Tuesday, May 15, 2012 11:03 AM

Answers

  • Large reports (> 1000 pages) give out an error message if you try to "page down" from page 1000

    Error message:

    Value of '1001' is not valid for 'Value'. 'Value' should be between 'Minimum' and 'Maximum'.

    From immediate window":
    "A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in System.Windows.Forms.dll"


    Terje Myklebust

    Hi Terje,

    Welcome to the MSDN Forum.

    So what number do you set to this property: http://msdn.microsoft.com/en-us/library/system.windows.forms.control.maximumsize.aspx ?

    If it is 1000, please change it to a more appropriate one.

    Best regards,


    Mike Feng
    MSDN Community Support | Feedback to us
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, May 16, 2012 9:40 AM
    Moderator

All replies

  • Are you sure you don't mean the PrintPreviewDialog?  It's just a standard WindowsForm.  Inherit it and modify it as you desire.

    Tuesday, May 15, 2012 3:58 PM
  • Large reports (> 1000 pages) give out an error message if you try to "page down" from page 1000

    Error message:

    Value of '1001' is not valid for 'Value'. 'Value' should be between 'Minimum' and 'Maximum'.

    From immediate window":
    "A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in System.Windows.Forms.dll"


    Terje Myklebust

    Hi Terje,

    Welcome to the MSDN Forum.

    So what number do you set to this property: http://msdn.microsoft.com/en-us/library/system.windows.forms.control.maximumsize.aspx ?

    If it is 1000, please change it to a more appropriate one.

    Best regards,


    Mike Feng
    MSDN Community Support | Feedback to us
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, May 16, 2012 9:40 AM
    Moderator
  • For help about the Windows System Forms library

    http://social.msdn.microsoft.com/Forums/en-US/user/forums

    Be aware the dll you show currently in not the Base DLL from Net.

    Strange enough some think that. 



    Success
    Cor

    Wednesday, May 16, 2012 9:53 AM
  • Hi Terje,

    Do you have any update?

    Best regards,


    Mike Feng
    MSDN Community Support | Feedback to us
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, May 21, 2012 11:31 AM
    Moderator