Issue with Printing Labels using PrintToPrinter

Hi,
Recently we have upgraded our reports from crystal reports XI to crystal report 2008.
We are currently facing problems with the labels printed through crystal reports.
I've used the ReportDocument.PrintToPrinter(1, false, 0, 0); method to print the report directly to the label printer.
The problem is, if I export the label to a PDF file and print the report by selecting the printer the label comes out perfectly, but when I print the report directly using "printtoprinter" method instead of exporting it to a PDF, the font size is reduced and the label looks like its shrinked to half the size. Our production server is still running on crystal reports XI and we don't have any problem printing labels from it. Let me know if i'm not sailing in the right direction.
System Details:
OS: Windows Vista Buisness 64-bit
Visual studio 2008
.NET Framework 3.5
Label Printer: Dymo Labelwriter 330
Crystal Reports 2008
Code:
private ReportDocument oRpt = new ReportDocument();
// initialize the repot.
initReport();               
oRpt.PrintOptions.PaperOrientation = PaperOrientation.Landscape;
oRpt.PrintOptions.PrinterName = prnName;
oRpt.PrintToPrinter(1, false, 0, 0);
Thank you,
Vijay

Hey Josh,
I'm sorry there was a typo in the link.
Here is the link for that forum Re: Custom Paper Size & Orientation Problem
The solution mentioned by Amit singh in the thread solved my problem. I'm pasting the code here for you to look at.
boReportDocument.Load(Server.MapPath("CrystalReport.rpt"));
        PrintOptions boPrintOptions = boReportDocument.PrintOptions;
        // The paper size used for this report is  '14x7'.
      System.Drawing.Printing.PrinterSettings oPrinterSettings = new       System.Drawing.Printing.PrinterSettings();
        oPrinterSettings.PrinterName = "     ";
        foreach (System.Drawing.Printing.PaperSize oPaperSize in oPrinterSettings.PaperSizes)
            if ("14x7" == oPaperSize.PaperName)
                boPrintOptions.PaperSize = (CrystalDecisions.Shared.PaperSize) oPaperSize.RawKind;
                break;
        CrystalReportViewer1.ReportSource = boReportDocument;
Hope this solves your problem.
Vijay

