[dba-VB] VS Printer dialogue error

Charlotte Foust cfoust at infostatsystems.com
Tue Oct 30 10:23:58 CDT 2007


Just a SWAG, but given the "Parameter is invalid" message, I wonder if
the mapping to the printer is different for those client machines.
Assuming this is one or more network printers, that is.  If the printers
are local, no ideas.

Charlotte Foust

-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com
[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock
Sent: Tuesday, October 30, 2007 8:14 AM
To: dba-vb at databaseadvisors.com
Subject: [dba-VB] VS Printer dialogue error

Hi all

A VB.Net app is running at a client. The developer is gone and no source
code is at hand. 
One machine can print, the others can't. On those the (localized) error
message below is shown when the print dialog should open.

Any hints what could be causing this? Could it be a missing file (the
parameter), but which?
The machines all run WinXP Pro.

/gustav


************** Exception text **************
System.ArgumentException: Parameter is invalid.
   ved System.Drawing.Bitmap..ctor(String filename)
   ved VRS_v2_0.Print.PrintLabelDBAccess..ctor()
   ved VRS_v2_0.MainForm.MenuItem1_Click(Object sender, EventArgs e)
   ved System.Windows.Forms.MenuItem.OnClick(EventArgs e)
   ved System.Windows.Forms.MenuItem.MenuItemData.Execute()
   ved System.Windows.Forms.Command.Invoke()
   ved System.Windows.Forms.Command.DispatchID(Int32 id)
   ved System.Windows.Forms.Control.WmCommand(Message& m)
   ved System.Windows.Forms.Control.WndProc(Message& m)
   ved System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   ved System.Windows.Forms.ContainerControl.WndProc(Message& m)
   ved System.Windows.Forms.Form.WndProc(Message& m)
   ved
System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   ved System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&
m)
   ved System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32
msg, IntPtr wparam, IntPtr lparam)





More information about the dba-VB mailing list