How to keep file name in print queue when printing crystal report

We are using VB .Net 2003 + Crystal Report 2008 SP2 up to Fix Pack 2.6
When the VB program spools crystal report files to print queue, the print queue only shows "Crystal Report" for each document.  How to keep the original file name?  In the past when we were using Crystal Report 11, the original file name can be shown in the print queue.
Please help because it's so important for operation to see which report is failed in printing when reports are printed in batch.
Thanks

Hello,
Set the PrintOption.JobTitle value for the print job. Here's C# code on how to:
               System.Drawing.Printing.PrintDocument pDoc = new System.Drawing.Printing.PrintDocument();
            CrystalDecisions.ReportAppServer.Controllers.PrintReportOptions rasPROpts = new CrystalDecisions.ReportAppServer.Controllers.PrintReportOptionsClass();
            CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions newOpts = new PrintOptionsClass();
               pDoc.PrinterSettings.PrinterName = cboCurrentPrinters.Text;          
               rasPROpts.PrinterName = cboCurrentPrinters.Text;               
               rasPROpts.PaperSize = (CrPaperSizeEnum)
                    pDoc.PrinterSettings.PaperSizes[cboCurrentPaperSizes.SelectedIndex].Kind;
            // this sets the name of the print job
            rasPROpts.JobTitle = "MYPrintJob";
               rptClientDoc.PrintOutputController.PrintReport(rasPROpts);
               MessageBox.Show("Printing report.", "RAS", MessageBoxButtons.OK,MessageBoxIcon.Information );
Thank you
Don

