Processing 1.0 How to define CUSTOM paper size?

Hi all,
I'm working in processing and I'm looking for a way to define my own paper size.
This is the most "cleanest" version of the script.
In fact this part is as good as the exact script from seltar
So the main focus right now would be the line between the
four backslash lines.
// Printer - Jpg and Text (more can easily be implemented)
// PrintService http://java.sun.com/j2se/1.4.2/docs/api/javax/print/PrintService.html
// DocFlavor http://java.sun.com/j2se/1.4.2/docs/api/javax/print/DocFlavor.html
// PrintRequestAttributeSet http://java.sun.com/j2se/1.4.2/docs/api/javax/print/attribute/PrintRequestAttributeSet.html
// Attribute http://java.sun.com/j2se/1.4.2/docs/api/javax/print/attribute/Attribute.html
// Yonas Sandbæk - http://seltar.wliia.org
import javax.print.*;
import javax.print.attribute.*;
import javax.print.attribute.standard.MediaSizeName;
import javax.print.attribute.standard.MediaSize;
import javax.print.DocFlavor;
import javax.print.PrintService;
import javax.print.PrintServiceLookup;
import javax.print.ServiceUI;
import javax.print.attribute.HashPrintRequestAttributeSet;
import javax.print.attribute.PrintRequestAttributeSet;
import javax.print.attribute.standard.MediaPrintableArea;
import javax.print.attribute.standard.MediaSize;
import javax.print.attribute.standard.*;
import com.sun.image.codec.jpeg.*;
PrintIt p = new PrintIt();
void draw(){
// blabla drawing
if(keyPressed && key == 'p') p.printJpg(get(0,0,width,height));
class PrintIt{
  PrintService[] services;
  PrintService service;
  DocFlavor docflavor;
  Doc myDoc;
  PrintRequestAttributeSet aset;
  DocPrintJob job;
  PrintIt(){
    myDoc = null;
    job = null;
    services = null;
    setService(PrintServiceLookup.lookupDefaultPrintService());
    setDocFlavor(DocFlavor.BYTE_ARRAY.AUTOSENSE);
    aset =  new HashPrintRequestAttributeSet();
    //aset.add(MediaSize.findMedia(0.5, 0.5, MediaSize.INCH));
    aset.add(MediaSize(10, 10, Size2DSyntax.MM));
  void setService(PrintService p)
    service = p;
  void setDocFlavor(DocFlavor d)
    docflavor = d; 
  void listPrinters(){
    services = PrintServiceLookup.lookupPrintServices(null, null);
    for (int i = 0; i < services.length; i++) {
     System.out.println(services.getName());
     DocFlavor[] d = services[i].getSupportedDocFlavors();
     for(int j = 0; j < d.length; j++)
     System.out.println(" "+d[j].getMimeType());
services = null;
// prints a given image
void printJpg(PImage img){
setDocFlavor(DocFlavor.BYTE_ARRAY.JPEG);
print(bufferImage(img));
// prints a given string
void printString(String s){
setDocFlavor(DocFlavor.BYTE_ARRAY.AUTOSENSE);
print(s.getBytes());
boolean print(byte[] b){
if(!service.isDocFlavorSupported(docflavor)){
println("MimeType: \""+docflavor.getMimeType()+"\" not supported by the currently selected printer");
return false;
boolean ret = true;
try{
     myDoc = new SimpleDoc(b, docflavor, null);
catch(Exception e){
     println(e);
     ret = false;
job = service.createPrintJob();
try {
     job.print(myDoc, aset);
catch (PrintException pe) {
     println(pe);
     ret = false;
return ret;
// used with printJpg()
byte[] bufferImage(PImage srcimg){
ByteArrayOutputStream out = new ByteArrayOutputStream();
BufferedImage img = new BufferedImage(srcimg.width, srcimg.height, 2);
img = (BufferedImage)createImage(srcimg.width, srcimg.height);
for(int i = 0; i < srcimg.width; i++)
     for(int j = 0; j < srcimg.height; j++)
     int id = j*srcimg.width+i;
     img.setRGB(i,j, srcimg.pixels[id]);
try{
     JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
     JPEGEncodeParam encpar = encoder.getDefaultJPEGEncodeParam(img);
     encpar.setQuality(1,false);
     encoder.setJPEGEncodeParam(encpar);
     encoder.encode(img);
catch(FileNotFoundException e){
     System.out.println(e);
catch(IOException ioe){
     System.out.println(ioe);
return out.toByteArray();

Hi all,
I'm working in processing and I'm looking for a way to define my own paper size.
This is the most "cleanest" version of the script.
In fact this part is as good as the exact script from seltar
So the main focus right now would be the line between the
four backslash lines.
// Printer - Jpg and Text (more can easily be implemented)
// PrintService http://java.sun.com/j2se/1.4.2/docs/api/javax/print/PrintService.html
// DocFlavor http://java.sun.com/j2se/1.4.2/docs/api/javax/print/DocFlavor.html
// PrintRequestAttributeSet http://java.sun.com/j2se/1.4.2/docs/api/javax/print/attribute/PrintRequestAttributeSet.html
// Attribute http://java.sun.com/j2se/1.4.2/docs/api/javax/print/attribute/Attribute.html
// Yonas Sandbæk - http://seltar.wliia.org
import javax.print.*;
import javax.print.attribute.*;
import javax.print.attribute.standard.MediaSizeName;
import javax.print.attribute.standard.MediaSize;
import javax.print.DocFlavor;
import javax.print.PrintService;
import javax.print.PrintServiceLookup;
import javax.print.ServiceUI;
import javax.print.attribute.HashPrintRequestAttributeSet;
import javax.print.attribute.PrintRequestAttributeSet;
import javax.print.attribute.standard.MediaPrintableArea;
import javax.print.attribute.standard.MediaSize;
import javax.print.attribute.standard.*;
import com.sun.image.codec.jpeg.*;
PrintIt p = new PrintIt();
void draw(){
// blabla drawing
if(keyPressed && key == 'p') p.printJpg(get(0,0,width,height));
class PrintIt{
  PrintService[] services;
  PrintService service;
  DocFlavor docflavor;
  Doc myDoc;
  PrintRequestAttributeSet aset;
  DocPrintJob job;
  PrintIt(){
    myDoc = null;
    job = null;
    services = null;
    setService(PrintServiceLookup.lookupDefaultPrintService());
    setDocFlavor(DocFlavor.BYTE_ARRAY.AUTOSENSE);
    aset =  new HashPrintRequestAttributeSet();
    //aset.add(MediaSize.findMedia(0.5, 0.5, MediaSize.INCH));
    aset.add(MediaSize(10, 10, Size2DSyntax.MM));
  void setService(PrintService p)
    service = p;
  void setDocFlavor(DocFlavor d)
    docflavor = d; 
  void listPrinters(){
    services = PrintServiceLookup.lookupPrintServices(null, null);
    for (int i = 0; i < services.length; i++) {
     System.out.println(services.getName());
     DocFlavor[] d = services[i].getSupportedDocFlavors();
     for(int j = 0; j < d.length; j++)
     System.out.println(" "+d[j].getMimeType());
services = null;
// prints a given image
void printJpg(PImage img){
setDocFlavor(DocFlavor.BYTE_ARRAY.JPEG);
print(bufferImage(img));
// prints a given string
void printString(String s){
setDocFlavor(DocFlavor.BYTE_ARRAY.AUTOSENSE);
print(s.getBytes());
boolean print(byte[] b){
if(!service.isDocFlavorSupported(docflavor)){
println("MimeType: \""+docflavor.getMimeType()+"\" not supported by the currently selected printer");
return false;
boolean ret = true;
try{
     myDoc = new SimpleDoc(b, docflavor, null);
catch(Exception e){
     println(e);
     ret = false;
job = service.createPrintJob();
try {
     job.print(myDoc, aset);
catch (PrintException pe) {
     println(pe);
     ret = false;
return ret;
// used with printJpg()
byte[] bufferImage(PImage srcimg){
ByteArrayOutputStream out = new ByteArrayOutputStream();
BufferedImage img = new BufferedImage(srcimg.width, srcimg.height, 2);
img = (BufferedImage)createImage(srcimg.width, srcimg.height);
for(int i = 0; i < srcimg.width; i++)
     for(int j = 0; j < srcimg.height; j++)
     int id = j*srcimg.width+i;
     img.setRGB(i,j, srcimg.pixels[id]);
try{
     JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
     JPEGEncodeParam encpar = encoder.getDefaultJPEGEncodeParam(img);
     encpar.setQuality(1,false);
     encoder.setJPEGEncodeParam(encpar);
     encoder.encode(img);
catch(FileNotFoundException e){
     System.out.println(e);
catch(IOException ioe){
     System.out.println(ioe);
return out.toByteArray();

Similar Messages

  • 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

  • How to print custom paper size with borderless?

    Hi, I want print in custom peper size (6"x13") and i want print with borderless, but the print properties dont have the options to select custom size, any idea how can I do this work? thanks.

    Hi, Its specs says it supports: Left: 3.3 mm (0.13 inch)
    Right: 3.3 mm (0.13 inch)
    Top: 3.3 mm (0.13 inch)
    Bootom: 3.3 mm (0.13 inch) and 12 mm (.47 inch) for the following list of papers: U.S. Letter
    U.S. Legal
    A4
    U.S. Executive
    U.S. Statement
    8.5 x 13.0 inch
    B5
    A5
    Cards
    Custom-sized media
    Photo media Source: http://support.hp.com/au-en/document/c03565793 Regards.  

  • How to create custom paper size in Windows?

    I have a picture within lightroom 1.0 that is 4.5 in x 7.5 in. The card that I am trying to print this on is 5.5 in x 8.5 in. I would like it centered. For some reason I cannot get the photo to print correctly on this size paper. I am printing to a HP Color Laser 3800n using the 3800 PS print driver. This is driving me crazy and I know that it is something simple. Hopefully somone can help.
    thanks

    Chalk this up to using a Windows Print driver. As soon as I downloaded the latest driver for this printer from hp.com all my printing problems went away. It printed as it should have within LR.

  • How to add a new custom paper size? I am using a HP Deskjet 1000 J 110a printer.

    How to add a new custom paper size? I am using a HP Deskjet 1000 J 110a printer. I am using Windows XP home edition. The Custom option itself is not appearing in the process of selecting paper sizes in Printing preferences. I have installed this printer just today, but I bought it eight months back in Dubai. Could there be chance that since I purchased it in Dubai and I am using it in India, the software's not functioning properly. 
    Can you please help me with this problem immediately? Reply soon...

    Hi RajeshPujara,
    Please refer the link below to know the paper size supported by this printer.
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02231304&tmp_task=prodinfoCategory&cc=us&dlc=en...
    May I know the size of paper you are trying to print.
    Although I am an HP employee, I am speaking for myself and not for HP.
    --Say "Thanks" by clicking the Kudos Star in the post that helped you.
    --Please mark the post that solves your problem as "Accepted Solution"

  • How do I get OS X to ask printer for custom paper size

    I am printing postcards.  These are 1/4 of a letter sheet, or 5.5" wide x 4.25" tall.   
    I have a commercial grade HP Laserjet 4350, and I've configured that size in its custom menu for tray 1 (the envelope feeder tray). The printer is happy.
    I've also set a custom paper size in the MacOS, that I've called "Postcard Quarterpage" and I have that selected in the print dialog.  In fact I made it default.
    However, under Paper Handling, it says "Destination paper size: Suggested paper: US Letter" and this is greyed out.  If I check "Scale to fit paper size" which I Do Not Want, then I can pick a variety of sizes.  However my custom size is not in the list. 
    This happens on all applications, so it is definitely OS X Mountain Lion (latest patch).
    Anyway, the upshot is MacOS requests US LETTER size from the printer, so the printer goes "Take this postcard stock out and gimme US LETTER".    The printer can detect paper sizes.  If I try to give it postcards anyway, it blows an error and won't print, which is what it should do.
    How do I get OS X to tell the printer "Gimme 5.5x4.25" like I've instructed it? 

    Hi there Wolf!
    I have a couple of articles here that I believe will help you out with your question. First, here is an article with some information on custom paper sizes:
    OS X Mountain Lion: Manage custom paper sizes
    http://support.apple.com/kb/PH10748
    Note that in that article, it states:
    Custom paper sizes aren’t available for some printers.
    The reason for that is because this is controlled by the driver for the individual printer. You will want to make sure you have the latest version of the printer driver installed on your computer. More information on this can be found in the following article:
    Printer and scanner software available for download
    http://support.apple.com/kb/HT3669
    It might also be helpful to reset your printing system to see if that will resolve the issue. More information on this process can be found here:
    Mac OS X: How to reset the printing system
    http://support.apple.com/kb/HT1341
    Take care, and thanks for visiting the Apple Support Communities.
    -Braden

  • Photosmart C410: How do I associate a custom paper size with the photo tray?

    Our Photosmart 3310 recently broke down and I purchased a C410 to replace it.  I sell a small item online that I ship in 3 5/8 x 6 1/2 envelopes.  With the 3310, I had figured out a way to print the envelopes from the photo tray.  While Word 2007 allows me to select the photo tray, the printer would not print from there until I created a custom paper size in the printer preferences dialog box.
    One of the reasons I got the C410 was for the photo tray.  It's a real pain to have to swap out the regular paper and stick in one evelope every time I want to print another envelope.  Well, unfortunately, that's what I've been doing.  I select the photo tray in Word, but the printer goes right ahead and prints from the main tray.  I had forgotten what I did to make it work on the 3310, so I experimented with that printer's drivers until I figured it out.
    My problem is that the software interface for the C410 is different than that for the 3310.  I can't figure out how to associate a custom paper size with the photo tray.  To test my theory this evening, I told Word that my envelope size was 5 x 7.  The printer didn't hesitate to take an envelope from the photo tray.  Of course the return address went into a dark void because the envelope is not 5 x 7.
    The difference between the two interfaces is that the 3310 has both printing shortcuts as well as "Print Task Quick Sets."  The C410 only has printing shortcuts.
    If anyone can help me, I'll be very grateful!  I've probably spent hours trying to get this figured out, and I have no idea what to do.

    Hi,
    Which Microsoft product (application) are you using ? Printer supports the following custom sizes:
    From ADF: Custom-sized media (ADF) between 127 to 216 mm wide and 241 to 305 mm long (5 to 8.5 inches wide and 9.5 to 12 inches long)
    From input tray: Custom-sized media between 76.2 to 216 mm wide and 101 to 762 mm long (3 to 8.5 inches wide and 4 to 30 inches long)
    You need to select right custom size from the application.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How do I print on a greeting card in landscape when I can't save custom paper size?

    I have a J6450 running on XP SP3 with the latest drivers and patches installed.  I have greeting card stock measuring 6.5 by 10.0 inches and a Microsoft Word document with a custom paper size matching the that stock prints in landscape mode.  The printer error is "Paper Mistmatch.  Paper size or type is incorrect."  I have followed the suggestions on the HP support page, changing the Print, Properties, Features options to show "Other greeting card", but can't define a custom paper size to match the stock.  The Save option is not available.  What do I need to do to make this work? 

    Here is a link to a HP document for adjusting several settings that may help with your issue.
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01824353&tmp_task=solveCategory&cc=us&dlc=en&la...
    Dave M.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as Accepted Solution.
    I am an HP employee.

  • How to define custom event and how to trigger the defined event

    hi,guys
    hurry issue....................hope get help.
    I am using oracle weblogic 10gr3 portal.and we choiced java portlet.as of now,we got some question about custom Event.hope you can give some idea....
    thank you so much.
    question detail:
    1.for java portlet ,how to define custom event.
    2.how to trigger this event.
    3 about the data,may be sometime need to transit Biz data.
    auctully,I just want to implements between two portlets communicate.
    for example:
    existing portletA,portletB.
    portletA is a list,like:
    A AA <button>
    after I click this buttom,then portletB will be effect,it means they are interact with each other.
    does anybody hit this issue before,if you solved pls share me .
    thank you for you help....

    Hello,
    Please note that everything below applies to JSR168 portlets ONLY- JSR286 portlets and other portlet types handle events a little differently.
    From inside your JSR168 portlet you can send an event during processAction or when receiving another event by using the PortletBackingContext object, such as:
    import javax.portlet.ActionResponse;
    import javax.portlet.ActionRequest;
    import javax.servlet.http.HttpServletRequest;
    import com.bea.netuix.servlets.controls.portlet.backing.PortletBackingContext;
    public void processAction(ActionRequest actionRequest, ActionResponse actionResponse)
    HttpServletRequest httpRequest = (HttpServletRequest) actionRequest.getAttribute("javax.servlet.request");
    PortletBackingContext portletBackingContext = PortletBackingContext.getPortletBackingContext(httpRequest);
    portletBackingContext.fireCustomEvent("customEvent", "This is a custom event");
    To receive an event, in your .portlet file you just need to put in a "handleCustomEvent" tag specifying which method to call when the event is received, such as:
    <?xml version="1.0" encoding="UTF-8"?>
    <portal:root xmlns:netuix="http://www.bea.com/servers/netuix/xsd/controls/netuix/1.0.0"
    xmlns:portal="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0 portal-support-1_0_0.xsd">
    <netuix:javaPortlet title="Listening Portlet" definitionLabel="yourPortletName">
    <netuix:handleCustomEvent event="customEvent" eventLabel="customEvent" filterable="true" description="custom event handler">
    <netuix:invokeJavaPortletMethod method="processCustomEvent"/>
    </netuix:handleCustomEvent>
    </netuix:javaPortlet>
    </portal:root>
    Then, in your receiving portlet the method "processCustomEvent" would receive the event, such as:
    public void processCustomEvent(ActionRequest actionRequest, ActionResponse actionResponse, Event event)
    The event payload can be any Serializable object you want, but for forward-compatibility with JSR286 it would be ideal if it had a valid JAXB binding.
    Kevin

  • HP Envy 5530 - how do you add a custom paper size

    I'd like to add two custom paper sizes; Halfsheet (8.5" x 5.5") Portrait and Halfsheet (5.5" x 8.5") Landscape.  I create lots of invitations and thank you cards, and have been unsuccessful in figuring out how to add these special or "custom" sizes to my printer.  I end up taking my paper to a friends home to print them so I need to figure out how to remedy the problem.  Any help would be greatly appreciated.  I have Windows 8 if that helps.

    Hi there,
    Great question.  This document on the hp support site should get you started.  Once the page opens, click on the + sign next to Windows 8 and follow the instructions.
    Happy printing!
    Thanks!
    Tara
    **Although I am an HP employee, I am speaking for myself and not for HP.

  • I hooked my P4014n printer up to a new computer with windows 7. I defined my custom paper size

    I hooked my P4014n printer up to a new computer with windows 7.  I defined my custom paper size AND WHEN i PRINT TO IT IT PRINTS AS THOUGH IT IS TRYING TO USE LETTER SIZE PAPER

    See this <br />
    http://support.mozilla.com/en-US/kb/Recovering+important+data+from+an+old+profile

  • Problems with custom paper sizes in Lightroom

    Running Mac OS-X 10.9.3 (Mavericks). using an Epson Stylus Pro 3880, latest driver installed as confirmed by Epson tech support this morning. using Lightroom 5.4.
    I only see this problem in Lightroom -  not in Photoshop - which leads me to conclude that the problem is not an Epson-driver problem.
    The problem is the following:
    In the Print Module, I click on 'page Setup' bottom left. I define my custom paper size under 'Paper Size' -> 'Manage Custom Sizes'. Click OK.
    I then enter 'Print Settings...' bottom left adjacent to the 'Page Setup' button. Select my printer, click on the 'Layout' drop-down list box button and select the 3rd tab in the list: 'Paper Handling'. Here is the problem: the 'Destination Paper Size' option is grayed out and unelectable, and incorrectly shows 'US Letter', which cannot be changed. If I click on 'Scale to fit paper size', and try to make a print to my custom paper that way, it still does not work: it only prints on a fraction of the whole paper.
    I have also tried Apple menu -> System Preferences -> Printers & Scanners to change the default paper size there, but it makes no difference - it still incorrectly shows as 'US Letter' in Lightroom.
    This problem does not occur in Photoshop: In Photoshop, if you go to File -> Print in the menu, and then hit the 'Print Settings' button near the top, my custom paper size is selectable in the 'Paper Size' list box. So it is a problem which is specific to Lightroom.
    Any help appreciated. I have spent most of the day on the phone to Epson and Adobe Tech Support, and no-one has been able to dove the problem
    Thanks,

    I have had the same problem, and with the same result; Adobe Tech Support can't help or fix, after 15 hours on phone, Level 2 support. It is a software bug Adobe has, and can't seem to fix.  I just upgraded to Lightroom CC, and my problem migrated with the upgrade.  I print in Photoshop fine.
    If you found an answer, I would appreciate  knowing how to do it!
    Thanks

  • After installing Yosemite, my CS5 crashes when I try to set up a new custom paper size

    I tried to set up a custom paper size with CS5 but my system crashes with "an unexpected system error has occurred". I have tried a reinstall of CS5 and also the latest Java update.
    Eljay

    First of all, trash and refresh your Photoshop preferences.
    To re-create the preferences files for Photoshop, start the application while holding down Command+Option+Shift (Mac OS). Then, click Yes to the message, "Delete the Adobe Photoshop Settings file?"
    Note: If this process doesn't work for you while you're using a wireless (Bluetooth) keyboard, attach a wired keyboard and retry.
    Important: If you re-create the preferences by deleting the Adobe Photoshop CS6 Settings file, make sure that you only delete that file. If you delete the entire settings folder, you also delete any unsaved actions or presets.
    Reinstalling Photoshop does not remove the preferences file. Before reinstalling Photoshop, re-create your preferences.
    NEW Video! Julieanne Kost created a video that takes you through two ways of resetting your Photoshop preferences. The manual preference file removal method is between 0:00 - 5:05. The keyboard shortcut method is between 5:05 - 8:18. The video is located here.
    Mac OS
    Important: Apple made the user library folder hidden by default with the release of Mac OS X 10.7. If  you require access to files in the hidden library folder to perform Adobe-related troubleshooting, see How to access hidden user library files.

  • HP Officejet Pro 8100 ePrinter & custom paper sizes

    Have found all the helpful instructions about creating new custom paper sizes in Windows 7. But am complete novice & need to buy a printer for a charity. Settled on this model because of good reviews but most work will be 1 document of custom paper size. Need to know if the instructions given are fail-proof!! (Before i spend their money.)
    This question was solved.
    View Solution.

    Hello invqn,
       after having performed some detailed research, as well as installing the Pro 8100 (and other products) on a Windows 7 system, we determined the Pro 8100 doesn't support Custom Sizes:  that was by design and intent.
       Note that one of our engineer's proposed using a different set of drivers (from an older device) as a potential work-around, but this is unproven and may serve to limit your overall functionality of the device.
       However, we did confirm that a newer device that is currently out, the HP Officejet Pro 8610 (or 8620 or 8630) e-All-in-One, DOES support custom sizes; these are multi-function printers.
        Using the instructions in the link you sent, you can create new Forms with custom sizes and it will show up in the Printer Properties for you to use/select. It supports custom sizes from 3.00 x 5.00 in. to 8.50 x 14.00 in. 
       Our intent is only to provide information on what we know; you might take a moment and perhaps see if an HP Marketing representative might be able to give you more information, but that's what we have.
       We hope this helps....
    Regards,
    HardCopy (I am employed by HP) [If this was helpful, please mark this 'Solved' or 'Accept as Solution' so others can find this too]
    How to Give Kudos | How to mark as Solved

  • Problem with custom paper size on dot matrix printer

    Hi All,
    I'm using CR2008 with updated to SP2. I have a problem with custom paper size (W=21; H=14), the CR Viewer show report with custom paper size correctly but when I print it to a dot matrix printer (Epson LQ 300+) the content was rotated to landscape. If print to a laser printer the content was printed correctly. My report was printed correctly by CR10 or previous versions I got this issue when upgraded to CR2008. I aslo tested my computer and printer with orther application like MS Word the printing have no problem with custom paper size.
    Thanks for any advice for me.
    Han

    Looking at the Epson LQ 300+ driver, I see that the latest update is from 2002. In my experience, most matrix printer drivers are not unicode. Crystal Reports is designed to only work with unicode printer drivers. See the [How Printer Driver Options Affect a Report|https://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/a09051e9-721e-2b10-11b6-f9c65c64ef29&overridelayout=true] article, page 6 for details. Also, see [this|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] note.
    Finally, see if you can print from the CR designer to this printer and if you get the correct results here.
    Ludek

Maybe you are looking for

  • Error ITAB_DUPLICATE_KEY while executing DTP

    Hi Gurus, While executing DTP we are facing ITAB_DUPLICATE_KEY We gone through all forum regarding this error but we not getting the proper solution.   Please reply as soon as posible. Thanks & Regards, Kavita.

  • Need Help Upgrading Acrobat 8.0 to 8.1.2 on MAC

    I am trying to upgrade Adobe Acrobat Professional 8.0 to 8.1.2, but I'm having some trouble. I downloaded the Acrobat 8.1.2 Pro Patch Updater. When I open the icon, a window opens up that reads: "Acrobat 8 Pro Patch" is an application which was downl

  • Error creating accrual object in Mannual Accrual

    Hello Gurus, I am trying to create Accrual Object in Manual Accruals. After entering all the required data i entered "Check and Simulate " tab and i am getting the error message as follows: *Error in document: ACE $2 D6B510PCC* *Message no. RW609* *D

  • Can SQL Server Reporting plot the chart like this ... ?!

    Hi, As titled, thanks ...

  • Workflow Example Error

    Hi Expert, I've been trying to follow a very simple workflow tutorial but it stop at sending an email, here is the scenario 1. Workflow started, it asked to approve or not (there is no object, or anything like that just a simply decision activity) 2.