Welcome to the Xceed Community Sign in | Join | Help
Community Search  

Print Manager Error "Parameter is not valid"

Sort Posts: Previous Next
  •  06-11-2008, 1:30 PM Post no. 12872

    Print Manager Error "Parameter is not valid"

    I am having issues using the print button on the Chart Print Manageer dialog.  I am getting the following error when i try to print directly from the manager interface.  Any suggestions as to the issue?  Has anyone else seen this?

    ************** Exception Text **************
    System.ArgumentException: Parameter is not valid.
       at System.Drawing.Graphics.GetHdc()
       at Xceed.Chart.GraphicsGL.GLDevice.RenderLargeBitmap(Bitmap pBitmap)
       at Xceed.Chart.GraphicsGL.GLDevice.RenderToBitmap(Bitmap pBitmap)
       at Xceed.Chart.PrintManager.RenderToBitmap(PrintDocument printDocument)
       at Xceed.Chart.PrintManagerDialog.UpdatePrintPreview(Boolean bUpdatePreviewChart)
       at Xceed.Chart.PrintManagerDialog.UpdatePrinterDependentSettings()
       at Xceed.Chart.PrintManagerDialog.InstalledPrintersCombo_SelectedIndexChanged(Object sender, EventArgs e)
       at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
       at System.Windows.Forms.ComboBox.WmReflectCommand(Message& m)
       at System.Windows.Forms.ComboBox.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

     

    Chart components being used 

     ----------------------------------------
    Xceed.Chart
        Assembly Version: 4.1.100.0
        Win32 Version: 4.1.7467.13300
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Xceed.Chart/4.1.100.0__ba83ff368b7563c6/Xceed.Chart.dll

    ----------------------------------------
    Xceed.Chart.GraphicsCore
        Assembly Version: 4.1.100.0
        Win32 Version: 4.1.7467.13300
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Xceed.Chart.GraphicsCore/4.1.100.0__ba83ff368b7563c6/Xceed.Chart.GraphicsCore.dll
    ----------------------------------------
    Xceed.Chart.Standard
        Assembly Version: 4.1.100.0
        Win32 Version: 4.1.7467.13300
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Xceed.Chart.Standard/4.1.100.0__ba83ff368b7563c6/Xceed.Chart.Standard.dll
    ----------------------------------------
    Xceed.Chart.Utilities
        Assembly Version: 4.1.100.0
        Win32 Version: 4.1.7467.13300
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Xceed.Chart.Utilities/4.1.100.0__ba83ff368b7563c6/Xceed.Chart.Utilities.dll
    ----------------------------------------
    Xceed.Chart.Core
        Assembly Version: 4.1.100.0
        Win32 Version: 4.1.7467.13300
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Xceed.Chart.Core/4.1.100.0__ba83ff368b7563c6/Xceed.Chart.Core.dll
    ----------------------------------------
    Xceed.Chart.GraphicsGL
        Assembly Version: 4.1.100.0
        Win32 Version: 4.1.7467.13300
        CodeBase: file:///C:/WINDOWS/assembly/GAC_32/Xceed.Chart.GraphicsGL/4.1.100.0__ba83ff368b7563c6/Xceed.Chart.GraphicsGL.dll

    ----------------------------------------
    Xceed.Chart.Graphics2D
        Assembly Version: 4.1.100.0
        Win32 Version: 4.1.7467.13300
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Xceed.Chart.Graphics2D/4.1.100.0__ba83ff368b7563c6/Xceed.Chart.Graphics2D.dll

     

     

  •  06-16-2008, 4:39 PM Post no. 13001 in reply to 12872

    Re: Print Manager Error "Parameter is not valid"

    At this point, this is not something we can reproduce.
    André
    Software Developer and Tech Support
    Xceed Software Inc.
  •  06-20-2008, 5:09 PM Post no. 13123 in reply to 12872

    Re: Print Manager Error "Parameter is not valid"

    I have the exact same error...I can't get any information out of the exception either.  I do know that I didn't used to have this problem, but now I do.  Version Xceed.Chart for .NET Windows Forms v 4.2.100.0

    My code:

                Dim ChartPrinter As Xceed.Chart.PrintManager = uxChart12MonthRolling.PrintManager

                With ChartPrinter
                    .PrintBackgroundFrame = False
                    .Landscape = True
                    .Print()
                End With

    In fact, even in the VS 2008 IDE, if select "Print..." from the Properties window of via smart tag, I get the exact same error.  Is there a fix for this?

  •  06-20-2008, 6:02 PM Post no. 13124 in reply to 12872

    Re: Print Manager Error "Parameter is not valid"

    What seems to be causing this problem is the transparency setting and using Color.Transparent.

     I found a workaround:

                 ' BUG in xceed Chart 4.2.100.0 with TransparentBackground must to white and then set back to later on.
                uxChart12Rolling.Settings.TransparentBackground = False
                uxChart12uxChart12Rolling.BackColor = Color.White

                Dim ChartPrinter As Xceed.Chart.PrintManager = uxChart12Rolling.PrintManager

                With ChartPrinter
                    .Landscape = True
                    .Print()
                End With

                ' BUG in xceed Chart 4.2.100.0 with TransparentBackground - reset back to Transparent.
                uxChart12Rolling.Settings.TransparentBackground = True
                uxChart12Rolling.BackColor = Color.Transparent

    When in VS 2008 IDE /Designer, make sure that these setting are false and not transparent.

    Rob

  •  06-23-2008, 4:26 PM Post no. 13168 in reply to 13124

    Re: Print Manager Error "Parameter is not valid"

    On our side, we can't still reproduce this issue, whatever the settings, it prints fine.

    If any one can provide a sample application reproducing the issue, we will be glad to investigate this further.


    André
    Software Developer and Tech Support
    Xceed Software Inc.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.