Change Print Job Name

I have a VB.NET Windows program that load a Report file with rpt.Load(ReporFile) and after send to printer with rpt.PrintToPrinter(NumberofCopy, False, 0, 0).  I want to change the print job title. I see another  post: How to set  the CR print job name that displayed in Printer job queue? with this solution:
CrystalDecisions.ReportAppServer.Controllers.PrintReportOptions prnOpts;
prnOpts.JobTitle = "hello world";
but I don't know how to get PrintReportOptions from my ReportClientdocument. The only I know it's rdc.PrintOutputController.GetPrintOptions but this retunrn a PrintOptions object that don't have JobTitle property.
Can someone help me ?
thanks Filippo

You will need to create this object and set its properties.
The majority of properties are not ones that you will read out of the report's printoptions anyways (ie number of copies, Jobtitle, page ranges etc)
so simply use something like:
PrintReportOptions prOpts = new PrintReportOptions();
prOpts.JobTitle = "Hello World";
prOpts.AddPrinterPageRange(1,1);
rcd.PrintOutputController.PrintReport(prOpts);

Similar Messages

  • JS: How to make a script to print one page at a time and set print job name?

    What I want is to print one page at a time to the printer.
    Document.print(false, app.printerPresets.item(0)) almost get me there. But how do I get it to print page by page? There seems to be no way to set which page to print to printerPreset.
    Also, is it possible to change print job name from the default of using document name?

    >Is there any solution to this other than saving the document to a different name before each page print?
    Here is an altered and abriged version of the script that I use. I use print preset called "PS to PDF" in it, so you should change it to your own.
    if(app.documents.length == 0){
       alert("Please open a document and try again.");
       exit();
    var myFolder = Folder ("~/Desktop");
    var myDoc = app.activeDocument;
    var myNoExtention = getFileNameOnly (myDoc.name);
    var myPrintPrefs = myDoc.printPreferences;
    if (app.printerPresets.item("PS to PDF") == null) {
       alert("Preset \"PS to PDF\" has not been installed");
       exit();
    else {
       myPrintPrefs.activePrinterPreset = app.printerPresets.item("PS to PDF"); 
    myDoc.sections.everyItem().sectionPrefix = "";
    myDoc.sections.everyItem().includeSectionPrefix = false;
       var stop = myDoc.pages.length;
       var w = new Window ( 'window', 'Printing PS-files' );
       var pb = w.add ('progressbar', [12, 12, 300, 24], 0, stop);
       var txt = w.add('statictext');
       txt.bounds = [0, 0, 200, 20];
       txt.alignment = "left";
       w.show()
    for(var myCounter = 0; myCounter < myDoc.pages.length; myCounter++){
       curPage = myCounter + 1;
       pb.value = curPage;
       var myText = String("Page " + curPage + " of " + myDoc.pages.length);
       txt.text = myText;       
       var myPageName = myDoc.pages.item(myCounter).name;
       var cornumber = pagenum(myPageName);
       var myFilePath = myFolder + "/" + myNoExtention + "_" + cornumber + ".ps";
       var myFile = new File(myFilePath);
       myPrintPrefs.pageRange = myPageName;
       myPrintPrefs.printFile = myFile;
       myDoc.print(false);
    w.hide();
    alert("Done!");
    function pagenum(myNumber){
       if (myNumber >= 1 && myNumber <= 9)
       x =  "0" + "0" + myNumber;
       else if (myNumber >= 10 && myNumber <= 99)
       x = "0" + myNumber;
       else if (myNumber >= 100 && myNumber <= 999)
       x = myNumber;
    return x
    function getFileNameOnly (myFileName) {
       var myString = "";
       var myResult = myFileName.lastIndexOf(".");
       if (myResult == -1) {
          myString = myFileName;
       else {
          myString = myFileName.substr(0, myResult);
       return myString;
    Kasyan

  • Printer Job Name

    Hi
    I am trying to change a pcl file so that the printer job name is altered, i can see from the .ics driver file that you can set this to the mdf name and static text only. Has anybody ever had to make a change like this?
    I have the steps in place but the result is not what i expected, i use a perl script and a copy function to send the pcl file to the printer with the new printer job name included.
    The thinking behind this is so that I can see my text on the print spooler and on the physical device, but it is turning out to be a night mare!
    Any help would be appreciated.
    Thanks

    The problem i can see now is that I am trying to replicate the step when the .tmp file which is also the same as the PCL file is processed from the collector directory.
    When it is, it uses the value from the ics file \E%-12345X@PJL\x20RDYMSG\x20DISPLAY="default" the default is the mdf name which is static.
    I use a Perl script and have a copy function to move the changed PCL file to the Printer spool queue, but the job name is now 'Remote DownLevel Document' in stead of the value in the PCL file.
    Any body any idea as how to fix this?
    Thanks

  • Print Job Names

    We run a Fiery RIP, printing from 10.3 job names which have spaces appear in full on the RIP, however printing from 10.4 job names are truncated up to the first occurance of a space in the name.
    Can anyone else confirm this behaviour? Does anyone know if this is a change due to a later CUPS version (1.3 vs. 1.47), or possibly an Apple print system problem not escaping space when interfacing to CUPS?
    This can be incovinient as most of our print job names are prefixed by a job number followed by a space then a human readable job description. When only the job number shows up (when printing from 10.4), it's hard to corrolate it to a particular job on the RIP queues.

    For anyone who's interested. I have tracked the problem down to the cupsd binary.
    Replacing the 10.4.6 supplied binary under /usr/sbin/cupsd with a previous version from a 10.3.9 install fixed the job name problem.
    A suspicious line in the cupsd error log showed this under 10.4.6:
    D [07/Apr/206:11:57:12 +1200] StartJob: option = "com.apple.print.JobInfo.PMJobName=test\file"
    And the job name would appear on the RIP queues as "test"
    where as under 10.3.9 where the Job name works properly the corresponding line is:
    D [07/Apr/2006:11:47:40 +1200] StartJob: option = "com.apple.print.JobInfo.PMJobName='test file'"
    And the job name would appear in full on the RIP queues as "test file"
    So although this is unconfirmed it looks like different methods of escaping spaces are handled differently. The single quotes around the job name ("test file" in this example) work properly, whereas the '/' method appears to result in the truncation of the Job Name to just "test" when it appears in the RIP queues.
    However replacing binaries like this is far from ideal, especially replacing newer cupsd version with an older version, it may (more than likely) break other stuff.
    Layton
      Mac OS X (10.4.6)  
      Mac OS X (10.4.6)  

  • How to set  the CR print job name that displayed in Printer job queue?

    As following image shows, when I press the Print button in Crystal Report Preview GUI,
    a print job is sent to Windows Printer Spool.
    [Windows Printer queue dialog snapshot|http://www.box.net/shared/96vq4qa2mp]
    The "Document Name" in the dialog is like "Crystal Reports - temp_214d9d11-a73f-4872-81f6-b8a63bf0a6b9.rpt".
    I want to know which property of Crystal Reports can be used to set the print job name to a more meaningful one.
    Edited by: Xiaobing Sun on Apr 2, 2009 5:08 AM

    The solution in this thread is for VS .NET as this is the forum for CR in .NET.
    With Foxpro, I suspect you want to create a new thread in the SAP Crystal Reports - Legacy SDKs forum.
    Make sure you specify the exact version of CR used.
    - Ludek

  • How to set Internet Explorer to return full URL for the Print Job Name

    Hello all,
    On printing a web page from IE 6, 7, and 8 using javascript window.print command, the name of the printjob is truncated only to the first 63 characters. Unlike IE 9, it returns the full URL, or at least longer.
    Does anyone know the way to set those IE versions to return full or wider URL string?

    Sorry for lack of detail in my first post. I don't believe this has anything to do with javascript. The javascript command window.print() simply gives out command to the browser to print the web content.
    The situation is that, I open a webpage, for example,
    http://www.google.com.my/#sclient=psy&hl=en&source=hp&q=some+long+parameter+value+in+the+query+string&pbx=1&oq=some+long+parameter+value+in+the+query+string
    Then I right-click on the page and choose 'Print...' to print the page to a printer. Therefore, Windows spooler system will queue the print job with all the metadata about the doc that is printing. 1 of this metadata is document/printjob name, which are
    set to the name of the doc. In case of a web page from IE, this field will be populated with the URL of the page.
    I notice that, when I do printing from IE 9 of the above URL, the field document/printjob name is the whole URL string. But while in IE 8 and below, only the first 63 characters of the URL are populated into the field. (I.e:
    http://www.google.com.my/#sclient=psy&hl=en&source=hp&q=some+l)
    I believe this field is set by the application that sent out the printing command to the spooler. In this case, it's IE.
    So, my question is, is there any reg settings for IE 8 and below to force them to put in the whole URL in that field instead of truncates them to only 63 characters?

  • Find the network printer print jobs names using  the javax.print

    hi friend ,
    i have a problem to find the network printer printjobs names using javax.prrint pacakge. And give the best sites for example of javax.print.

    Iterate the array from:
    PrintService[] services = PrintServiceLookup.lookupPrintServices( null, null );

  • How to include the URL in the name of the print job when printing from FF

    We log all print activity in our company and it would be helpful to be able to identify print jobs from Firefox, however as only a web page's <TITLE> content is used as the print job name, I was wondering if there was a way to either use the URL as the print job name, or even prefix the print job name as "Mozilla Firefox" to identify jobs from this application?

    Thank you for your reply but that's the print job content, i.e. page header / footer will have the URL typed into it. I'm after the name of the print job, i.e. as it appears in the print queue. For that I cannot find an option.
    I'm wondering whether a plug-in could do this, replace the normal print function with an identical one that uses the URL as the print job name.

  • How to edit the job name in SM37

    Hi All,
    I have job in SM37 with the mane ZBI_PROCESSING and the Job in Release status. Now I want to change the Job Name to Z_PROCESSING_SS. Please let me know how to edit the Job Name.
    Regards,
    Ravi

    Hi Ravi,
    In SM37 when you have the list of all jobs, right-clic on the job you want to rename, copy, enter the new name.
    Then you can delete the first job. The copied one will then be executed.
    Regards,
    Fred

  • Query Extract (rscrm_bapi): Influence Job Name

    Hi,
    I'm using txn rscrm_bapi to extract data to a table.  The job name that is used when i run the extract process is always the same.  It's a fixed alpha numeric string.  Is there a way to change the job name?  I want it to have a descriptive name like RSCRM_BAPI_EXTRACT_DATA.
    Thanks,
    Audrey

    Hi Audrey,
    I had the same problem ... don't think it's possible to modifiy the Job Name. Let me know if you will find a soluton.
    Bye
    GFV

  • Process chain - default job name modification

    Hi Guys,
    When we run a process chain which has RA jobs,,,,,the corresponding job names in sm37 will be with name "BI_PROCESS_REPA_BP" .....
            We use the job name in sm37 to spool the file thru abap program....so if 3 RA jobs are run thru process chain,,,,,all 3 jobs of different RA jobs will be with same name in SM37.
    Can we change this job name to something else...
    Please advice.
    Thanks!!!!!!!!

    Hi,
    Which job u need to modify the nems of the process chains?
    All the names which starts with BI_*  are the standard jobs running in BI system...if the same runs thru process chain i guess we cannot change it...
    If it is a manual job running in SM37 then we can change it by copying the job name so tht it comes into scheduling then we can release the same according to our requirement..
    rgds,

  • Printer Job Title

    I am using the Crystal Report version who is integrated with MS Vs2008 Prof.
    Is  there any way to specify print job name when printing report? I'm failing to find it.
    In print spooler all jobs from Crystal are appearing as "document" and people can't recognize different reports.
    My Vb.Net code to print the report (crSupplerList) is, 
    Dim crRpt As CrystalDecisions.CrystalReports.Engine.ReportClass = crSupplerList
    crRpt.SetDataSource(myDataSet)
    crRpt.PrintOptions.PrinterName = "\\My-pc\HP LaserJet 6L"
    crRpt.PrintToPrinter(1, False, 0, 0)
    Please correct my if this isn't the best way.
    Thanks in advance

    I tested this with CR 2008 (did not have Crystal Reports Basic for Visual Studio 2008 image running), but in that version, the job is shown as Crystal Reports - <name of repost as per Summary title info>.
    I'll try this in CR 105 tomorrow, but in the meantime, I'd like to ensure that you have SP 1:
    https://smpdl.sap-ag.de/~sapidp/012002523100009351512008E/crbasic2008sp1.exe
    Let me know if SP 1 helped.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • Office jet Pro 8600, Multiple Printers on same nenwork need to change printer name ID

    How do I Change the default Printer ID /name  on a Office Jet Pro 8600 AI1  using OS x 10.8 on a home network . To prevent other computers from accessing multiple  8600's set as delivered, on the same  network?

    Hi @JimAckroyd 
    It took me sometime, but I think I found exactly what you are looking for! Please take a look at the instructions already written out by ShlomiL; Re: Changing the name of a printer in my LAN.
    I hope this resolves your inquiry.
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • How to change the print queue name with Lexmark printer?

    Is it at all possible to change the print queue name from Lexmark_3500_4500_Series, to something shorter? I try to link printouts from an old Sun Unix system, thru my iMac to the Lexmark X4580 multifunction printer. However, the Sun/Unix will not accept this long print queue name...

    Apologies, I misread. The only way I know of changing the Print Queue Name is by readding the printer.
     > System Preferences > Print & Scan > Add
    Choose your printer, make sure you change the print queue name to something different (equates to the Printer Name).
    When you need to print, simply select the printer you just added.
    Once your happy it works, delete the old printer from the list in Print & Scan.
    Morgan

  • Change fonts on a print job

    Trying a mass mailing for the first time. how do I change the font on the envelopes? I am printing from CONTACTS, utilizing a group. I'm printing to the entire group. I would like to change the font.

    My suggestion is that you go back into CONTACTS and create a NEW contact called "The Doe Family" and select that temporarily as your "card" . Do your print job and then when finished deselect it as your card.

Maybe you are looking for