Jump to content
Software FX Community

Getting error when we click on print option in chart control for windows 7 64 bit machine only


srinu.vass

Recommended Posts

 Hi ,

Environment:

OS: Windows 7 64 bit machine

VS: Visual studio 2005 

 I am getting exception when click on print button in chart control.Please check the below sceanrio.Isssue is only with Windows 7 64 bit machine

1. opened chartFx control

2. Right click above the bar graph right side and select 'Toolbar'  

3.Click 'Print' and click 'Ok' from the 'Print' menu  then select "Microsoft XPS Document Writer" from print dialog

4.The 'Save as a file'  dialog will open

5. Click "Cancel" button on  'Save as a file'  dialog window

Then getting below exception.Please sugggest me how can i handle this exception and how to track the print option event in chartFX control with .net application.

Exception Text **************System.ComponentModel.Win32Exception: The data area passed to a system call is too small at System.Drawing.Printing.StandardPrintController.OnStartPrint(PrintDocument document, PrintEventArgs e) at System.Windows.Forms.PrintControllerWithStatusDialog.OnStartPrint(PrintDocument document, PrintEventArgs e) at System.Drawing.Printing.PrintController.Print(PrintDocument document) at System.Drawing.Printing.PrintDocument.Print() at ChartFX.WinForms.Printer.PrintDialog(Boolean fromTo) at ChartFX.WinForms.ba.a(CommandsEventArgs A_0, Boolean& A_1) at ChartFX.WinForms.ba.a(Object A_0, CommandsEventArgs A_1, Boolean& A_2) at ChartFX.WinForms.ba.a(Object A_0, CommandsEventArgs A_1) at ChartFX.WinForms.CommandCollection.a(Int32 A_0, Int32 A_1, IUIObject A_2) at ChartFX.WinForms.CommandCollection.a(Object A_0, Int32 A_1, ICommand A_2, Boolean A_3, IUIObject A_4)at ChartFX.WinForms.CommandCollection.a(Object A_0, Int32 A_1, ICommandA_2, Point A_3, CommandEventHandler A_4, CommandMenuFlags A_5) at ChartFX.WinForms.ToolBar.c(MouseEventArgs A_0) at ChartFX.WinForms.at.d(MouseEventArgs A_0) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.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)

 

Thanks,

Srinivas 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...