Invalid Printer Specified Error

I have an application that allows the user to select the target printer from the list of available printers on the system.
The following code generates the list of printers from which they select:
Dim PrinterList As New List(Of String)
        Dim PrintServer = New LocalPrintServer
        Dim PrintQueues = PrintServer.GetPrintQueues(New EnumeratedPrintQueueTypes() {EnumeratedPrintQueueTypes.Connections, EnumeratedPrintQueueTypes.Local})
        For Each p In PrintQueues
            PrinterList.Add(p.FullName)
        Next
The selected value is saved. When I go to print, I use the following code to select the printer:
ClientInstructions.PrintOptions.PrinterName = My.Application.PrinterSettings.ActiveLetterheadPrinter
Edited by: Don Williams on Aug 10, 2010 7:08 AM

This works 90% of the time. I occasionally get the following error:
Error generated by: Print Client Instructions - Print Record Copy
Error Message:  Invalid printer specified.
temp_63b3d1f8-dedf-4eee-a119-0d301e2a98fa {34670353-397C-4316-B1EC-206D545CB318}.rpt
HelpLink:
Source: Analysis Server
Target (Method): Void ModifyPrinterName(System.String)
Stack Trace:    at CrystalDecisions.ReportAppServer.Controllers.PrintOutputControllerClass.ModifyPrinterName(String newVal)
   at CrystalDecisions.CrystalReports.Engine.PrintOptions.set_PrinterName(String value)
   at Workflow_WPF.ReportPrinting.PrintClientInstructions(RecordEntry ClientInstruction, Boolean ClientCopy, Boolean RecordCopy, Boolean Envelope, objVisitData WorkingData) in D:\TomGarg\Documents\Visual Studio 2008\Projects\WMS WPF\WorkflowClientApp\Modules\ReportPrinting.vb:line 1037
Printer: hp OfficeJet 8500 Premier (redirected 2)
When I use other redirectred printers, it works fine.
Any idea what I am doing wrong? Any thoughs are greatly appreciated.