Similar Messages

  • "The process cannot access the file ..." occurs when export crystal report

    We are using a web application developed in VS 2005, .NET 2.0 with the bundled Crystal Reports version 10.2.3600.0 running on a Windows 2003 Standard server with 4GB Ram and Dual CPU's. Periodically we are still receiving the following error in our production environment:
    InnerException:
    The process cannot access the file because it is being used by another process.
       at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
       at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
       at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportOptions options)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportFormatType formatType)
    This is occuring at the point on the code where the report is being exported to a PDF. Exporting the report to Excel does not appear to cause the error.
                    Stream outStream = report.ExportToStream(ExportFormatType.PortableDocFormat);
                    byte[] charStream = new byte[outStream.Length];
                    outStream.Read(charStream, 0, (int)outStream.Length);
                    if ((charStream != null) && (charStream.Length > 0))
                        HttpContext.Current.Response.ContentType = "application/pdf";
                        HttpContext.Current.Response.OutputStream.Write(charStream, 0, charStream.Length);
                        HttpContext.Current.Response.End();
                report.Close();
                report.Dispose();
                ds.Dispose();
                GC.Collect();
    Closing and disposing of the report and dataset (xsd) are followed by a call for garbage collection. We are unable to produce the error in our development environmennt and have not at this point been unable to pinpoint a problematic report. The development team members do have SP1 installed. The report limit has not been changed from the standard of 75 jobs.  Reviewed the following document, Re: "The process cannot access the file ..." occurs when export crystal report However this applies to VS 2008. Any suggestions to resolve the issue would be greatly appreciated.
    Thanks,
    Joe

    Good morning Joe
    For more details re. loading please see the following resources:
    [Crystal Reports 2008 Component Engine Scalability|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/7025839b-00d4-2b10-33b4-cf0aa9e08412?quicklink=index&overridelayout=true]
    [How Can I Optimize Scalability?|http://msdn.microsoft.com/en-us/library/ms225519.aspx]
    [Choosing the Right Business Objects SDK for Your Needs|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40bccdfd-88a6-2b10-1da1-c47a54b625a7]
    To answer your questions:
    Is it correct to presume that the physical number of CPU's is not factored into the CPL? So that a Server with 2 or more processors does not increase the 3 concurrent requests? Therefore 2 CPU's would not increase the CPL limit to 6 processes?
    - Server with 2 or more processors does not increase the 3 concurrent requests.
    What would be an alternate solution to this limit be, considering the report requests could increase significantly?
    - Only way around this would be to web farm the solution
    If only only 3 reports can be processed at the same time. If one or more of the reports currently processing is taking longer due to receiving large amounts of data, how does that affect the queue? And what is stored in the queue, data and/or the report? Is this something that could consume memory?
    - The report can take as much time as it needs. The result is that one license will not be released until the report is done. There is no data stored, just a pointer to the report. However queued apps will chew up memory, some times to the point of the server becoming unresponsive
    I have read in the documentation on this site, that the dataset sent to the engine is copied in memory during report construction. So if a large amount of data is requested for a report (as an example 10+ MB) Could enough users requesting reports drive the memory up because memory usage doubled due to the dataset?
    - Absolutely. See [Crystal Reports Guide to ADO.NET|http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/401c4455-a31d-2b10-ae96-fa57af5aec20].
    Understanding the the CR DLL's are loaded on the first report request, do they get released at some point time due to inactivity or garbage collection? How much memory usage could be consumed when they load and stay resident?
    - No they do not. Not as long as the application is running.
    Ludek

  • How to keep file name on "Insert as new"

    If a record has a related file, the file-name is stored in a field of that record.
    When you open the record and choose "Insert as new" everything is copied to a new record, except this file-name.
    How to save this file-name too?
    thanx

    Hello,
    Set the PrintOption.JobTitle value for the print job. Here's C# code on how to:
                   System.Drawing.Printing.PrintDocument pDoc = new System.Drawing.Printing.PrintDocument();
                CrystalDecisions.ReportAppServer.Controllers.PrintReportOptions rasPROpts = new CrystalDecisions.ReportAppServer.Controllers.PrintReportOptionsClass();
                CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions newOpts = new PrintOptionsClass();
                   pDoc.PrinterSettings.PrinterName = cboCurrentPrinters.Text;          
                   rasPROpts.PrinterName = cboCurrentPrinters.Text;               
                   rasPROpts.PaperSize = (CrPaperSizeEnum)
                        pDoc.PrinterSettings.PaperSizes[cboCurrentPaperSizes.SelectedIndex].Kind;
                // this sets the name of the print job
                rasPROpts.JobTitle = "MYPrintJob";
                   rptClientDoc.PrintOutputController.PrintReport(rasPROpts);
                   MessageBox.Show("Printing report.", "RAS", MessageBoxButtons.OK,MessageBoxIcon.Information );
    Thank you
    Don

  • How to keep file name formatted?

    I need to generate  .xlsx file as reporting purpose without renamed for
    example :- File names end with YYYYMMDD format for the day they are generated.
    Is that possible I can set up that kind of job? 

    see
    http://visakhm.blogspot.in/2012/05/package-to-implement-daily-processing.html
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Random print jobs showing up in print queue when printing...

    Whenever I print something, one or two other random files will show up in the print queue.  The printer will not try and print these additional jobs, and it does not prevent another print job from printing, but each time more random files will show up.  The print queue will fill up with these additional jobs until they are manually deleted.  What a pain.  Does anyone have a solution???

    These random files can be communication files and are used to interogate the printer about its status. Typically they will be processed by the printer and then vanish from the print queue. So if they are not being processed and you are having to manually remove them then there could be a setting in the printer that needs to be changed or you have to check from an updated driver.
    To confirm if it is the printer queue / driver that is checking the status, you can open System Information (Applications > Utilities) and select Printers in the left column. You can then select the printer in the top right pane and see its information in the bottom right pane (or if this is the only printer you have the information will appear in the right pane). You will see an entry called Printer Commands. If it shows something like Report Levels then this confirms that these files you are seeing are for checking the printer status.

  • How to change the name of a Box Object in Crystal Reports 2008

    I am trying to change the name of a box object in a crystal report - 2008. This report was originally developed by consultants and requires that certain boxes be named according to a specific naming convention. I am making a change to the report and need to add a box with a name that matches the naming convention.  This is so some program functionality will work for the new box.  I can't contact the consultants because they don't work with our company anymore.
    Does anybody have any ideas? I've tried 'Format Box', but it won't let me change the name from there. I also tried it in the Report Explorer but to no avail.
    Thanks,
    Joanne

    Hi Joanne,
    Boxes do not actually have a 'name'. When you add a Box in a report, it will be called 'Box 1' by default. And the only place this name is visible is under the Report Explorer.
    Or do you mean to say 'Text Object'?
    -Abhilash

  • How to get file name on picture?

    Hi there.
    Is there a way to get the file name on the picture when exporting or "save as" my pictures? I am going to run a web site where people can order pictures and it will be much easier if I can have LR "printing" the file name on the picture.
    Regards,
    Deon

    Deon,
    I would try having this done by the web gallery itself (not on but below the picture). LR web galleries offer that option while building them.
    If you cannot achieve this, the most common way of putting metadata onto a picture during LR export is by using the LR/Mogrify 2 PlugIn.
    Beat Gossweiler
    Switzerland

  • How to place file names with thumbnails?

    I have several thousand images that need to go online but I cannot for the life of me figure out how to add file names to the thubnails. Every bit of documentation I've read talks about adding it to the larger images only. I figured that part out but can't I have file names for the thumbnails too?

    Bummer. I was hoping for a secret key to take me there. I have too 
    many images that can be scanned via thumbnails and for the detail 
    shots they can go larger. There is no way I can use this as it is with 
    9000+ images that need to be gone through quickly. Thanks for the 
    answer.
    Mark

  • How to edit file names.

      How to edit file names.

    Right click the file and choose "Rename".
    Type the new name and press "Enter".

  • If i download any file which is prepare on microsoft office 2007 . The file have been download without extension of the prog. Means if files name is "1,docx" when i download from firefox it download in that form "1". after download i have to rename and gi

    If i download any file which is prepare on microsoft office 2007 . The file have been download without extension of the prog. Means if files name is "1,docx" when i download from firefox it download in that form "1". after download i have to rename and give the extension name is plz tell me the way that office files are compatible with it.
    == This happened ==
    Every time Firefox opened
    == when i download the office files

    In Firefox Options / Privacy be sure "Remember download history" is checked. To see all of the options on that panel, "Firefox will" must be set to "Use custom settings for history".
    To find your OS information, on your Windows desktop, right-click the My Computer icon, choose Properties, under System on that small window is info about your OS.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • How to keep track of the changes done in ALV GRID Report

    Hi Experts,
    how to keep track of the changed record in ALV GRID Report. how to set the field to be editable even for the entire row also. Can anybody guide along with code also?...
    Valuable answers will be rewarded.
    Thanks,
    Satish.

    Hi,
    Access the table through SM30. It comes blank as standard. Click "New Entries" and make entries for changes to be tracked. For example, whenever an org. unit changes 002 and 003 relationship, you will make entries like:
    01 O 1001 B002 Activate box checked
    01 O 1001 B003 Activate box checked
    Here, 01 is your active plan version, O is org. unit, 1001 is infotype and B002 and B003 are the subtypes. You can also use * for infotype and subtype which means every change will be logged.
    If you then run the report RHCDOC_DISPLAY through SA38, it will pick up all the changes pertaining to B002 and B003 relationship for org. units (in the above example).
    Similarly, you can set up this table for other object types.
    For more information, follow SPRO>Personnel Management>OM>Basic Settings>Activate change documents and go through the documentation for that node. Also, read up the documentation for the report.
    Hope this helps.
    Donnie

  • How to keep first form window state maximize when you called the second for

    HI,
    how to keep first form window state maximize when you called the second form ?
    Thanks

    Here is sample of doing this.
    Chris

  • How can I change the fonts in "contacts" when printing mail labels

    How can I change the fonts in "contacts" when printing mail labels ? I used to be able to do this but in Mavericks this ability seems to have gone away. Am I missing something ?

    Actually in my case it doesn't work. I used to be able to pull up the font window with it but the button merely flickers when I click it. The image selection button and font color both are functional. WEIRD. I don't think this is a Mavericks issue as I recall having it come up with one of my user profiles before installing. Now I can't make it happen with either of my user profiles.
    I don't seem to have printing issues in other applications. And I recently reset the fonts in a futile attempt to correct this.
    I may post a new topic in Mail Contacts and Calendar if there is no response here after a bit.

  • File Name Associations Drop Out When Changing Project Name

    Posting on behalf of a colleague. He's using Robohelp X5 on a
    Windows XP computer.
    "We have frequent occasions in which we must take an existing
    online help project (ABC_001, for example), make some
    tweaks/additions/omissions, and release a revised online help
    project (ABC_002). We have been cloning the existing help project
    (ABC_001), renaming the project, making the necessary changes to
    the help project, adding or deleting map IDs in .hh files as
    necessary, importing revised .hh files as necessary, and then
    releasing the project under the new name. We want to maintain map
    ID numbers and assignments (25ANG1, Map #: 640, File name:
    Synchronism Check#25ANG1) from ABC_001 to ABC_002, but the File
    name associations drop out when we change the project name. It is
    then a laborious process to go through the list and reassign all
    the topics to the appropriate File names. Is there any way to
    maintain topic labels with their map ID numbers and their File name
    associations from one project to another?"
    TIA

    My colleague's reply:
    "I discovered that it requires just one more step in the help
    project before I can actually see the file name
    associations/aliases again. I have to recompile, as Colum
    recommended, but then I have to close down RoboHelp and reopen the
    project. Then, if I am in Project View and navigate to
    Context-Sensitive Help/Map Files/All Map IDs, I can see all of the
    file name associations again. Thank you, Colum, for your
    help!"

  • How do I remove top and bottom margins when printing using Adobe Acrobat XI Standard.

    How do I remove top and bottom margins when printing using Adobe Acrobat XI Standard. (I selected 'Fit to scale' and there's a huge gap on the top and bottom).

    Those margins are usually reported from the printer settings to Acrobat. Meansif you have, for example, an inkjet printer and that printer can not print seamlessly, then there will be a minimum margin.
    Check your printer's page settings.

Maybe you are looking for

  • HELP-Cant sync ipod tocuh with itunes and has deleted all my itunes library

    Hello, My ipod touch wont sync with my itunes and it is supposed to do so every time i connect it, also it has deleted my entire itunes library, how can i sync it and how can i restore my library??? THNX U ALL, Yamileth

  • Best desk arm clamp for a 27" Thunderbolt monitor.

    I have a 27" imac and 27"  thunderbolt display, thing is the imac is higher then the thunderbolt display which is annoying so im looking to get a clamp for it and mount it on a monitor arm so I can the screens level with each other, anyone else done

  • "Server push" technologies

    I would like to know about the technologies available in Java which could help me achieve something like this... "the server sends down a chunk of data; the browser display the data but leaves the connection open; whenever the server wants it sends m

  • How to get update FCE 4.0.1 (I have 4.0) even "Software update" said OK

    Why I can't update my FCE to 4.0.1. I bought version 4.0. I have a lot of trouble to "Read an transfert" AVCHD files from Canon HFS 100. "No data" message. And the file is readable on the control window... Somebody have a solution... ? TK's a lot.

  • Itunes wont except my new phone

    Ive received my new apple iphone today, and have registered the sim card with orange, but when i try to register with itunes ive had all day sorry we cant registered you phone at the moment so havent been able to use phone all day as it still as no s