Failed To Print Document Error From Startdoc
Contents |
be down. Please try the request again. Your cache administrator is webmaster. Generated Sat, 15 Oct 2016 14:34:13 GMT by s_ac15 (squid/3.5.20)
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site document failed to print error About Us Learn more about Stack Overflow the company Business Learn more about
Test Page Failed To Print Windows 7 Network Printer
hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join
This Document Failed To Print Windows 7 Network Printer
the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up My StartDoc() fails in http://answers.microsoft.com/en-us/ie/forum/ie9-windows_7/when-trying-to-print-a-webpage-getting-error/0bd3f176-cf68-411c-b246-8983b90b40c0 Windows 7, runs well in Windows XP up vote 1 down vote favorite My code is in 32 bit Visual C++ 2010. It is the usual print-using-default-printer one, which goes like this (this is the exact code minus error handlers): // Get the length of the printer name. GetDefaultPrinter(NULL, &size); lpcPrinterName = new char[size]; // Get the printer name. if(!GetDefaultPrinter(lpcPrinterName, &size)) { // handle error http://stackoverflow.com/questions/20276193/my-startdoc-fails-in-windows-7-runs-well-in-windows-xp return false; } // Get a device context for the printer. hdcPrint = CreateDC(NULL, lpcPrinterName, NULL, NULL); // get printer parameters iPrinterDPIX = GetDeviceCaps(hdcPrint, LOGPIXELSX); // x dpi iPrinterDPIY = GetDeviceCaps(hdcPrint, LOGPIXELSY); // y dpi iPrinterBPP = GetDeviceCaps(hdcPrint, BITSPIXEL); // bit per pixel iPrinterHRes = GetDeviceCaps(hdcPrint, HORZRES); // x printable area in pixels. 0 maps to 0 here iPrinterVRes = GetDeviceCaps(hdcPrint, VERTRES); // y printable area in pixels. 0 maps to 0 here if (!OpenPrinter(lpcPrinterName, &printerHandle, NULL)) { // handle error return false; } // initialize docInfo ZeroMemory(&docInfo, sizeof(docInfo)); docInfo.cbSize = sizeof(docInfo); docInfo.lpszDocName = lpcstrDocName; // ---> this is where it fails when run standalone on Windows 7, return value == -1 iPrintJobID = StartDoc(hdcPrint, &docInfo); // this starts a print job if (iPrintJobID <= 0) { // handle error return false; } if (StartPage(hdcPrint) <= 0) { // this starts a new page // handle error return false; } { // enclose in an inner scope to get graphics destroyed before deleting dc Gdiplus::Graphics graphics(hdcPrint, printerHandle); if (graphics.DrawImage(&bmp,x,y) != Ok) // handle error return false; } } if (EndPage(hdcPrint) <= 0) { // ends the page (eject paper) // handle error return fa
RepublicDenmarkEcuadorEgyptEstoniaFinlandFranceGermanyGreeceGuatemalaHondurasHong KongHungaryIndiaIndonesiaIraqIrelandIsraelItalyJapanJordanKazakhstanKoreaKuwaitLaosLatviaLebanonLithuaniaMalaysiaMaldivesMaltaMexicoMoldovaNepalNetherlandsNew ZealandNicaraguaNorwayOmanPakistanPanamaParaguayPeruPhilippinesPolandPortugalPuerto RicoQatarRomaniaRussiaSaudi ArabiaSerbia & MontenegroSingaporeSlovakiaSloveniaSouth AfricaSpainSri LankaSwedenSwitzerland -- FrenchSwitzerland -- GermanTaiwanThailandTurkeyUkraineUnited Arab EmiratesUnited KingdomUnited StatesUruguayVenezuelaVietnamYemen Communities Social Applications Oracle http://bugs.java.com/bugdatabase/view_bug.do?bug_id=4078990 Mix Oracle Blogs Oracle Wiki Oracle http://streamshare.streamserve.com/Forum/Topic/?topicID=8423 on Facebook Oracle on Twitter Networks Oracle ACEs Oracle PartnerNetwork Oracle Technology Network Knowledge Base Oracle User Groups Oracle Discussion Forums Support My Oracle Support Community I am failed to a... Java Developer Database Admins and Developers System Admins and Developers Architect C-Level Executives Chief Financial Officer (CFO) Chief Information Officer (CIO) Other Roles Analyst Investor Job Seeker Partner PeopleSoft Customer Siebel Customer Sun Customer failed to print Student Midsize Company I want to... Support Create or Update Service Request Search Support Knowledge Database Download Patches Education Find Oracle University Training Choose an Oracle Certification Path Partner Find a Partner Solution Access Software and Technical Support Attend a Partner-Only Event Attend Training Download Logos Manage Solutions Catalog Other Tasks Purchase Oracle Products Online Browse Oracle Documentation Search Oracle Documentation Check Oracle Earnings Check Oracle Price Lists Download Oracle Software Find an Oracle ACE View Oracle Benchmarks Filters: All Bugs.java.com Blogs Corporate Site Discussion Forums Documentation Training PartnerNetwork Technology Network Products and Services Products Oracle Database Enterprise Manager Oracle Fusion Midd
Applications Data & Design Connectivity & Post Processing Question (1500) WIN: StartDoc failed,\\SERVER\PRINTER Enter a new topic Subscribe by RSS Mikael Bondeson 0 likes 759 views Version 5.6 Build 352 (32 bit). When printing to an Intermec Label printer we sometimes get the error message "(1500) WIN: StartDoc failed,\\SERVER\PRINTER", but not always! This printer is used for one Streamserve document (Page-OUT) only. When the error message appears in the log file we loose the print-out. We have made some tests where we have re-used the same stream file several times. When we do this, we sometimes get all the print-outs (with no error message in the log) and sometimes we loose a print-out (with error message). The printer is installed on the printer server (which is not the same as the Streamserve server). We have also tested this on a Streamserve version 5.5 and the error is there as well. We have several label printers (same model) configured in the same way, where we print other labels and they don't get this message. We have tried to print the same label to one of the other printers and sometimes get the same error message as before. The output connector uses the Win2.drs driver We have checked that the windows printer driver that is installed on the Streamserve server is the same as on the printer server. Anyone having any ideas? Friday 13 March, 2015 Tags: intermec, persuasion, startdoc Best Answer Mikael Bondeson 0 likes "Start printing after last page is spooled" seems to have made it. Thx Stefan for your input. Monday 16 March, 2015 Stefan Eklund 0 likes Hi Mikael, Can you check your printer setting (windows/control panel) - properties - Advanced, if you use the printer spool or if you "print directly to printer"? Using spool is recomended. /Stefan Friday 13 March, 2015 Mikael Bondeson 0 likes It is set to "Spool print documents... - Start printing immediately". Would you suggest to change it to "Start printing after last page is spooled"? Friday 13 March, 2015 Stefan Eklund 0 likes You can try, but I was more conserned that the option "Print directly to printer" was ticked. I have had strange behaviour with that one. Set the loglevel to debug and try to recreate the problem and see if the log says any more. /Stefan Friday 13 March, 2015 Mikael Bondeson 0 likes "Start printing after last page is spooled" seems to have made it. Thx Stefan for your i