Error Calling Startdoc
for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Expand Search Submit Close Search Login Join Today Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > Questions > StartDoc Printer Calll error Want to Advertise Here? Solved StartDoc Printer Calll error Posted on 2011-12-23 MS Excel VB Script 1 Verified Solution 4 Comments 1,652 Views Last Modified: 2012-05-12 Hello experts-- There is an error that I do not understand what it relates to and I remember getting this error early on and I forgot what I did to make it go away. However, a colleague has been trying to run my macro and when she tries to use the populate macro to copy a bunch of sheets to a template, she gets an error: Microsoft Visual Basic for Applications System Error ....HEX (-2147021893) - A StartDocPrinter Call was not issued, I do not know what this is. All the macro does is open another '.xlsm' and then copies over about 25 '.xls' onto it. I can run it without an error, but when she tries she gets this error. Thanks for your help! wander 0 Question by:wander4heat19 Facebook Twitter LinkedIn Google LVL 41 Best Solution bydlmille Here is Microsoft's solution to this problem: http://support.microsoft.com/kb/121074 I would check to see what her default printer is and whether she can print to it. Also, if the print shares she's Go to Solution 2 Comments LVL 41 Overall: Level 41 MS Excel 41 VB Script 11 Message Accepted Solution by:dlmille2011-12-23 Here is Microsoft's solution to this problem: http://support.microsoft.com/kb/121074 I would check to see what her default printer is and whether she can print to it. Also, if the print shares she's using all work - or whether one doesn't work due to security issues/password problems. Cheers, Dave 0 LVL 41 Overall: Level 41 MS Excel 41 VB Script 11 Message Expert Comment by:dlmille2011-12-23 I checked other related posts. Make sure - e.g., from notepad or something, that she can print to network printers. Find out what LPT1 is pointing to, if anything. And, having detected this as a problem, correct the security on the printer (why would printers need password protection?) and eliminate it, or correct the password on her machine in making the connection. Hope this helps! Dave 0 Write Comment First Name Ple
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 About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join 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 Windows 7, runs well in Windows XP up https://www.experts-exchange.com/questions/27508068/StartDoc-Printer-Calll-error.html 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 return false; } // Get a device context for the printer. hdcPrint http://stackoverflow.com/questions/20276193/my-startdoc-fails-in-windows-7-runs-well-in-windows-xp = 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 false; } if (EndDoc(hdcPrint) <= 0) { // end the print job (actually starts printing) // handle error return false; } ClosePrinter(printerHandle); DeleteDC(hdcPrint); delete[] lpcPrinterNa
ElementsAdobe Dreamweaver Adobe MuseAdobe Animate CCAdobe Premiere ProAdobe After EffectsAdobe IllustratorAdobe InDesignView all communitiesExplore Menu beginsMeet the expertsLearn our productsConnect with your peersError: You don't have JavaScript enabled. This tool uses JavaScript and much of it will not work correctly without it enabled. Please turn JavaScript back on and reload this page. Please enter a title. You https://forums.adobe.com/thread/732472 can not post a blank message. Please type your message and try again. More discussions in Acrobat Windows (read-only) All CommunitiesAcrobatAcrobat Windows (read-only) 18 Replies Latest reply on Oct 13, 2010 6:15 AM by gator2005 PDF error: a start https://www.datacard.com/id-software-support-and-upgrades/id-works-enterprise-software doc printer call was issued. PDF on Ne11. gator2005 Oct 1, 2010 9:43 AM adobe version. 6.0 prowhen converting any doc to PDF it comes up with error. you file could not be printed due to an error error calling on Adobe PDF on Ne11.-i tried to resinstall the app no luck. -tried in Word, excel, Autocad noluck.- i have several other machines and it works fine.Please help!Thanks,Mike I have the same question Show 0 Likes(0) 4661Views Tags: none (add) This content has been marked as final. Show 18 replies 1. Re: PDF error: a start doc printer call was issued. PDF on Ne11. Bill@VT Oct 1, 2010 2:24 PM (in response to gator2005) What OS and where error calling startdoc are you trying to send the PDF when done? Like Show 0 Likes(0) Actions 2. Re: PDF error: a start doc printer call was issued. PDF on Ne11. gator2005 Oct 1, 2010 2:31 PM (in response to Bill@VT) Xp . when changing excel doc or converting any doc to PDF on a network. it gives the error. Just saving to the desktop. Like Show 0 Likes(0) Actions 3. Re: PDF error: a start doc printer call was issued. PDF on Ne11. Bojohnso Oct 1, 2010 2:50 PM (in response to gator2005) Just to confirm, are you trying to print the file that is saved on a network? Like Show 0 Likes(0) Actions 4. Re: PDF error: a start doc printer call was issued. PDF on Ne11. gator2005 Oct 1, 2010 2:55 PM (in response to Bojohnso) the PDF printer in on the network. Other machines work fine.create a new doc on the local machine.Sent from my iPhone Like Show 0 Likes(0) Actions 5. Re: PDF error: a start doc printer call was issued. PDF on Ne11. Bojohnso Oct 1, 2010 3:12 PM (in response to gator2005) Instead of printing a document directly to a printer, you can print it to a printer file and then send that file to a printer Like Show 0 Likes(0) Actions 6. Re: PDF error: a start doc printer call was issued. PDF on Ne11. gator2005 Oct
Card Issuance Systems Desktop Card Printers Desktop Embossers Passport Systems Software Accessories Global Services Markets Corporate Education Financial Government Healthcare Loyalty & Membership Retail Telecommunications Transit Case Studies Knowledge Center Learn From the Experts Case Studies White Papers Interactive Tools Videos How to Buy Contact Sales Design a Desktop ID Solution Support & Drivers Drivers & Downloads Desktop Printer Error Code Lookup Security Advisory Updates Education & Training Global Services Product Registration Software Licensing Product Installation Report Contact Customer Support Contact Education & Training Card Validation Program Supplies Datacard Certified Supplies Desktop ID Financial Instant Issuance Central Issuance Passport Solutions Datacard® ID Works® Identification Software Support Drivers & Downloads Documentation Videos Contact Technical Support Please contact the sales and service provider in your geographic area to help you with your technical questions. Click here to locate your Datacard sales and service representative. For immediate assistance Datacard has Customer Support Centers that are available to serve customers in the Americas, EMEA, and Asia Pacific regions. We will be able to provide you with the authorized service provider nearest you. Americas, CardWizard Support +1 800.568.4598 or +1 952.988.1512 Americas +1 800.328.3996 or +1 952.988.2316 EMEA (Europe, Middle East, Africa) +44 1489555627 Asia Pacific +852 2821 0126 Software Upgrades(10) Language Packs(9) Evaluation Software(1) Software Upgrades items ID Works v5.1 Plug-in for the SD/CD or CE Printers Updated 3/12/2014 Download and install this plug-in if you are using a Datacard SD/CD or CE printer with ID Works v5.1 identification software. The plug-in is required to support card production features such as K panel printing, topcoat application, and magnetic stripe encoding. The plug-in requires the following to install and function: ID Works v5.1 Service Pack 1 XPS Card Printer Driver v4.1 or later Windows XP Service Pack 3 NOTE: This plug-in version replaces the plug-in included with the v5.0 XPS Card Printer driver installation. The plug-in included with the v5.0 driver installation does not support ID Works v5.1 software.
8.4 Mb .zip Datacard® DSLR-2 Camera Plug in for ID Works, IDCentre, WebID Updated 9/14/2015 If you are using ID Works, IDCentr