Suntech

Print Error - Beta 2

Discussion created by Suntech on Mar 19, 2010
When I try to send the printouts, I get the exception :"Cannot print. An error occurred while trying to access the specified printer. Check printer setup and try again." I could not find the solution to the problem. Perhaps is there a newer version or service pack of this one?
I have 9.4 beta 2 version, I have also ArcGIS_Desktop94_Beta2_119324.iso and ArcGIS_Engine94_Dev_Kit_Windows_Beta2_119336.iso installed.
The exception can be repeated by using the demo application available here:
C:\Program Files\ArcGIS\DeveloperKit9.4\Samples\ArcObjectsNET\PageLayoutControlPrinting\CSharp\ 

The contents of the exception:
System.Runtime.InteropServices.COMException was unhandled
  HelpLink="\"Output.hlp\""
  Message="Cannot print. An error occurred while trying to access the specified printer. Check printer setup and try again."
  Source="\"esri.Output\""
  ErrorCode=-2147220722
  StackTrace:
       at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
       at ESRI.ArcGIS.Controls.IPageLayoutControlDefault.PrintPageLayout(Int16 StartPage, Int16 EndPage, Double Overlap)
       at ESRI.ArcGIS.Controls.AxPageLayoutControl.PrintPageLayout()
       at ArcObjectsPrototype.MainForm.printButton_Click(Object sender, EventArgs e) in D:\src\OSS 11.1\XSolutions\Test\Technology\Spatial\ArcObjectsPrototype\MainForm.cs:line 1038
       at System.Windows.Forms.Control.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ButtonBase.WndProc(Message& m)
       at System.Windows.Forms.Button.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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.Run(Form mainForm)
       at ArcObjectsPrototype.Program.Main() in D:\src\OSS 11.1\XSolutions\Test\Technology\Spatial\ArcObjectsPrototype\Program.cs:line 43
       at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException:

The error code found is rather not appropriate to the problem

  http://edndoc.esri.com/arcobjects/9.2/ComponentHelp/esriGeoDatabase/fdoError.htm
  
  FDO_E_DATASET_TYPE_NOT_PRESENT             -2147220722      The dataset type is not present in the database.

Outcomes