Similar Messages

  • Acrobat 9 Pro issues with printing and now updating  !!! :(

    hello
    I had an issues with printing from my gmail account or from windows live mail
    so I made a complete re-installation
    now I am stuck with version 9.3.0 and when I check for updates I get a message
    UPDATER IS ALREADY RUNNING
    only... it's not running and nothing is updating !
    I made a restart... just in case... it did not change anything
    as to the printing issue, in case some of you have met it and cleared it...(hope)
    this was with version 9.5.0
    I get no error message but no pdf is created, only a text document with this :
    %%[ ProductName: Distiller ]%%
    %%[Page: 1]%%
    72gmvi not found, using Courier.
    44dcmta not found, using Courier.
    %%[ Error: invalidfont; OffendingCommand: xshow ]%%
    Stack:
    [96 96 97 72 96 42 64 0]
    %%[ Flushing: rest of job (to end-of-file) will be ignored ]%%
    %%[ Warning: PostScript error. No PDF file produced. ] %%
    not a good start for my week... I hope yours is nicer
    I'm running Win7 Ultimate x64

    thanks Mylenium
    the font association problem is something recent though, since I used acrobat to print mails directly from my gmail account previously...
    it's galling but I installed a free pdf printer which does the job, I needed copies of these mails urgently !
    as to the update issue, I see no aum.exe, msiexec.exe or setup.exe running... but that's quite above my head... do I look for those exact processes or are they generic names for processes ?
    does my question make sense ????

  • Issue with  print image in air

    hey frnd,
    plz check this link
    http://livedocs.adobe.com/flex/3/html/help.html?content=printing_5.html
    hey frnds,
    while using this multiple print datagrid code, getting 1 issue with
    print image in printheader mxml file.
    I'm adding 1 image tag and runtime getting image path in variable and
    want to print tht image in header ,
    but it is not get printed but if i'm giving @Embed image as a source
    then it is print.
    Is any way there to print runtime image after adding in printheader
    file ?
    thx in advanced,
    [email protected]

    is any solution there ?

  • Issue with printing to a network photocopier

    We are a small school where the teachers all have Macbook Pro laptops. For a while we have been having intermittent issues with printing to the Photocopier, today is an example.
    Teacher tried to print, worked fine, then tried again 15 min later, received message Printer is in use (I was standing next to it and it wasn't in use!) tried again 10 min later, printed fine.
    Teacher tried to print, spooled for about 5 min then printed, tried again, printed fine.
    From the CUPS error log there are the following:
    - The Printer is in use
    - ICC Profile "/Library/Printers/Sharp/Profiles/SS0HIN0.icc" does not exist.
    - Remote host did not accept data file(32)
    - The printer did not respond
    - Stopping unresponsive job
    - The printer is not responding
    They are all on wireless. There is no network issue as I can ping the photocopier, get onto the Internet etc.
    They don't print via a server, they all have the photocopier installed on their macbooks as an IP printer using LDP.
    Thanks

    You'll need to manually create the folder and install the profiles. From the finder select Go, Go to Folder. Enter "/Library/Printers/Sharp/Profiles" without the quotation marks, Go. You might have to manually create the Profile folder. You can download this disk image from Sharp that contains the icc files here; http://www.sharpusa.com/ForBusiness/DocumentSystems/MFPsPrinters/MX4110N.aspx?vi ew=drivers
    Drag and drop the icc files from /MX-C26/Profiles to /Library/Printers/Sharp/Profiles
    Also make sure you install the drivers from MX-C26 for the appropriate version of OS X you are running.
    Hope this is clear.

  • Issue with printing of Currency Value.

    Hi,
    I have an issue with printing of Currency Value.
    ( Pleae let me know if any thread available already  I searched it before posting but not found).
    The Problem is as follows:
    I have a field  s_value TYPE  MARM-SALK3.  (which is of currency type).
    The value of field is actually 1664.1450.   Currency USD
    But when I print this variable in ALV report it prints as  166414.50  though I used the same data type. (SALK3).
    Pleaes help me to fix this.
    Regards,
    Venkat

    Hi,
    If you use ALV to display currency value, you must sure that currency amount links with currency unit. You can archive this by using ALV fieldcat:
    wa_fieldcat-fieldname = 'SALK3'.
    wa_fieldcat-tabname = 'ITAB'.
    wa_fieldcat-cfieldname = 'WAERS'.
    wa_fieldcat-ctabname = 'ITAB'.
    append wa_fieldcat to gt_fieldcat.
    Please check,
    Regards,

  • Printable side issues with Avery labels

    I'm printing Avery labels on my HP Photosmart 6180.  Was printing them fine and then started giving me a "remove paper and re-insert with the printable side down, then press OK".  Printable side is down, won't work.  Using Word 2007.  Help only two pages to go!

    Hi jimv11,
    I understand that you are having a problem with printing labels. I will try my best to help you resolve this. I researched this printer and in this document Load Paper for labels I found this information.
    Labels (for printing from a software application only):
    Always use letter or A4 label sheets designed for use with HP inkjet devices (such as HP inkjet labels).
    Make sure that the labels are no more than two years old. Labels on older sheets might peel off when the paper is pulled through the HP All-in-One, causing paper jams.
    Fan the stack of labels to make sure none of the pages are sticking together.
    Place a stack of label sheets on top of full-size plain paper in the paper tray, label side down. Do not insert labels one sheet at a time.
    You also need to make sure that in the print menu on the computer you are choosing advance and then choosing the correct paper type. There should be a choice for labels.
    I hope this helps
    I worked on behalf of HP.

  • Issues with printing purchase order

    Dear friends,
    I'm having some issues with printing purchase orders.
    Normally when I create a purchase order via ME21N and then when I save the purchase order it then gets automatically printed.
    Suddenly it is not anymore working. I have created a purchase order this morning and it did not get printed. I get the message "frontend is not available"when i check the spool in SP01
    The funny think is if i call up the spool nr via SP01and then do a reprint then i'm able to reprint.
    What can be possibly the issue that I can't print the purchase order when I create the purchase order via ME21 when I save the purchase order? Can you help me with any guide on where I need to check why the PO is not printing immediatelly when i create the PO via ME21N?
    kind regards,
    Camilla

    hello all,
    thanks so far for your reply.
    i have checked today my user settings and that shows that my prints should go to LOCL (local default printer)
    The output conditions fpr purchase order have also LOCL (local printer)
    The weird thing is that I can print other reports to the default printer without any issues. The issue arise when I create a purchase order via ME21N. Normally when I save the PO it automatically prints. So no manual print instructions are required from my side. Because if I give manual instructions then I'm able to print the purchase order.
    Is it possible that the automatic printing is switched off and that it only prints when I hit manually the print button?
    Is the automatic printing something that is maintained in SPAD?
    kind regards and thanks for your help sofar

  • Issue with printing production order after changes through CO02

    Hi,
    Currently I have one issue with printing production order changes through CO02. If I go for print, all the operations are captured in printout. But after the print, if I add any new operations to this production order, and then go for print, its not capturing the newly added operations. Also, there is information popup coming "Copies will be printed for order. Original list already printed". This message effectively means, even after changes, when I go for print functionality, its just going for printing copies of original printed list.
    Can anyone help me out to get the newly added operations reflected in the print through CO02 ?
    Regards,
    Shiva

    Hi Shiva,
    Refer SAP note 28887.
    Source: http://www.sapfans.com/forums/viewtopic.php?f=9&t=308577
    Please search /google before posting queries.
    Regards,
    SuryaD.

  • Issue with printing newly added operations in Production Order through CO02

    Hi,
    Currently I have one issue with printing production order changes through CO02. If I go for print, all the operations are captured in printout. But after the print, if I add any new operations to this production order, and then go for print, its not capturing the newly added operations. Also, there is information popup coming "Copies will be printed for order. Original list already printed". This message effectively means, even after changes, when I go for print functionality, its just going for printing copies of original printed list.
    Can anyone help me out to get the newly added operations reflected in the print through CO02 ?
    Regards,
    Shiva

    Hi,
    1) Go to Tcode "OPK8"
    2)Select LG02 "Op Control Ticket"
    3) Double click on :List Control for Transactions" in the left hand menu tree
    4) In front of ur desired t code "co02" make the changes ( Number of prints- u can increase) 6th column.
    Try this.

  • I need help with printing labels.  please

    I need help with printing labels.  thanks in advance

    Welcome to Apple Support Communities.
    In Address Book, first select a name or group of names to print.
    Then File, Print, select Style, Mailing Labels, then Layout to select a specific target label (such as an Avery number), or define your own...

  • Hello, I have installed a new Laserjet Pro M1217nfl using Wi-Fi. My laptop prints everything e-mails, Word documents etc. My iPad 3 (latest issue) only prints documents using Wi-Fi so has clearly recognised the printer. How can I prin e-mails using iPad 3

    Hello, I have installed a new Laserjet Pro M1217nfl using Wi-Fi. My laptop prints everything e-mails, Word documents etc. My iPad 3 (latest issue) only prints documents using Wi-Fi so has clearly recognised the printer. How can I print e-mails? Thanks.

    In the email you want to print, on the top right there is an arrow. Click that and an option should appear that says print. That should work. Have you already tried that?

  • Compatibility issue with developer 6i using (64 bit) OS

    Hi All,
    I am using oracle 9iR2 (32 bit) on Linux Red Hat (32 bit) with developer 6i. Now i want to upgrade OS Red Hat (64 bit) and migrate database 10gR2 (64 bit).Is there any compatibility issue with developer 6i using 64 bit Red Hat OS / Oracle Database ?
    Thanks

    Is there any compatibility issue with developer 6i using 64 bit Red Hat OS / Oracle Database ?
    No, as long as developer 6i is at least patch 16. We use it.

  • Issue with BDC program used for FBZ5 (Check Print)

    Hi all,
    I am having one requirement in Check printing. as per that i have made one Z program which will accept multiple Payment documents. I am passing selected accounting documents to BDC routine for Transaction FBZ5. (As in FBZ5 we can take a print for one Payment document not for multiple)
    We can have 3 scenarios in FBZ5
    1. Fresh Check printing (First time check printing)
    2. Old Check (printing for same Check no)
    3. New Check (After voiding older check)
    Category 1 and 2 are working fine but i am facing problem in category 3.
    For Category 3 : BDC Screen flow is like this
    A. Tcode FBZ5 Start program: SAPMFCHK Screen: 750 --> Click on 'Print'
    B. Program: SAPLSPO2 Screen: 0100  --> Here specify option 'New Check'
    C. Program: SAPMFCHK Screen: 0700
        - This program belongs to new Tcode FCH7
        - Here we have to give Void Reason code
    Now issue with Category 3:
    While executing BDC in online and background mode my control is terminating at step C mentioned above
    Troubleshooting:
    I have debugged standard program of FBZ5
    1. in Include MFCHKFD0 we can see call to Tcode FCH7  (PERFORM AUFRUF_FCH7.)
    2. in form AUFRUF_FCH7 i found code related to BDC
       also there one statement is getting triggered -->   CALL TRANSACTION 'FCH7' USING BDC MODE 'A'.
    So there is a BDC call inside my Z BDC program, so is this a reason why my program is not working for above scenario ?
    Or can't we handle above scenario in a way mentioned above?

    Hi Sandra,
    I was trying to upload customer master in fd01 using bdc. The screens were different while recording. So could not perform the upload. Thenone screen was skipped so that the bdc was working fine and the data was uploaded.
    This is the flow of the recording.
    'SAPMF02D' '0105'.
    SAPMF02D' '7105'
    SAPMF02D' '0111
    SAPMF02D' '0120
    SAPMF02D' '0130
    SAPMF02D' '0210
    SAPMF02D' '0215
    SAPMF02D' '0220'
    SAPMF02D' '0230'
    SAPMF02D' '0610
    After the second screen was deleted the bdc worked fine.

  • Issue with character formats using duplex printing in smartform

    Hi all,
    I am getting a problem with character formats using duplex printing in smartform. I am using a text module with a bold character to display text in a window. The problem is that on the first back page,the text is being printed normally (without bold), but on the next pages, the back pages are being printed with the bold character format.
    Can anyone know where is the problem..please.
    Points to be rewarded..
    Thanks.
    Regards,
    Zaheed.

    Hi Zaheed,
    Normally this should not happen.. and also there is no internal formatting done by SAP.. it will show based on what fomatting option we have specified..
    If you are saying it is happening in ur case then
         1. Recheck whether whether you have same text module getting printed on the
             two page. If they are different then then individual check formatting option for
             each..
          2. If above point does'nt work for you ..then instead of bold char use normal
              format for text element and see if it is printing same on both page..
    Try this out and let us know your findings...
    Enjoy SAP.
    Pankaj Singh

  • Issues With Printer Using drv:///sample.drv/generic.ppd from Command Line

    Hi All,
    I was using generic postscript driver earlier with Mountain Lion. I Created a print queue using "lpadmin -p MYPrintQueue -m drv:///sample.drv/generic.ppd -v socket://<IP>:9100 -E"
    This created a print queue with Generic Postscript Driver.
    Now when i am trying same command with Mavericks, It's Creating a Local Raw Printer. Can anyone tell me where i am going wrong.
    I need command line resolution only.
    I know i can create print queue from cups web interface. There its working fine.
    But i need to use command line only.
    Thanks.

    Hi,
    Would you please try following commands?
    Please don't add quotes on the inf file path: change the driver folder name NC Print Drivers as NCPrintDrivers.
    rundll32 printui.dll PrintUIEntry /if /f C:\Temp\NCPrintDrivers\dellopd_A06\dellopd.inf /r "192.168.10.157"
    Make sure to run the command as admin.
    Let me know if it can work fine.
    Kate Li
    TechNet Community Support

Maybe you are looking for