Similar Messages

  • Invalid printer name error (-41002)

    While I use 'Print Report.vi with new HP Deskjet 5443 printer (connected to the computer by USB and configured as a deafault) I get Invalid printer name error (-41002). 
    The application is working properly with other printers.
    The "HP Deskjet 5400 Series" name appears in the printers list that was found by "Get Printers list.vi".
    The printer is printing properly with Word, Excel and other applications.
    I am working with Labview v8.00.

    Hi Alex,
    I have found a corrective action request in our R&D database that addresses this very error occurring, with HP-5940(USB) printers. I plan to add your feedback that it is happening for you as well with the HP 5443.
    Have you tried going to the printers entry in the control panel, getting the printer name there, and then entering that as a string constant into Print Report.vi ? Also, you can try leaving the input terminal empty and it should use the default printer.
    Let me know if either of these works for you.
    -Sam F, DAQ Marketing Manager
    Learn about measuring temperature
    Learn how to take voltage measurements
    Learn how to measure current

  • "Invalid printer specified" for 32bit Windows Service in 64bit Server

    Hi All,
    I'm having some issues with crystal reports.
    My development environment:
    Visual Studio 2008, 32bit Windows XP
    Running environment:
    Windows Server 2003 Service Pack 2 64 bit
    Crystal Reports Basic Runtime for Visual Studio 2008 (x86)
    I've created two applications: one is console application and one is windows service. Both application run same codes to print crystal reports to printers and run at 32 bit. I can have multiple instance of console application running without any issues. When I run the windows service version, the first time the service works fine. But after I restarted the windows server, the crystal report throw Sysstem.Runtime.InteropServices.COMException.
    The detail of the exception is:
    System.Runtime.InteropServices.COMException (0x80000201):
    Invalid printer specified.
       at CrystalDecisions.ReportAppServer.Controllers.PrintOutputControllerClass.ModifyPrinterName(String newVal)
       at CrystalDecisions.CrystalReports.Engine.PrintOptions.set_PrinterName(String value)
       at Company.PrintReport(ReportClass report, String printerName)
    Both console application and windows service run at 32 bits. The user runs the service is domain controller who has admin permission. And the same problem happened on an web application hosted on IIS of the same server.
    What I've done so far:
    1. Set the printer option in the report to no printer
    2. Try install the crystal report x64
    3. For the windows service build for x86.
    Please some one help me in this.
    Cheers

    That is a rather strange issue.
    Make sure you are killing the report object once you're doen with it. E.G;
    Dim report as New ReportDocument
    Protected Sub Page_load()
    End Sub
    Private Page_Unload()
    report.close()
    report.dispose()
    GC.Collect
    End Sub
    //C# (on form open):
    private void WebForm1_Init(object sender, System.EventArgs e)
        if (boReportDocument != null)
            boReportDocument.Close();
            boReportDocument.Dispose();
            GC.Collect();
    // C# on form close
    private void Page_Unload(object sender, EventArgs e)
            if (boReportDocument != null)
            { boReportDocument.Close();
                boReportDocument.Dispose();
                GC.Collect();
    If closing and disposing does not help, is htis happening on your dev computer or after you move that app to another server?

  • REP-0826: Invalid printer driver 'dflt' specified by parameter DESFORMA

    We are using Developer 6. We had .PS Reports that printed fine till yesterday. Since this morning, we are getting the following error:
    REP-0826: Invalid printer driver 'dflt' specified by parameter DESFORMAT.
    What could be wrong?

    Hi,
    restart the reports process.
    If this doesn´t help restart the whole machine including the whole operating system.
    We do relativly often have this problem that the Oracle Reports processes function a long time (over months and more) without problems and then suddenly something does not work anmymore.
    Simply restart the whole machine and in most cases everything will work again.
    regards

  • Error occurred while installing the application: Invalid device specified

    Error occurred while installing the application: Invalid <device> specified i am getting this error on windows. How to solve that.

    Hi there.
    I know this is an old post, but I fell here having this same problem for some weeks now, and i just figured my issue. Hope it help others:
    My iPhone is connecting automatically with my itunes on computer. Not really sure what type of connection or wireless sync, but the fact is that it IS connecting.
    For some weird reason it gets Flash Builder crazy and it cannot find the right device anymore. Even when I get my iPhone connected by cable, it says that it found the device, but doesn`t publish to it. The Flash Builder says that it was published, but nothing gets installed, and the debugger cannot connect.
    MY SOLUTION (for now): Turn off the phone wi-fi, so it gets out of my home network. works like a charm and I finally can test on my device again.
    Really hope this helps.

  • Error [12] invalid printer type (98)

    Hello, when i want to print a output PDF File whith adobe central output Server.
    With Adobe Output Designer 5.6, I have compiled a template with Portable document format only.
    On Adobe central control 5.6, I have a job TESTPDF with a task JFMERGE and a printer I have named PDFPrint. on the printer I have -zc:\temp\toto.pdf
    When I'm merging the data I have the error Invalid printer type (98)
    Could you help me please!

    I am getting the same problem, but putting pdf file path/name in the printer table wont work as I want/need different file names for different dat files processed by the same form, ie include PO number as part of the file name

  • Heap Error: Invalid Address specified to RtlValidateheap

    I have an OCCI program that connect to the Oracle database using Oracle\oraclient\9.2.0 and executes a query. I'm able to connect return a result set and actually display contents from the first row.
    However, as soon as I attempt to access the second row I get a heap error - - invalid address specified to RtlValidateHeap.
    I've seen other post where changing the type of run-time library under the Code Generation options of the compiler made a difference. Here, I've tried them all: /MTd, /MLd, /MDd but to no avail.
    I'm using Visual C++ 6.0 and linking in occi library oraocci9.lib.
    The line of code that's getting the error is the following:
    while ( resultSet->next () )
    no problem in getting the first row. Its the second next that dies.
    Any help would be appreciated.

    When I build the App with a RELEASE build instead of a DEBUG build this problem goes away.
    Apparently there is a bug in the oraocci9.lib regarding allocating on the Heap for DEBUG builds.
    While reading the other post on this forum I've discovered that I need the 9.2.04 version of the oraocci9.lib and oraocci9.dll that have been linked with MSVCRTD.dll, which is required to use in Debug mode for MSVC.
    It's unfortunate that this bug is not documented in the OCCI Programmer's manual that is available online. I could have saved myself a lot of time.
    Where can I find the most up-to-date patches for Oracle 9i?
    Any help would be appreciated. Thanks.
    Are these files available as standalone downloads on the Oracle web site? I haven't seen them. I don't want to download the entire database if I can avoid it. I just need the upgraded version of oraocci9.lib.

  • Invalid printer error message

    hi -- I've developed some Crystal Reports for a client. I work on my own machine, not on their network.
    When the client runs the report, they get the message "Invalid printer; the default printer will be used."
    I don't recall them having this problem previously, though of course they've never been able to access my printer. Have I inadvertently caused Crystal to remember and expect to find my printer?
    Really want to get avoid this behavior. Help?
    Thanks,
    Carol

    Hi Carol,
    When a report is designed in Crystal it will default to the printer that is set as the system default. If the report is later opened on a computer that doesn't see that same printer it will prompt with that message you saw and go back to default settings.                                                                               
    To avoid this there are a few more options. Please check them.
    First, is to set the report with "No Printer" this will make it look the same on different computers, the downside being when you print you will have to select a printer.
    The other option is to have a default printer set up that every user can see so the setting will not change, again the issue with this is that if a user wants.
    Hope this helps you!
    Regards,
    Anindita

  • Invalid Key code Error while installing crystal report server 11

    While installing crystal report server 11,i am facing an erro which says Invalid Key code Error.I had raised this issue to SAP customer support and attaching the conversation that we had.PLEASE HELP me to resolve the issue.
    MAILS--Dear Mohit,
    Thanks for the patience.
    We have received the below update from the Licensing Team.
    You received your permanent key in respect of these licenses - the key is  for Crystal Reports Server XI.
    You did not purchase these licenses for Crystal Reports Server, but purchased it for Crystal Reports and a 5-named user license for Crystal Reports was included as a special offer.  The software included was version XIR2, but you elected to use version XI instead and received key .
    You would need to enroll the licenses in maintenance if you want to upgrade them.
    In case of any queries please create a ticket via the Service Market Place.
    Regards,
    Jessy
    Customer Interaction Center
    SAP Active Global Support
    Hello Jessy,
    The customer received their permanent key in respect of these licenses - the key is  for Crystal Reports Server XI.
    They did not purchase these licenses for Crystal Reports Server, they purchased Crystal Reports and a 5-named user license for Crystal Reports was included as a special offer.  The software included was version XIR2, but they elected to use version XI instead and they received key .
    They cannot decide to upgrade now - they must enrol these licenses in maintenance if they want to upgrade them.
    Kind regards,
    Rosemary
    From: BOSAPASIA
    Sent: 29 September 2009 05:49
    To: Savage, Rosemary
    Subject: FW: Crystal Reports Server Installation Issue
    Importance: High
    HI Rose ,
    Need your assistance on the below issue.
    Customer purchased Crystal Report Server XI R2 in 2005. When he is trying to install it now, he is getting an Invalid Key code Error.
    He has provided us the Scanned copies of the Key code and the registration number.Can you please help and check if he can be provided with a Keycode.
    Regards,
    Jessy
    CIC Team Lead
    Customer Interaction Center
    Global Support Centre India
    SAP Labs India Pvt Ltd
    Hi,
    Providing you with the required details to proceed further
    Registration Number-
    Registration Email Address-taxmantra.support
    And also please find attached the scanned copy of the Registration key we got for the Crystal report server.
    Dear Mohitk,
    Thank you for your information.
    I checked with the concerned colleague and received the below update:
    Please check from where you got this key code. If from a paper, please scan it to us. Please let them track to the original paper or email.
    If you have registered the key code, please provide us the registration number or registration email address so that we will try to check for you.
    If you did not register before, as the promotion is over so the key code could not be replaced.
    I request you to kindly check the same at your end and revert with the details.
    Moreover, there are two ways for Crystal Report customer to get support.
    One is customer with bundled product such like BOE and under maintenance. These customers will have an S-user ID and password to log a case in service market place via http://service.sap.com/message
    A learning map was provided, listed on left column.
    The other is customer with only Crystal report product, the support is via SDN.
    http://service.sap.com =>Crystal Reports and Xcelsius Support=>Crystal Reports and Xcelsius Forums
    Customers can first check whether other customer has got the same issue and find the reply from our engineers.
    You may also post your own thread for support.
    Anything else I could help, please do not hesitate to contact again.
    Hi,
    I am providing you with the details required to resolve the issue related to Crystal report installation,for reference of the issue please refer the mail below.
    Please find attached the Scanned Document  containing the details as per the details required by you.
    Hope to see a quick resolution for the issue.
    Dear Mohit,
    Thank you for your e-mail.
    As discussed, I understand that youu2019ve procured Crystal Reports Server 11 in 2006. However youu2019re facing issues with key codes while reinstalling the same. We request you to kindly provide us with below details for further assistance.
    Your customer number:
    Your customer name and address:
    Purchase order number:
    Any other products purchased along with Crystal Reports Server 11
    Any S-User Id:
    Any old case ID:
    Please feel free to contact us if any further queries.
    Hi,
    I am raising this concern on behalf on Taxmantra project (Tata Consultancy Services noida).
    We have bought licensed Crystal Reports Server 11 near by 2006.We are trying to install the crystal server but while installing ,we have encountered with an error message that:-
    "The product key code you have entered is incorrect"
    We are facing the same issue in 2006,I am attaching with this email the conversations that was held in 2006 to get the correct key code.
    Please help us to resolve the issue as early as possible.
    My contact number:
    If you need any further information do let me know

    Ajit,
      By design, the product is not able to be installed under the superuser account.
    1.  Create a new user and specify a home directory for the user without a quota set.
    2.  Copy or move the installation files to a directory that the new user can read.  I suggest you move the installation files directly into the new user's home directory.
    3.  Logon as the new user (or su - newuser)
    4.  run the installation shell script using that new user's account.
    NOTE:  Ensure the system meets the requirements from the supported platforms documents.
    .Tony

  • Print Report Error

    Hi,
    When I try to print a standart landscape report, Print Report.vi gives error (error -41002 NI-Reports: Invalid printer Name)
    I can read Default printer with query avilable printers vi so the name can not be wrong. Do you have any suggestion ? The default printer is adobe pdf...
    Thanks

    Two other good alternatives that are ad-free are PDF Creator and CutePDF Writer.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Invalid Cursor Position Error on Windows XP using CachedRowSet

    Hello, I don't know if this question lies here, but I thought it would be the well suited place so please pardon me if it isn't. I am trying to access multiple pages from my database on my XP machine but I am getting an "invalid cursor position" error when trying to access the next page. I don't know how this error is coming about because it works well on a Vista machine with no errors. I don't know if it is my drivers or something that brings about the problem. I am using mysql connecter 5.1.10, JRE 1.6.0_02 and windows XP SP2
    Below is a simple code that brings the error.
    package Admin; import javax.sql.rowset.CachedRowSet; import com.sun.rowset.CachedRowSetImpl; public class test { public void table() { try { CachedRowSet crs=new CachedRowSetImpl(); crs.setUrl("jdbc:mysql://host:3306/database");         crs.setUsername("User");         crs.setPassword("password"); crs.setCommand("select * from myTable"); int[] keys = {1}; crs.setKeyColumns(keys); crs.execute(); crs.last(); if(crs.getRow()>500){ //new overLimit(); } crs.setPageSize(3); crs.execute(); while (crs.next()) { System.out.print("page one----"); System.out.println(crs.getString(1)); } while(crs.nextPage()){ System.out.println("page two---"); while (crs.next()) { System.out.println("in page two"); System.out.println(crs.getString(1)); } } } catch (Exception e) { e.printStackTrace(); } } public static void main(String []args){ new test().table(); } }

    Yes I am running the same code on both machines. The output I get on the XP machine is shown below. I modified the code I posted earlier and replaced the "page two" text with "page (then page number)" and also omitted the "in page two" text for better readability---------PAGE 0---------
    DB09140110
    DU35463010
    EX29201810
    ---------PAGE 1---------
    EX38341510
    EX40471810
    KZ280299
    ----------PAGE 2---------
    LA130299
    LC130299
    MC081009
    ----------PAGE 3---------
    RZ300502
    VA130299
    VI020209
    ----------PAGE 4---------
    YX101008
    ZE220299
    ZF231105and vista....
    ----------PAGE 0---------
    EX38341510
    EX40471810
    KZ280299
    ----------PAGE 1---------
    LA130299
    LC130299
    MC081009
    ----------PAGE 2---------
    RZ300502
    VA130299
    VI020209
    ----------PAGE 3---------
    YX101008
    ZE220299
    ZF231105

  • Adobe "Invalid annotation object" error

    We recieve a specific error message on a few PDFs. Some from documents converted from 2007 Word and others out of Outlook 2007 through the PDF print function.  While moving the mouse over certain comments the users has placed on the document in the PDF format, Acrobat 9.9.3 throws this error. We've tried to delete the bad refs and other times have just started a new document, print to PDF while starting over.  Any ideas on why this is happining, what might be causing this and what we can do to reslove this problem.  I cannot seem to duplicate the problem a few see.  Any thoughts or solutions would be greatly appreciated. Best regards, Brian

    On 3/24/2015 same problems, after Adobe Acrobat 9 pro. crashed while I added text boxes.. When I opened Adobe again, Yes to open the last file which didn't save correctly, then "Invalid Annotation Object" errors on my .pdf file of 96 pages
    - first, I had to acknowledge/click the OK button until all " invalid annotation objects" error pop-up windows are gone
    (for my file with 96 pages, i had to hit the OK button more than hundreds times - need patience)
    - then found out (later) that what I did turn out to be the same steps as following post by davidsdomingo in adobe.forums
    davidsdomingo May 28, 2009 1:39 PM (in response to (Holger_Wulf))
    Here is a technique for identifying all the pages that have invalid annotation objects on them:
    1. Document > Extract Pages ...
    •Select the checkbox for "Extract Pages As Separate Files"
    •Set the destination to a 'dedicated' folder that won't contain any other files -- that way, you can simply delete the folder when this process is done.
    •Click OK.
    2. During the extraction, click OK in all the message boxes that appear.
    3. After the extraction, look in the destination folder to see which pages are missing. Those are the pages that have invalid annotation objects.
    From this point you can try to delete the objects, or simply delete and replace the pages, or implement a different solution. Hope this helps someone.
    - after extract the 96-pages file into individual files into a dedicated folder, only 95 got extracted and page 1 was not/can not be extracted.
    - I then combined the 95 good extracted pages into a new file name .pdf
    - then inserted a good page 1 without error (from the file that was saved previous day, prior to all the changes I made on the corrupted file), re work on page 1
    - delete the bad file.
    Hope this helps someone.

  • Report will not open due to an invalid printer issue.

    Post Author: Tammy Chavez
    CA Forum: General
    I have a Crystal Report that will not open.  It gives the following error messages:
    1.The report uses and invalid printer.  The default printer will be used instead.
    2.Failed to open document.
    3.TSLV Record Not Found.
    4.The report couldnot be opened for writing. Any changes must be saved to a new file.
    Then it will not open the file at all.  Anyon have this type of issue before?

    Post Author: mario
    CA Forum: General
    Tammy Chavez: Is there another program to try to open it with?
    I don't think so, forget that. If you downloaded the file with Firefox try to do it again with Internet Explorer. I remember some time ago Mozilla having issues with some binary files. Or tell the client to zip the file before emailing it to you - if unzipping works and CR still complains about missing records then the problem is only on your machine and you should check the dlls (Google for them).

  • Invalid Color Space error after update Reader to 9.3.3

    After updating Adobe Reader to 9.3.3 I run into the Invalid Color Space error when trying to open a PDF file created with CorelDraw 12 in the format PDF/X-1A.  This format needed by a printing office to print the file. The strange thing is that Reader opens older PDF files exported from CorelDraw in thsi format normally without the error message.
    It happens only with PDF exports made after the Reader update. CorelDraw settings are as previously used.
    Exports in other formats, other than  PDF/x-1, X-1A and X-3 open normally.  How to solve this??

    any suggestions?

  • Print internal error when tring to print PPA document

    Hello experts,
        We got a problem when we tried to print out PPA document in HR system using t-code PHAP_ADMIN_PA. The system always shows the message Error when printing: Internal error. And message no: HRHAP00_DOCUMENT160.
        I have searched the forum but I have no idea how can I check and how can I do to solve this problem. Can anyone help me?
        Any help will be highly appreciated.

    Hi Joseph,
    This error is usually linked to an incorrect configuration of the printer.
    Please check the following notes for information on the type of printer supported for PDF
       685571 - Printing PDF-based forms
    Check also your ADS settings (or install it if it's not already done as it is required for PDF as well).
    The installation steps you can fbe found in ADS Configuration Guide:
    http://help.sap.com/saphelp_nw04s/helpdata/en/37/504b8cbc2848a494facfdc09a359b1/frameset.htm
    Once installed or if it's there already then please check the following:
    Execute the ADS test program "FP_TEST_00" in your system, check whether form is being displayed once you specify the
    printer name. Also, could you check in transaction SM59 the ADS status?
    In order to print an appraisal form, you need:
    1- the Adobe Document Services (ADS) installed and well configured
       on a J2EE engine in your system landscape
    2- an appropriate connection called ADS maintained in SM59
    ADS configuration guide is available on Help Portal.http://help.sap.com/nw2004s
    -> SAP NetWeaver Library -> Technology Consultant's Guide ->Cross-NetWeaver Configurations -> Adobe Document Services ->Configuration.
    Please also make sure, that ADS is used on a supported platform. You can check the Product Availability Matrix (PAM) for informationabout supported plattforms for ADS.Link: http://service.sap.com/pam
    Notes: 863872, 925741 and 736902  Adobe Credentials
    Hope the above will help you solve this error
    Thanks
    Sarah

Maybe you are looking for