Unable to Set Custom Paper size setting of 15 (width) x 12 (Height) using J

Hi,
     I am unable to print the report using the custom paper size setting of  15 (width) x 12 (Height)  with printer friendly fonts so that we can print on Line or dot matrix printer.
     This problem is not solved from last 3 months and we dont get help anywhere.
     We are using Java with Crystal Report XI R2 design for the same. 
                       ITable table=null;
DatabaseController dbCtrl=null;
ReportClientDocument oReportDoc=null;
try {
String reportName=fileName;
oReportDoc=new ReportClientDocument();
oReportDoc.open(reportName,0);
dbCtrl = oReportDoc.getDatabaseController ();
rs=ad.sqlStringBigST(query);
table = dbCtrl.getDatabase ().getTables ().getTable (0);
dbCtrl.setDataSource (rs, table.getName(), "Runtimeres");
Object oreportSource=oReportDoc.getReportSource();
IReportSource reportSource=(IReportSource)oreportSource;
PrintReportOptions printOptions = new PrintReportOptions();
printOptions.setPrinterName("EPSON FX-2175 ESC/P");
printOptions.setPaperSize(PaperSize.useDefault);
options.setPaperSource(PaperSource.manual);
oReportDoc.getPrintOutputController().printReport(printOptions);
} catch (Exception e) {
System.err.println(e.toString());
Please let me know what is the solution for the same.
Regards,
Raj

Hi,
    Yes i can understand that you need to first understand the root of the problem to give me the solution.
    I am here to answer to your questions until you understand what is the problem.
    Yes if i set the standard page size which are given in API doc , it sets up the page correctly.
    Following page size as given in the API doc works fine.
    http://devlibrary.businessobjects.com/businessobjectsxi/en/en/RAS_SDK/rassdk_java_api_doc/doc/rassdk_java_apiRef/com/crystaldecisions/sdk/occa/report/document/PaperSize.html
   It is rejecting the custom paper size and custom fonts (which in my case are printer friendly fonts).
Regards,
Rajshekhar SIpoy

Similar Messages

  • Customer paper size setting 8.8 in (width)x 5.5 in (height) print out

    Hello, Expert
    I have a question print out paper size that is a customer paper size setting 8.8 in (width)x 5.5 in (height) in Dot-Matrix printer,
    When print out that orientation from protrait to landscape.
    I used CR2008 and upgrade to SP4.
    Hope anybody help me
    Thanks.

    Hi,
    --you just go to file menu and select 'Page setup' option, then it will display new window.
    --In this window you will select the Orientation as 'Landscape' and in page options please specify your required page heigth and width in'vertical' and 'Horizantal' boxes. Then it will display your required page format.
    Thanks,
    Naga.

  • 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

  • HP Laserjet M401A could not set different paper size and tray on printer properties

    Good morning all. I'm experiencing a issue setting custom paper size and tray in this printer properties. I would like to set up three different printers, on the same port, to print directly on a specific tray (without enter the printer properties and select the proper tray and size). I have this printer with the additional third tray. I have set up A4 in tray 1 (bypass), custom size in tray 2 and 3 on the printer. When i enter the printer PROPERTIES i want to set up set custom paper size in tray 2 and 3. No way.The only sizes i can see is 13x8, a4, a5, letter, legal, and so on (there are maybe 7 choices). So i choose NOT SPECIFIED. When i go on printer PREFERENCES, i can set up my custom paper size.But when i choose my custom paper size, the tray 2 and 3 go away and i can only choose bypass or tray 1.If i set up A5 (for example) the tray 2 and 3 re-appear. How is it possible? where i am wrong? Many thanks, any help would be appreciated.Cheers,Luca.

    I have done extensive research online and looked for relevant posts in other forums, plus I downloaded a LaserJet 4L service manual. The verdict: A common cause of this no-power problem is a faulty DC controller board, blown fuse(s) on it, or other circuitry glitch. I am sure that the paper tray is inserted correctly.
    So I decided to cut my losses (I'm not inclined to pull the printer apart to try to fix it--it's not worth my time) and tossed the printer. It's not cost-effective or time-effective to spend a lot of money or time to resuscitate old hardware, except perhaps as a learning exercise.
    I consider this thread now closed.

  • Portrait printing problem on custom paper size

    Hi,
    i want to print on custom paper size - 500x700mm, but cant set custom paper size straight in Illustrator, only in printer driver. When I set it up and print file, all shapes are smaller on print than in file! Same thing happens with 320x450mm size. After some searching i tried to print it in landscape (wider side in printer) and everything is ok!!! but when i get back to portrait it is all smaller again :/
    On pre-intalled A4 size everything is ok.
    Can anyone help me, i want to print on 700x500mm but my printer is only 600mm wide ;/
    Tried to change any possible fit, resize and rotate option throughout app, system and in printer with no success.
    Specs:
    Mac OS 10.9 (Retina MBP 15)
    Illustrator CC and CS5 (tried on both)
    HP DesignJet 510 (CH336A)

    Yeah, HP tech support is iffy at best.
    I think you're on the right track.
    I don't think the issue is Illustrator. In my experience, the Art Board feature is exactly what is warranted for custom page sizes.
    I also wouldn't think it is an OS issue, as the drivers need to conform to OS development rules. If the driver "says" it can do it, it SHOULD do it. If it doesn't, that's not the OS's fault.
    In cases where you're trying to go "outside" the page-size presets of the printer driver, this is where people encounter problems, which is why I think the issue is the print driver. My solution has been to use an existing page-size preset, and hand-trim after printing. But in quantity prints, this becomes a pretty serious problem.
    One other thought. Someone else on this forum found that they could use custom page sizes (with certain printers) if they always fed the paper in its "tall" position, rather than feeding it in "wide." This might require you to rotate artwork in ai, I'm not sure. But it's worth a try in attempting to get your custom page size to print properly.
    Good luck.

  • Is it possible to use an AppleScript to set a *custom* paper size in Word?

    I've used the following script to set the paper size in Word:
    tell application "Microsoft Word"
              set paper size of page setup of section 1 of active document to paper a4
    end tell
    but I've been unable to write a script to set a custom paper size -- does anyone know if this is possible?
    Thanks!

    The gallant Pierre strikes again!!!  For reasons having to do with a quirk of working with Word documents coming from a Windows machine, I ended up having to go the UI route, but I couldn't have done it without you!  I actually ended up changing the Format For: popup menu instead of the Paper Size: popup menu, but this technique could be used for those who wish to chose a custom paper size:
    tell application "Microsoft Word"
      activate
    end tell
    tell application "System Events"
              delay 0.5
      keystroke "a" using command down
              tell application process "Microsoft Word"
                        click menu item "Page Setup..." of menu "File" of menu bar item "File" of menu bar 1
      delay 1
      click pop up button 3 of window "Page Setup"
      keystroke "Any"
                        delay 0.5
      keystroke return
                        delay 0.5
      keystroke return
      delay 1
                        click menu item "Print..." of menu "File" of menu bar item "File" of menu bar 1
      delay 1
                        tell menu button "PDF" of window "Print"
      click
                                  click menu item "Create Booklet" of menu 1
                        end tell
              end tell
    end tell
    Again, Pierre -- many thanks!
    Andrew

  • Setting new measurement units for custom paper size

    How do you convert from mm to inches when you're setting a custom paper size?

    The OS X calculator app has its uses too. Key in the value you want to convert from, and press enter, then choose Calculator > Convert > Length.

  • Needs steps for Printer setting for User-customized Paper Size

    Hii
    I need steps for Printer setting for User-customized Paper Size
    for my requirement i hav to design this for a paper which is 9cm length and width 23cm and printer is Laser printer
    Thanks
    Ravi

    Hi ,
    Kindly send me materials regarding printer configuration , I need to confiure a printer .Kindly help me.
    My ID  is rakeshhaari at gmail dot com
    Regards,
    Hari

  • 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.

  • Photoshop crashes when i try to manage custom paper sizes through printer setting

    i have recently updat my imac to Yosemite, now i cannot update my custom paper sizes without photoshop crashing, Any Idea's? The printer i have is a epson 4900

    What version of Photoshop are you using?  Have you installed all the updates?
    And have you contacted Epson to see if they have updated drivers that work with MacOS 10.10?

  • Konica Minolta magicolor 7450 Unable to print to Custom paper sizes

    Hi
    I have a Konica Minolta magicolor 7450 laser printer that (since switching to mac from windows) is unable to print to Custom paper sizes (entered in the print dialog box from within photoshop CS3) and nothing will print from illustrator CS3 at all.
    I have OS 10.5.2 with the 10.1 photoshop update, and the 13.0.2 illustrator update.
    When I use to use windows xp & photoshop CS2 I didn't seem to have trouble with this function, but since jumping over to mac & CS3, I can't print on any paperstock other than the defult sizes listed (which it dose perfectly) - I've re downloaded & installed the printers driver, downloaded & installed a firmware update for the printer and tried printing with a network cable & usb cable - all with no luck. I've also tried entering in the custom paper size in the printers LCD panel & setting in as default but it still wants to print on A4 or A3 paper...
    Any ideas out there would be appreciated!

    so I've been pulling my hair out for 2 days & nights now trying to figure out why I couldnt print on custom paper sizes - I've just now hit the "help" icon in the print dialog box and found this:
    "Creating a custom page size
    If you want to print on unusual size paper, such as an odd-size envelope or card, you may be able choose the paper’s size from the Paper Size pop-up menu. To find the Paper Size pop-up menu, choose File > Page Setup, if available. Otherwise, choose File > Print.
    If you can’t find the size you need, you can create your own custom paper size.
    To create a custom page size:
    Open the document you want to print.
    Choose File > Page Setup, if it’s available. Choose Page Attributes from the Settings pop-up menu, and then choose Any Printer from the Format For pop-up menu.
    Choosing Any Printer ensures that your document can print on any printer that supports the paper size you select.
    If Page Setup is not available, choose File > Print.
    If the Print dialog contains only two pop-up menus and some buttons across the bottom, click the disclosure triangle beside the Printer pop-up menu.
    Choose Manage Custom Sizes from the Paper Size pop-up menu.
    Click the Add button.
    Type a name for the paper size.
    Enter values in the Paper Size and Printer Margins field."
    All I had to change was the "any printer" setting from my (konica minolta) printers name to "Any Printer"!! now my custom paper sizes are printing fine and dandy!! phew!!!!!!!!

  • Set custom page size for printing

    I want to set a custom page size for printing some PDF three and four-page musical scores to roll paper on an Epson 1290 using Adobe Reader 9.3.4 on Ubuntu 10.04. The printer properties in the print dialog has a media size option, and one of the choices is "custom", but having chosen "custom", the dialog does not allow me to add the actual page size to the lpr printer command. I can see that when I choose "custom", the lpr command is
    lpr -P Stylus-Photo-1290 -o PageSize=Custom etc
    but what I need for a three page output, for example, is
    lpr -P Stylus-Photo-1290 -o PageSize=Custom.297x630mm etc
    and I can't see how to add the actual custom paper size. If I Ok the media size choice dialog with it just set to PageSize=Custom, I can see from the output preview in the print dialog that the actual page size that has been chosen is letter. The online Adobe doc for Reader 9 printing (http://help.adobe.com/en_US/Reader/9.0/content.html#heading2.3) says "For documents that are larger than the standard page size, go to File  > Page Setup.  Create a custom page size before you print your  document". The problem with that is that there is no "Page Setup" option on the File menu in the Unix version of Adobe Reader, only a "Print" option, which is where I already am.
    If I open the PDFs in Evince, it allows me to add the custom page sizes I want, but as Evince doesn't have the option to print multiple pages per sheet I can't use it either...

    Yes, it used to work, and the resize zoom bar used to work too (now its grayed out). I don't know if this is a "who's to blame for it" thing, but its not getting fixed and its pretty bad that no one seems to care enough even to respond. I found my own solution by opening it in Gimp. Just right click and select open with other ...Gimp and it will import into it. In the Gimp Print dialog, you have a scaling percentage in the "Page Setup" tab, and size settings in the "Image settings" plus loads of other stuff including multiple copies.

  • How to Set the Paper Size in Smart Forms

    Hi Friends,
                     I need to SET the Paper Size to default A4 in a smart form...and in some other case we need to set to other type 8.5 X 11...How can i set it....?

    Moving this discussion to the Scanning & OCR forum.

  • How to set the paper size when printing to postscript...

    I need help in setting the paper size in the PrintPreference when using either the Postcript File or Adobe PDF printer to generate ps files.
    Here's what I am doing (in c++) and I seem to be getting only 8.5x11 no matter the document page size:
    LPDISPATCH p_Dispatch = Document.DocumentPreferences();
    p_Dispatch = Document.DocumentPreferences();
    if(p_Dispatch)
    DocPreference docPreference(p_Dispatch);
    pgOrientation = (idPrintPageOrientation)docPreference.get_PageOrientation();
    pageW = docPreference.get_PageWidth();
    pageH = docPreference.get_PageHeight();
    paperSize = docPreference.get_PageSize();
    docPreference.ReleaseDispatch();
    p_Dispatch = Document.PrintPreferences();
    if (p_Dispatch)
    { PrintPreference printPreference(p_Dispatch)printPreference.SetPrinter(idPostscriptFile);
    printPreference.PrintFile(outfile);
    printPreference.SetPaperSize(paperSize ); /*I have also tried idCustom but it crashes with invalid parameter for the object type.*/
    printPreference.SetPaperWidth(pageW);
    printPreference.SetPaperHeight(pageH);
    VARIANT vprinterPresetType;
    vprinterPresetType.vt = VT_I4;
    vprinterPresetType.lVal = CInDesignApplication::idCustom;
    Document.PrintOut(FALSE, vprinterPresetType);....
    So how do i pas the document paper size to the print preset or preference?
    I appreciate your input.

    Moving this discussion to the Scanning & OCR forum.

  • Custom Paper Size in Page Setup grayed out and cannot be selected.

    I am playing with the iWork '08 demo and looking at Pages. I need to create an 8.25 x 10.5 custom paper size, which I did, but when I try to select it in Page Setup, it is grayed out. If I open a document made in the previous Pages that was done using this size, it still works.
    Any thoughts?

    I'm having this same problem as well. I'm trying to set up my page size to B5. I create a new custom size with B5 dimensions in the Page Setup screen but after I save it, I'm unable to select it as my page size.
    Thanks for the help.

Maybe you are looking for