Printing on NOVELL iPRINT PORT always fails...Hi all,<br> <p><br></p> <p>trying to print a xps-file via Batchwriter/SerializerWriterCollator on different bins of a &quot;HP Laserjet 4050&quot; printer, and therefor I modify the PrintTickets and set the correct values (1st page -&gt; ns0000<img height=19 alt=Surprise src="http://forums.microsoft.com/MSDN/emoticons/emotion-3.gif" width=19>ption2 / rest pages -&gt; ns0000<img height=19 alt=Surprise src="http://forums.microsoft.com/MSDN/emoticons/emotion-3.gif" width=19>ption3 which should be upper/lower bins)... I've read the values from the PrintCapabilites-XML of the PrintQueue (like I've posted also code in the other thread about InputBins...)<br></p> <p><br></p> <p>This works fine when printing on same driver with a local printport or LPT1: or even on a TCP-Port, but it doesn't work on a &quot;Novell iPrint Port&quot; (like ipp://print.company-corp.com/ipp/HPLJ4050N-OG1)</p><br> <p>I keep getting following errors:</p><br>&quot;System.Printing.PrintSystemException&quot; wurde aufgefangen.<br>Message=&quot;Printing was canceled. Win32 error: Falscher Parameter.\r\n&quot;<br>Source=&quot;System.Printing&quot;<br>StackTrace:<br>bei Microsoft.Internal.GDIExporter.CGDIRenderTarget.ThrowOnFailure(Int32 hr)<br>bei Microsoft.Internal.GDIExporter.CGDIRenderTarget.StartDocument(String printerName, String jobName, String filename, Byte[] devmode)<br>bei Microsoft.Internal.AlphaFlattener.MetroToGdiConverter.StartDocument(String jobName, PrintTicket ticket)<br>bei System.Windows.Xps.Serialization.NgcSerializationManager.StartDocument(Object o, Boolean documentPrintTicketRequired)<br>bei System.Windows.Xps.Serialization.NgcSerializationManager.SaveAsXaml(Object serializedObject)<br>bei System.Windows.Xps.VisualsToXpsDocument.WriteVisual(Boolean asyncMode, PrintTicket printTicket, PrintTicketLevel printTicketLevel, Visual visual)<br>bei System.Windows.Xps.VisualsToXpsDocument.Write(Visual visual, PrintTicket printTicket)<br>...<br><br>or sometimes this one:<br><br>&quot;PrintTicket provider failed to retrieve PrintCapabilities. Win32 error: -2147467259&quot;<br><br>_______________<br><br>The SAME CODE works fine on all other printers except on that one using a Novell iPrint Port...Also printing without modified PrintTickets doesn't work...<br>what's going wrong here? Does printing on a Novell iPrint Port not work with XPS?<br><br>I also have noticed that the PrintQueue-Name of this shared printer (&quot;HPLJ4050N-OG1 on ipp://print.company-corp.com/ipp/HPLJ4050N-OG1&quot;) can't be used to retrieve the PrintQueue, but the sharename or queue-port-name...<br><br>anyone of Microsoft can help out on that issue??<br>somebody else noticed this behaviour also? any ideas?<br><br>regards,<br>Jo<span style="font-family:arial"></span><br><br> <p><br></p>© 2009 Microsoft Corporation. All rights reserved.Wed, 03 Jun 2009 15:03:13 Za0251e42-6d99-421d-8901-1a30265077edhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/a0251e42-6d99-421d-8901-1a30265077ed#a0251e42-6d99-421d-8901-1a30265077edhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/a0251e42-6d99-421d-8901-1a30265077ed#a0251e42-6d99-421d-8901-1a30265077edJo0815http://social.msdn.microsoft.com/Profile/en-US/?user=Jo0815Printing on NOVELL iPRINT PORT always fails...Hi all,<br> <p><br></p> <p>trying to print a xps-file via Batchwriter/SerializerWriterCollator on different bins of a &quot;HP Laserjet 4050&quot; printer, and therefor I modify the PrintTickets and set the correct values (1st page -&gt; ns0000<img height=19 alt=Surprise src="http://forums.microsoft.com/MSDN/emoticons/emotion-3.gif" width=19>ption2 / rest pages -&gt; ns0000<img height=19 alt=Surprise src="http://forums.microsoft.com/MSDN/emoticons/emotion-3.gif" width=19>ption3 which should be upper/lower bins)... I've read the values from the PrintCapabilites-XML of the PrintQueue (like I've posted also code in the other thread about InputBins...)<br></p> <p><br></p> <p>This works fine when printing on same driver with a local printport or LPT1: or even on a TCP-Port, but it doesn't work on a &quot;Novell iPrint Port&quot; (like ipp://print.company-corp.com/ipp/HPLJ4050N-OG1)</p><br> <p>I keep getting following errors:</p><br>&quot;System.Printing.PrintSystemException&quot; wurde aufgefangen.<br>Message=&quot;Printing was canceled. Win32 error: Falscher Parameter.\r\n&quot;<br>Source=&quot;System.Printing&quot;<br>StackTrace:<br>bei Microsoft.Internal.GDIExporter.CGDIRenderTarget.ThrowOnFailure(Int32 hr)<br>bei Microsoft.Internal.GDIExporter.CGDIRenderTarget.StartDocument(String printerName, String jobName, String filename, Byte[] devmode)<br>bei Microsoft.Internal.AlphaFlattener.MetroToGdiConverter.StartDocument(String jobName, PrintTicket ticket)<br>bei System.Windows.Xps.Serialization.NgcSerializationManager.StartDocument(Object o, Boolean documentPrintTicketRequired)<br>bei System.Windows.Xps.Serialization.NgcSerializationManager.SaveAsXaml(Object serializedObject)<br>bei System.Windows.Xps.VisualsToXpsDocument.WriteVisual(Boolean asyncMode, PrintTicket printTicket, PrintTicketLevel printTicketLevel, Visual visual)<br>bei System.Windows.Xps.VisualsToXpsDocument.Write(Visual visual, PrintTicket printTicket)<br>...<br><br>or sometimes this one:<br><br>&quot;PrintTicket provider failed to retrieve PrintCapabilities. Win32 error: -2147467259&quot;<br><br>_______________<br><br>The SAME CODE works fine on all other printers except on that one using a Novell iPrint Port...Also printing without modified PrintTickets doesn't work...<br>what's going wrong here? Does printing on a Novell iPrint Port not work with XPS?<br><br>I also have noticed that the PrintQueue-Name of this shared printer (&quot;HPLJ4050N-OG1 on ipp://print.company-corp.com/ipp/HPLJ4050N-OG1&quot;) can't be used to retrieve the PrintQueue, but the sharename or queue-port-name...<br><br>anyone of Microsoft can help out on that issue??<br>somebody else noticed this behaviour also? any ideas?<br><br>regards,<br>Jo<span style="font-family:arial"></span><br><br> <p><br></p>Tue, 05 Jun 2007 08:08:04 Z2007-08-08T07:33:45Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/a0251e42-6d99-421d-8901-1a30265077ed#15946f63-5c55-433f-b3e7-1eeb43e6c4eehttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/a0251e42-6d99-421d-8901-1a30265077ed#15946f63-5c55-433f-b3e7-1eeb43e6c4eeJo0815http://social.msdn.microsoft.com/Profile/en-US/?user=Jo0815Printing on NOVELL iPRINT PORT always fails...<p style="font-family:Verdana,Geneva,Arial,Sans-serif"><font size=3><span> <p>I still can't get the print on a Novell iPrint Port and I assume it must be the PrintQueue-Name <span><span class=txt4 id="_ctl0_MainContent__ctl0_PostForm_ReplyBody">of this shared printer (&quot;HPLJ4050N-OG1 on ipp://print.company-corp.com/ipp/HPLJ4050N-OG1&quot;) which causes the &quot;Wrong Parameter&quot;-Exception as the PrinterName get also passed to the </span></span><span><span class=txt4 id="_ctl0_MainContent__ctl0_PostForm_ReplyBody">GDIExporter.CGDIRenderTarget.StartDocument() and like I have already mentioned, you're not able to get a PrintQueue using this name...</span></span></p> <p><br><span><span class=txt4 id="_ctl0_MainContent__ctl0_PostForm_ReplyBody"></span></span></p> <p><span><span class=txt4 id="_ctl0_MainContent__ctl0_PostForm_ReplyBody">Is this a bug?? <br></span></span></p> <p><span><span class=txt4 id="_ctl0_MainContent__ctl0_PostForm_ReplyBody"><br></span></span></p> <p><span><span class=txt4 id="_ctl0_MainContent__ctl0_PostForm_ReplyBody">I've sent this thread also to XPS-Info and no answer... anyone from MS can confirm this behaviour and maybe have a work-around for that issue??</span></span></p></span></font> <p></p>Fri, 15 Jun 2007 07:58:36 Z2007-06-15T07:58:36Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/a0251e42-6d99-421d-8901-1a30265077ed#af33d376-afff-4245-81af-fd9826c4917ehttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/a0251e42-6d99-421d-8901-1a30265077ed#af33d376-afff-4245-81af-fd9826c4917eJo0815http://social.msdn.microsoft.com/Profile/en-US/?user=Jo0815Printing on NOVELL iPRINT PORT always fails...<p><font size=4>Hi Feng Yue</font></p> <p><font size=4><br></font></p> <p><font size=4>thanx for your reply on 06-15-07  -  any NEWS to this issue???</font></p> <p><br></p> <p><font size=4>regards,</font></p> <p><font size=4>Jo<br></font></p><br> <p><br></p>Thu, 12 Jul 2007 11:52:25 Z2007-07-12T11:52:25Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/a0251e42-6d99-421d-8901-1a30265077ed#10199f84-9d2a-40e0-b94e-65d40a733e19http://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/a0251e42-6d99-421d-8901-1a30265077ed#10199f84-9d2a-40e0-b94e-65d40a733e19Daniel _MS_http://social.msdn.microsoft.com/Profile/en-US/?user=Daniel%20_MS_Printing on NOVELL iPRINT PORT always fails...<p><font face="Times New Roman">Hi Joachim,</font></p> <p align=left><font face="Times New Roman">  Thank you for your patience on this issue.  We have investigated your report and determined that there is a problem in the processing of the printer name.  The issue has been logged and will be considered for a future product release.  We understand the impact this issue may have for your development, but do not have a timeline for when this issue will be addressed at this time. </font></p> <p align=left><font face="Times New Roman"></font> </p> <p align=left><font face="Times New Roman">-Daniel (MS)</font></p> <p align=left><font face="Times New Roman">  </font></p> <p align=left><font face=Arial size=2></font> </p>Tue, 07 Aug 2007 16:03:42 Z2007-08-08T07:33:45Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/a0251e42-6d99-421d-8901-1a30265077ed#5ea4fde3-c2a4-4aaf-a206-10685552bc4fhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/a0251e42-6d99-421d-8901-1a30265077ed#5ea4fde3-c2a4-4aaf-a206-10685552bc4fJo0815http://social.msdn.microsoft.com/Profile/en-US/?user=Jo0815Printing on NOVELL iPRINT PORT always fails...<br>Hi Daniel,<br><br>thanx for your reply - at least I know now that the issue isn't on my side and it's a bug which gets fixed in future releases...<br><br>btw, is there somewhere a list with fixed bugs for the upcoming xps-release/s ??<br><br>regards,<br>Jo<br>Wed, 08 Aug 2007 07:33:34 Z2007-08-08T07:33:34Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/a0251e42-6d99-421d-8901-1a30265077ed#99e864de-eda9-4851-b140-d7ca63691e9ehttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/a0251e42-6d99-421d-8901-1a30265077ed#99e864de-eda9-4851-b140-d7ca63691e9eRei Miyasakahttp://social.msdn.microsoft.com/Profile/en-US/?user=Rei%20MiyasakaPrinting on NOVELL iPRINT PORT always fails...<p align=left>Please consider having this fixed. My project is at risk of being abandoned.</p> <p align=left> </p> <p align=left>I am using a Ricoh Aficio 3235C.</p>Thu, 15 May 2008 23:22:01 Z2008-05-15T23:22:01Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/a0251e42-6d99-421d-8901-1a30265077ed#f79e6c39-91ec-4ee6-8ba8-f20c724e2abfhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/a0251e42-6d99-421d-8901-1a30265077ed#f79e6c39-91ec-4ee6-8ba8-f20c724e2abfdebugdivahttp://social.msdn.microsoft.com/Profile/en-US/?user=debugdivaPrinting on NOVELL iPRINT PORT always fails...<p>Please fix this. </p>Thu, 18 Sep 2008 14:45:44 Z2008-09-18T14:45:44Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/a0251e42-6d99-421d-8901-1a30265077ed#30af82a5-43db-4e6d-aef3-3e8ed3da1245http://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/a0251e42-6d99-421d-8901-1a30265077ed#30af82a5-43db-4e6d-aef3-3e8ed3da1245xiasmahttp://social.msdn.microsoft.com/Profile/en-US/?user=xiasmaPrinting on NOVELL iPRINT PORT always fails...<p>Hello Daniel,<br/><br/>Did this bug ever get resolved? f it's any help, here is my stacktrace:<br/><br/>Stack=  <br/>   at MS.Internal.Printing.Configuration.PTProvider.GetPrintCapabilities(MemoryStream printTicket)<br/>   at System.Printing.PrintTicketManager.GetPrintCapabilitiesAsXml(PrintTicket printTicket)<br/>   at System.Printing.PrintTicketManager.GetPrintCapabilities(PrintTicket printTicket)<br/>   at System.Printing.PrintQueue.GetPrintCapabilities(PrintTicket printTicket)<br/>   at System.Windows.Controls.PrintDialog.UpdatePrintableAreaSime()<br/>   at System.Windows.Controls.PrintDialog.get_PrintableAreaWidth()<br/>   at Xiasma.WPF.Application.EvageneMainWindow.printPreview()<br/>   at Xiasma.WPF.Application.EvageneMainWindow.printPreviewMenuItem_Activate(Object sender, RoutedEventArgs e)<br/>   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)<br/>   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)<br/>   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)<br/>   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)<br/>   at Divelements.SandRibbon.RibbonControl.OnActivate(ActivateEventArgs e)<br/>   at Divelements.SandRibbon.MenuItem.OnActivate(ActivateEventArgs e)<br/>   at Divelements.SandRibbon.MenuItem.OnMouseLeftButtonUp(MouseButtonEventArgs e)<br/>   at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)<br/>   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)<br/>   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)<br/>   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)<br/>   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)<br/>   at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)<br/>   at System.Windows.UIElement.CrackMouseButtonEventAndReRaiseEvent(DependencyObject sender, MouseButtonEventArgs e)<br/>   at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)<br/>   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)<br/>   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)<br/>   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)<br/>   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)<br/>   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)<br/>   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)<br/>   at System.Windows.Input.InputManager.ProcessStagingArea()<br/>   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)<br/>   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)<br/>   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)<br/>   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean&amp; handled)<br/>   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean&amp; handled)<br/>   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean&amp; handled)<br/>   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)<br/>   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)<br/>   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)</p> <p> <br/>Source=ReachFramework</p> <p> <br/>TargetSite=System.IO.MemoryStream GetPrintCapabilities(System.IO.MemoryStream)</p> <p> <br/>Message=PrintTicket provider failed to retrieve PrintCapabilities. Win32 error: -2147467259</p> <p> <br/>InnerException=</p> <p> <br/>Data=System.Collections.ListDictionaryInternal</p> <p><br/><br/>In .net 3.5 sp1</p>Wed, 03 Jun 2009 15:03:13 Z2009-06-03T15:03:43Z