CrystalReports 2008 SDK PrintToPrinter Hangs

Hi,
I am using CrystalReports 2008 SDK (CrystalDecisions.CrystalReports.Engine) in a VB.NET 2008 Application.  The application is Multi-Threaded  and each thread can send a report to a printer asynchronously.  The application is currently limited to 8 of these threads.  The application prints any where from 50 to 100 reports a minute.  Once or twice a week, all eight threads will hang on the call to CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(1, False, 1, 1).
Below is a sample of the code from the threads...
Private ManifestReport As New CrystalDecisions.CrystalReports.Engine.ReportDocument
Private Sub PrintReport()
                SubmitReport(EntryID, ReportName, PrinterName, Me.ManifestReport)
End Sub
Private Sub SubmitReport(ByVal EntryId As Long, _
                             ByVal ReportName As String, _
                             ByVal PrinterName As String, _
                             ByRef Report As CrystalDecisions.CrystalReports.Engine.ReportDocument)
        Report.Load(ReportName)
        ' Set the Report/SubReport Data Sources
        For i As Integer = 0 To Report.Database.Tables.Count - 1
            Report.Database.Tables(i).SetDataSource(GetDataSource(Report.Database.Tables(i)))
        Next
        For Each subReport As CrystalDecisions.CrystalReports.Engine.ReportDocument In Report.Subreports
            For Each subreportTable As CrystalDecisions.CrystalReports.Engine.Table In subReport.Database.Tables
                subreportTable.SetDataSource(GetDataSource(subreportTable))
            Next
        Next
        ' Assign the EntryId to be Printed
        Report.SetParameterValue("EntryId", EntryId)
        ' Send Report to Printer
        If Not Me.PrintToFile Then
                Report.PrintOptions.PrinterName = PrinterName
                Report.PrintToPrinter(1, False, 1, 1)
        Else
            Report.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.CrystalReport, "C:\Temp" & ReportName.Substring(ReportName.LastIndexOf("\")) & "_" & (EntryId Mod 56) & ".rpt")
        End If
End Sub

Elaine,
Thank you for your response! 
I do already have code in my thread to cleanup the Report. I created a Dispose routine that is called by the application that creates and destroys the thread.
    If ManifestReport IsNot Nothing Then
        If ManifestReport.IsLoaded Then ManifestReport.Close()
        ManifestReport.Dispose()
        ManifestReport = Nothing
    End If
In order to speed up the processing of the application, I create the Database Adapters and Datasets when the application starts up and then I just re-fill them each loop of the main application.  This helped to eliminate memory leaks and drastically increased performance.  When monitoring the application the memory usage and the number of threads fluctuate but do not grow.
The application is printing approximately 50 Manifest Reports when there is information in the database to print.  The application reads all the data necissary to print all of the reports.  Then the application will loops through the reports and creates a thread to print each report.  Only eight threads can be active at any given time.  A request to print the set of Reports occurs approximately every minute.
Thank you,
Bob

Similar Messages

  • How to Run Report on CrystalReport 2008 server?

    Greetings,
    I need to get a document that describe how to create a report, how to use the
    old .rpt files from older version 8.5 to generate the same report.
    I installed the CrystalReport 2008 server and have not able to find any area that describe
    how to generate a report, the help menu index does have any things that say create report either. 
    Does create report engine come with 2008 server??
    It has been hard to get any documents or assistance on this product.
    Would you one be kindly provide some hints or direction to resolve my issues.
    I am running CrystalReport 2008 Server on Windows 2003 release 2
    Thanks much,
    Y

    Didnt get ur question fully.
    U can schedule reports to a server using "schedule" cmd line parameter.
    see docs [     Publishing reports to web  - 10G  ] to know fully syntax of this param
    [    All Docs for all versions    ]
    http://otn.oracle.com/documentation/reports.html
    [     Publishing reports to web  - 10G  ]
    http://download.oracle.com/docs/html/B10314_01/toc.htm (html)
    http://download.oracle.com/docs/pdf/B10314_01.pdf (pdf)
    [   Building reports  - 10G ]
    http://download.oracle.com/docs/pdf/B10602_01.pdf (pdf)
    http://download.oracle.com/docs/html/B10602_01/toc.htm (html)
    [   Forms Reports Integration whitepaper  9i/10g ]
    9i - http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
    10g - http://www.oracle.com/technology/products/forms/pdf/10g/frm10gsrw10g.pdf
    http://www.oracle.com/technology/products/forms/techlisting10g.html
    ---------------------------------------------------------------------------------

  • Error on Installation of CrystalReports 2008

    Hi,
    I attended to install CrystalReports 2008 on my Windows XP SP 2 machine. I already installed the BOBJ XI 3.1 client tools and the SAP integration pack. But there is no chance to install CrystalReports tool.
    First I tried to install the build-version 12.0.0.683 with an error during the installation, which were "ignored". So the installation finished anyway. Starting CrystalReports ended in the missing "entry point".
    So I read about the SP1 (build 12.1.0.852) and I tried to use the integrated installation that was forced to finish with the message about "another installation currently running" (But there was definitely not another install I started). That's why I supposed a problem with the MS Installer and updated it with the result that any attempt of installation ends (waiting hours) with the "determing my disk space requirements".
    I would really appreciate it if there is somebody out there to give me an advice about a possible solution
    Regards
    Christian
    P.S.: Installation on another machine finished successfully without any problems.
    Edited by: Christian Ficker on Jun 26, 2009 3:01 PM

    I too am having problems with the installer, although I think I've made it a little further than you. I successfully installed CR 2008, but then removed an old version of CR XI afterwards; that's when my trouble started.
    What has happened is that I can no longer launch a .RPT file from windows explorer:  This produces a message stating that CR 2008 needs to be installed, but then complains about vjsharpwizards not being a valid short name.  Additionally, I can't uninstall because I get the same error, and I can't reinstall over the top for the same reason.  I even tried changing the file extension associations but that doesn't even yield CR 2008 as an installed program; navingating to the CRW32.exe only makes things worse.
    Even though my trouble is bit different than yours, we do have one thing in common...the presense of XI tools... I wonder if you back up, yank that out and then try again if you won't have better luck; My theory is that there is some leftover/walk over/clobber incompatibility between XI and 2008 on the same machine...

  • Where is CrystalReports 2008 ClickOnce Package for Visual Studio 2005????

    Where is this file????? I can found?
    Please can some on help me ? ?
    CrystalReports 2008 ClickOnce Package for Visual Studio 2005

    It is listed in the download page under .NET -> Utility:
    https://smpdl.sap-ag.de/~sapidp/012002523100005986302008E/cr120_clickonce.zip
    Regards,
    Jonathan

  • CR 2008 SDK: how to set custom paper size?

    Dear forum users, I'm trying to use Crystal Reports 2008 SDK to print barcode labels to a Datamax Printer.
    The printer uses a custom page size. Can anyone tell me how to set custom page size and margins using C# and CR2008 SDK?
    Best regards
    Alessandro

    I'm experiencing this problem: I need to print barcode labels which are 4 x 9 cm each (a custom paper size). The report has been build correctly, orientation is right but when I print the labels programmatically by an application I made the label gets printed in a wrong way.
    In particular, orientation and paper size are not correct.
    So I would like to try to force both of them (both the orientation and the custom paper size). How can I do that?
    Best regards
    Alessandro

  • CrystalReports 2008 crw32.exe has encountered a problem and needs to close.

    Hi Guys,
    I just installed Crystal Reports 2008 and tried to use it, but every time I try to expand Create New Connection tree, in order to add some data to my report, program crashes and I receive message:
    u201Ccrw32.exe has encountered a problem and needs to close.  We are sorry for the inconvenience.u201D
    Thus anyone have a solution to this problem?

    Well,
    Each time Crystal Reports crashes I see three errors:
    1. Faulting application crw32.exe, version 12.0.0.549, faulting module unknown, version 0.0.0.0, fault address 0x06000030.
    0000: 41 70 70 6c 69 63 61 74   Applicat
    0008: 69 6f 6e 20 46 61 69 6c   ion Fail
    0010: 75 72 65 20 20 63 72 77   ure  crw
    0018: 33 32 2e 65 78 65 20 31   32.exe 1
    0020: 32 2e 30 2e 30 2e 35 34   2.0.0.54
    0028: 39 20 69 6e 20 75 6e 6b   9 in unk
    0030: 6e 6f 77 6e 20 30 2e 30   nown 0.0
    0038: 2e 30 2e 30 20 61 74 20   .0.0 at
    0040: 6f 66 66 73 65 74 20 30   offset 0
    0048: 36 30 30 30 30 33 30 0d   6000030.
    0050: 0a                        .
    2. Faulting application drwtsn32.exe, version 5.1.2600.0, faulting module dbghelp.dll, version 5.1.2600.5512, fault address 0x0001295d.
    0000: 41 70 70 6c 69 63 61 74   Applicat
    0008: 69 6f 6e 20 46 61 69 6c   ion Fail
    0010: 75 72 65 20 20 64 72 77   ure  drw
    0018: 74 73 6e 33 32 2e 65 78   tsn32.ex
    0020: 65 20 35 2e 31 2e 32 36   e 5.1.26
    0028: 30 30 2e 30 20 69 6e 20   00.0 in
    0030: 64 62 67 68 65 6c 70 2e   dbghelp.
    0038: 64 6c 6c 20 35 2e 31 2e   dll 5.1.
    0040: 32 36 30 30 2e 35 35 31   2600.551
    0048: 32 20 61 74 20 6f 66 66   2 at off
    0050: 73 65 74 20 30 30 30 31   set 0001
    0058: 32 39 35 64               295d   
    3. Hanging application crw32.exe, version 12.0.0.549, hang module hungapp, version 0.0.0.0, hang address 0x00000000.
    0000: 41 70 70 6c 69 63 61 74   Applicat
    0008: 69 6f 6e 20 48 61 6e 67   ion Hang
    0010: 20 20 63 72 77 33 32 2e     crw32.
    0018: 65 78 65 20 31 32 2e 30   exe 12.0
    0020: 2e 30 2e 35 34 39 20 69   .0.549 i
    0028: 6e 20 68 75 6e 67 61 70   n hungap
    0030: 70 20 30 2e 30 2e 30 2e   p 0.0.0.
    0038: 30 20 61 74 20 6f 66 66   0 at off
    0040: 73 65 74 20 30 30 30 30   set 0000
    0048: 30 30 30 30               0000   
    However, I am not sure about their meaning.
    Regards,
    Vladimir

  • B1DIEvent Service on Windows Server 2008 x64 - installation hanging

    I'm trying to install the B1DIEvent Service on a Windows 2008 x64 Server but the installation is not completing. It does create the directories in the SAP folder but the installer hangs at roughly 95%.
    It seems to not be able to register the service on the server.
    Does anyone know if there would be compatability issues with Wondows 2008 Server x64? Or are there any speciffic steps that I can take to install this?
    I have installed MSMQ on the server.
    Any help would be appreaciated.
    Best wishes
    Edu van Zyl

    Hi Edu,
    Did you followed the instructions compiled in the other threads showing how to recompile the dll???
    Just follow step by step what is described there, it should work.
    DI EVENT SERVICE ON 64 SERVER
    1. Change compilation option to x64
    2. You have to replace the following 2 lines modified marked with:
    char msg[ 398 ]; // Old was mgs[378]
    sock, msg, 398, 0, (const struct sockaddr*)&sAddr, sizeof(struct
    sockaddr_in));
    3. Replace the old dll by the new one compiled
    4. Don't forget to register the dll (after compiling and copying in the right folder):
    C:\WINDOWS\SysWOW64>regsvr32.exe "C:\Program Files (x86)\SAP\SAP Business
    One DI Event Service\SAP Business One DI Event Server\SBO_SP_TransactionNotification\B1DIEventsSender.dll"
    Both Ad and Andres succeeded to do it.
    Hope it helps
    Trinidad.

  • Mac Pro 3,1 (early 2008) RAID card hangs at startup

    Hello,
    I have a Mac Pro 2.8Ghz Quad Core (early 2008) with 10GB RAM and 512MB VRAM.
    I have noticed that the Mac Pro RAID card hangs at startup for RAID volumes. 
    It seems to start okay with a single boot drive (have used both WD Raptor 150GB 10K and Seagate 'factory' 320GB 7200rpm as boot drives...)
    But the RAID 0 array using two factory 1TB WD 7200rpm is what seems to hang at startup.  I have run Disk Warrior, Disk Utility and RAID Utility and found no major errors...
    Any suggestions?  Have already replaced the RAID Card battery with OEM part.
    Thanks!

    Say good-bye to the Apple Pro RAID card. It started its life as a $999 card to support SAS/SCSI and/or RAID5.
    Then the problems with 2.5TB drives, battery, and does it really do something and add to your system.
    I would use SoftRAID and create a 3-drive mirror of 2TB drives instead.
    And an SSD for the system.
    Seems like those are some very old drives.
    I have a lot of the 150GB 10K VR drives, and some 300GB along with older 74GB and a couple of the Raptor series. Loud and while solid I would use for spare boot drives, clone only.
    Backup your data, pull the RAID card, and restore to the drives. And clone the system onto a 250GB $109 SSD. $139 buys a 400MB/sec writes and 800MB/sec reads Samsung PCIe-SSD XP941. None of my SCSI 15K drives would come close.

  • Error using Server 2008 SDK

    I am getting the following error when attempting to generate and display a report via the java sdk:
    This field name is not known. Details: errorKind Error in File {24EF9C46-F999-4426-B5A2-5B9435BD5235}.rpt: Error in formula fProdDetDesc: '{pCovCanDetbyAcct;1.ProdDetDesc}' This field name is not known. Details: errorKind
    This error does not happen when I manually run the report on the Central Management Console or via Developer 2008.
    Is there something in the report that the SDK does not support? Any help would be greatly appreciated.
    Thanks
    -Paul

    Hey PaulMac,
    Sorry I can't help, except in the "Misery loves company" department.  There was one article in the SAP KnowledgeBase, but it was referring to DB2, which doesn't apply in my case.
    I have just seen the "errorKind" string in a message when trying to print/preview a CR 10 report running against a MAS 90 version 4.20 database.
    Here is my message:
    Error in formula <Record_Selection>. |'|'|The remaining text does not appear to be part of the formula. |Details: errorKind.

  • 2008 Mac Pro Hangs

    My 2008 Mac Pro with OSX 10.6.8 Model 3.1 just started to 'hang" for about 40 secs. periodically while browsing any website. Problem occurs with both Safari 5.7.1 and with Firefox. Internal temps appear to be OK. You can browse OK for a few seconds or so then it will hang again, then will be OK for a few seconds then will hang again. I haven't added or removed anything at all for several days. Tried restarting computer and doing an SMC reset with no help.
    Anybody have any ideas?
    Thanks for any help,
    B. Taylor

    If instaled, try temporarily disabling anti virus software.
    If you don't have a/v software installed, try a different DNS server.
    Open System Preferences / Preferences then select the Network tab. Click the Advanced tab then click the DNS tab.
    Click +
    Enter these addresses exactly as you see them here.
    208.67.222.222
    Click +
    208.67.220.220
    Then click OK.
    More about OpenDNS here.
    Try a browser.

  • T400 ATi Driver, Vista64, Visual Studio 2005/2008 + OpenGL = Application hangs

    Well, the thread title sums it up pretty concisely.
    I develop OpenGL Apps in C++ on my Lenovo T400. My OS is Windows Vista 64 and I use Switchable Graphics. When using ATI Graphics my apps hang since i installed the lastest ATI Driver for the T400 (Release: 2009-04-28) when (and only when) starting the applications in the debugger. When starting the apps directly (either compiled for Debug or Release targets, both 32-bit) however, they work (!).
    As far i can tell it hangs when it tries swapping the buffers (for double buffering). 
    This happens both in Visual Studio 2005 and 2008. When will there be a fixed driver?

    timebits wrote:
    This is really annoying since this is the only driver supporting OpenGL 3.0!
    The current Lenovo driver is Catalyst 8.12 based (8.56 driver release). I thought OpenGL 3.0 support was only added in Catalyst 9.1 (8.57 driver)?
    The next Lenovo driver will be Catalyst 9.3 based (8.59 driver.) It was supposed to have shipped by the end of April but they had problems so decided to ship the Catalyst 8.12 based driver instead (the driver we had before 4/28 was really old -- based on Catalyst 8.8 -- 8.52 driver)
    For the whole saga of Lenovo/ATI's tardiness in making switchable graphics work see this thread.
    If you as a developer are dependent on having uptodate functionality in your graphics driver, you should consider modding the drivers you can download from the ATI site. All the links here are for Vista 32 but I am sure you can find the corresponding Vista 64 links. This means giving up on switchable graphics and setting discrete graphics (and os autodetect off) in bios.
    Starting Catalyst 9.4 (8.60 driver) ATI included switchable graphics in the drivers downloadable from their site. But unless you want to waste a lot of time -- stay with discrete graphics in bios.
    Btw I tried the modded Catalyst 9.4 (8.60 driver) on my Vista 32 T500 but had terrible performance in OpenGL (not 3.0) so went back to my modded Catalyst 9.1 (8.57 driver*) which I have good performance with.
    Message Edited by zilla on 2009-05-20 10:40 AM
    T500: Vista 32, 2.8GHz, 4GB RAM, 15.4" 1680x1050, 500GB 7200rpm, ATI Radeon HD3650 + Intel 4500MHD. T42: XP, 1.7GHz, 2GB RAM, 14.1" 1024x768, 250GB PATA, ATI Radeon 7500.

  • CR4E report designer vs. CrystalReports 2008 ?

    hello all,
    customizing charts with CR4E is somewhat poor.
    E.g. 
    - modifying how the legend is rendered is not possible.
    - placing the lagend is not possible
    - modifying how the the axis labels are rendered is not possible
    and so on.
    So my question: does the report designer of CR 2008 offer more capabilites and can I open a report in CR4E than ?
    TIA
    Gernot

    With the current CR4E version, the stand-alone Crystal Reports Designer is much more fully-featured than the CR4E designer.
    The current implementation of CR4E - version 1 - precedes the introduction of CR 2008, and does not support CR 2008 reports.
    There will be a new version of CR4E  - version 2 - that will support displaying CR 2008 reports. 
    I'm not aware if the next version of CR4E designer will support the features you want.
    Sincerely,
    Ted Ueda

  • XCELSIUS 2008 COMPONENT SDK

    Hi,
    Can some give me link to where I can install the SDK to go with Xcelsius 2008 SP2
    @ SAP Dashboard Design (Xcelsius Engage) 2008 Component SDK SP3 I can see SDK SP3, but this I believe needs Xcelsius SP3.
    I am looking for the SDK to go with Xcelsius SP2.
    Regards,

    Hi Naresh,
    Please check :
    Xcelsius 2008 u2013http://www.sap.com/solutions/sapbusinessobjects/sme/xcelsius/index.epx
    The Xcelsius 2008 SDK u2013 SAP Dashboard Design (Xcelsius Engage) 2008 Component SDK SP3 [original link is broken]
    Flex Builder 2 or 3 with the Flex 2.0.1 SDK installed u2013 http://www.adobe.com/products/flex/
    Also the following:http://everythingxcelsius.com/2009/05/top-10-xcelsius-2008-sdk-faqs.html (point 5)
    Regards,
    Amith

  • Handle is invalid after PrintToPrinter

    Hello,
    The evironment is a 2008 64 bit server that is used for the crystal report generation in a 32 bit application. The printservers that host the printers are 2003 32 bit servers. The first printserver is connected to the 64 bit 2008 using ThinPrint and from there it connects through to the 2003 printserver with the specific drivers for all printers. If you don't know ThinPrint it 's an application used to shrink the spooled fill for less networktraffic.
    We use the redistributable cr2008fp35_redist.zip.
    I receive the following error:
    Message:The handle is invalid
    Source: System.Drawing Stacktrace: at System.Drawing.Printing.StandardPrintController.OnStartPrint(PrintDocument document, PrintEventArgs e) at System.Drawing.Printing.PrintController.Print(PrintDocument document) at System.Drawing.Printing.PrintDocument.Print() at CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN) at CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)
    Kind regards,
    Koen Stoops

    Well, we need some baby steps here. I need to be convinced that the printing works in the simplest instance. And that will be a simple win ap, preferably constructed as follows:
    1) CR Viewer
    2) Two buttons
    3) A saved data report
    4) Button1 code; CRViewer1.ReportSource = <path to saved data report>
    5) Button2 code;
    crReportDocument.PrintOptions.PrinterName = "
    server\myprinter"
    crReportDocument.PrintToPrinter(1, True, 1, 1)
    MessageBox.Show("Report finished printing!")
    6) Compile
    7) Move the app exe to the server
    8) Run the app. Test printing from the viewer 1st, then code (button2)
    - Ludek

  • Handle Is Invalid - when doing PrintToPrinter

    I have a program installed on maybe 150 computers in our company and randomly (maybe 3-4 times a week) I get the error below from some of these computers. As I said total of 3 to 4 times a week from the 500 odd times this code is run..
      <Message>The handle is invalid</Message>
    - <StackTrace>
      <StackItem Method="System.Drawing.Printing.StandardPrintController.OnStartPrint(PrintDocument document, PrintEventArgs e)" LineNumber="-1" />
      <StackItem Method="System.Drawing.Printing.PrintController.Print(PrintDocument document)" LineNumber="-1" />
      <StackItem Method="System.Drawing.Printing.PrintDocument.Print()" LineNumber="-1" />
      <StackItem Method="CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)" LineNumber="-1" />
      <StackItem Method="CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)" LineNumber="-1" />
      <StackItem Method="MobilePhoneSales.AL.usrContractDetails.cmdSaveContract_Click(Object sender, EventArgs e) in Z:\SVN_Repos\MobilePhoneSales\MobilePhoneSales\AL\usrContractDetails.cs" LineNumber="511" />
      <StackItem Method="System.Windows.Forms.Control.OnClick(EventArgs e)" LineNumber="-1" />
      <StackItem Method="DevExpress.XtraEditors.BaseButton.OnClick(EventArgs e)" LineNumber="-1" />
      <StackItem Method="DevExpress.XtraEditors.BaseButton.OnMouseUp(MouseEventArgs e)" LineNumber="-1" />
      <StackItem Method="System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)" LineNumber="-1" />
      <StackItem Method="System.Windows.Forms.Control.WndProc(Message& m)" LineNumber="-1" />
      <StackItem Method="DevExpress.Utils.Controls.ControlBase.WndProc(Message& m)" LineNumber="-1" />
      <StackItem Method="System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)" LineNumber="-1" />
      <StackItem Method="System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)" LineNumber="-1" />
      <StackItem Method="System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)" LineNumber="-1" />
      </StackTrace>
    I am running crystal reports version 12.02 and using .net 2.0, the error happens on the PrintToPrinter line of the code below.. Thanks for having a look any questions I will try and respond with as much detail as possible..
                        using (ReportDocument ZeroUpfrontContract = new AL.rptZeroUpfrontContract())
                            ZeroUpfrontContract.SetParameterValue("Header1", BL.HeaderRecord.m_HeaderLine1);
                            ZeroUpfrontContract.SetParameterValue("Header2", BL.HeaderRecord.m_HeaderLine2);
                            ZeroUpfrontContract.SetParameterValue("Header3", BL.HeaderRecord.m_HeaderLine3);
                            ZeroUpfrontContract.SetParameterValue("Header4", BL.HeaderRecord.m_HeaderLine4);
                            ZeroUpfrontContract.SetParameterValue("Header5", BL.HeaderRecord.m_HeaderLine5);
                            ZeroUpfrontContract.SetParameterValue("Stock_code", txtBarCode.Text.Length > 0 ? DL.Inventory.queryStockCode(txtBarCode.Text) : "");
                            ZeroUpfrontContract.SetParameterValue("descript", lblItemDescript.Text);
                            ZeroUpfrontContract.SetParameterValue("IMEI", txtIMEI.Text);
                            ZeroUpfrontContract.SetParameterValue("Comments", "Comments: " + txtComments.Text);
                            ZeroUpfrontContract.SetParameterValue("ContractDate", DateTime.Now);
                            ZeroUpfrontContract.SetParameterValue("CustName", currentCustomer.FirstName.Trim() + " " + currentCustomer.Surname.Trim());
                            ZeroUpfrontContract.SetParameterValue("DataPack", chkDataPlan.Checked ? cboDataPacks.Text : "Declined by customer, therefore Pay As You Go rates will be applicable.");
                            ZeroUpfrontContract.SetParameterValue("ETC", chkETC.Checked ? rdoETC.SelectedIndex == 0 ? "Cancellation fee of $" + txtETCValue.Text + " reoccuring for the next " + txtETCDuration.Text + " months."
                                                                                    : "Cancellation fee of $" + txtETCValue.Text + " on next bill."
                            if (cboWarrantyCodes.SelectedIndex > -1)
                                ZeroUpfrontContract.SetParameterValue("Warranty", "1 Year Extended Warranty Included");
                            else
                                ZeroUpfrontContract.SetParameterValue("Warranty", "  ");
                            ZeroUpfrontContract.PrintToPrinter(2, false, 1, 999);

    Make sure the printer driver you are using is correct for;
    1) The printer type it's self
    2) The OS
    Your code does not show if you are using .Close and .Dispose on the report objects, but this would be highly recommended.
    Make sure you are using SP1:
    https://smpdl.sap-ag.de/~sapidp/012002523100006007872008E/crvs05sp1.exe
    The above will update your dev computer and install new MSI file that you should use to deploy the SP 1 (SP1 will not install on runtime computers. Only the MSI will):
    c:\program files\microsoft visual studio 8\sdk\v2.0\bootstrapper\packages\crystal reports\CRRedist2005_x86.msi
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

Maybe you are looking for

  • Selections in BEx query designer

    Hi, I have object apparaisal rating scale compounded with rating value. Rating scale can have values : A,B,C and rating value : 1,2,3..etc Suppose I want to count total emplooyees in rating value 1 So in selections It shows values available for restr

  • Issue with at new command

    Hi, Please check the following code loop at itab1. loop at itab where id  = itab1-id and                  werks = itab1-werks. clear text1.     at new text.       text1 = itab-text.     endat. write text1. endloop. endloop. say i have text field in i

  • Support for Internet Explorer 7 for forms

    Does anyone know if Internet Explorer 7 is certified for use as the browser to run forms in? If so, what versions of forms and JInitiator is it certified with? Thanks.

  • How to get Contract Account Number in Service Ticket

    Hi Experts, How to get Contract account number in Service Ticket, we are working in ISU environment. when i create the service ticket the contract account number is there in Business agreement number field in service tiket. Can anyone tell me how to

  • Illustrator breaks preview when I used it with LaTex

    I am having a bizarre problem using Illustrator CS3 on Leopard. Here is the sequence of events: 1. I create a diagram in Illustrator. I save a copy of that diagram as an eps file (or as a pdf). 2. I embed that eps (or pdf) diagram as a figure in a La