Regarding paper size setting of printer programatically

Hi Experts,
              i developed a classical report with
  no standard page heading line-size 255
                                                  line-count 58(0).
  it is working fine, printing the report in landscape,now client is expecting that report should print in Legal Size (8 1/2" X 14").
i need to handle his programmatically.
if some one went through same situation, pls respond.
Thanks in advance
Points will awarded, for each valuable reply.
Regards,
Pavan

answered

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.

  • 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

  • How can I select paper size while in print preview ?

    I have a printer with four different paper trays, and each one is loaded with different size of paper: A3, A4, Legal, envelopes. When I use IE 11, I can easy go to print preview, click on page setup (little gear icon), select paper size , margins, etc.. there, and when i hit OK, the page is adjusted to the settings I selected and its ready to print, and printer selects the proper size of the paper automatically
    In Firefox v32, I can almost do this same, but I'm stuck with printing only on A4 style paper, as I don't see where to select the paper I want to print on !
    I tried to select A3 and legal paper in the printer driver, but then firefox used the selected paper, but printout on the paper came out as set to A4 size, and rest of the page was empty ! Also I was not able to see the page preview of the selected paper either. How do I then print on other size papers than a4 ?
    I found only one workaround which does not suits my needs but works: First: Go to printer driver and select legal or A3 paper as default, and then open firefox. If I do that i can print on any paper I select, but thats a horrible workaround, because then I often forget to change the default paper size back inside the printer driver, and i print my documents on wrong paper, wasting paper, ink and time...
    Please let me know if there is a way to fix this printing feature somehow.
    Thanks.

    MichalB,
    Sorry, IMO there is no real "fix" for what you are experiencing. Printer prefs set or changed in the operating system won't affect Firefox printing ''[IMO, either ancient code in Firefox or a "cross-browser thing".]'' Firefox has its' own settings for prefs and it defaults to the "last used" for all printer preference setting. And there is no way to set a pref as "use now and return to my defaults after this print job is completed".
    As you have found out, there is no way of changing paper size from the Print Preview screen. Other prefs - Margins & Header/Footer can be changed via Page Setup and you can see changes in the Preview window, but not for paper size. As ''CoryMH'' mentioned, '''paper size''' is selected thru what called the "native print dialog" box using the '''Properties''' button which shows a window provided by your printer software for the Printer which is selected in the "native print dialog" window, and accessed after you hit the Print button in the Print Preview screen.
    Problem is that you can't '''"preview"''' what is going to be printed when you change paper size. If you go back to Print Preview without printing from the "native print dialog" the change for Paper Size isn't saved for viewing in Print Preview!
    IMO, it would be nice if Firefox recognized each "tray" as a separate printer, so that a user could set Margins & Header/Footer prefs AND paper size per tray. IOW, a feature sort of writing a completely new print module that would reflect "today's" environment with multiple tray printers; rather than to continue using the print module that was built by Netscape back in '94 - '95, which we are stuck with almost 20 years later.
    ''As I sit here shaking my head after composing this reply, wondering why the issues I had back in 2002 with printing from Firefox / Firebird / Phoenix haven't been corrected in the last 14 years.''
    ''I do like "old stuff", and have a vehicle sitting my driveway that rolled out of the showroom 30 years ago come October 1 - a 35th birthday present I purchased for myself. [85 Corolla GTS TwinCam coupe - aka Sprinter in GTA] But as far as computer software, I prefer it to be compatible with hardware made in this century.''

  • Printer doesn't save paper size in saved printer setting

    I have saved an A3 printer setting with the paper size as A3 but it always load the dafult paper size (A4) even when I load my A3 setting. Am I doing something wrong?
    Canon iR ADV C2020 with the latest driver on 10.8.4

    Try holding the Option key and selecting Library from the Go menu in the Finder. Then go to the Preferences folder in the window that opens, and locate the file or files that begins with "com.apple.print.custompresets," and move them out of this folder (e.g., to the trash). After this, log out and back in to your account, and then try setting up your preset again.
    You might also remove the file "com.apple.print.printingprefs.plist" since this is involved with what presets are picked.

  • When I try to set up a new paper size prior to printing,  PS crashes.

    I am using PhotoShop CS5 on a Mac with  OS 10.10.1.
    When I set up a custom paper size in print settings, PS crashes
    Any advice please? Les

    Of course that should read imap not iMac.
    Thanks in advance.

  • HP Officejet 7500A Wide Format - Can't reset the paper size - won't print!!!

    I have a new HP Officejet 7500A Wide Format All-in-one printer.  I love it and have had no problems with it...until now.  The other day I went into Photoshop and printed a 4x6 photo and now my printer will not allow me to print on 8.5X11.  I have checked the paper size in Photoshop, Word, Excel, Acrobat...everything I used that day, but it all shows "letter" size paper in the properties.  I also checked the printer utilities...letter size paper is selected.
    But when I try to print, the printer and the computer both give me a "paper mismatch" error and my only option is to change the paper or cancel.  I went back into photoshop again and was able to print a 4x6 photo again - once I put in 4x6 paper - but then I changed it back to an 8.5X11 size photo sheet and tried to print on letter size paper and..."paper mismatch'.
    I changed the printer back to factory settings.  Nothing.  I just had to reset up my printer on my network, but it still won't print.  I tried to re-install the printer software from the installation disk, but it won't install.  It says "already installed".
    HELP!!!!!!  I honestly don't know what to do at this point!!!!!
    Thanks in advance!!

    I have struggled with a similer problem with my new 7500A.  I've done all the things you did. I made sure I had all updates and the firm ware update. I spent time on the phone with a lady who meant well but clearly didn't know the product. I had a difficult time communicating with her. Her accent was in the way. This morning I realy didn't want to face another day of this struggle.  As I walked into my studio I had a idea. Instead of going to the computer to try to solve my problem through menues, HP Customer Service and or communities. I went dirrectly to the printer.  I turned the printer on, the little screen on the printer lit up I touched the arrow to go to the next screen of menus. I touched "Set Up"  then scrolled down through the choices. I picked "Preferences". At the bottom of the list was.............. Media Width/Type Sensing (ON)............I promptly turned it (OFF) ......................I am printing as I was told I would be able to do prior to buying. I am not getting that anoying screen  "Paper Mismatch" . The printer is printing now on my 12 x 12 stock regardless of the type. ie: cardstock, plain paper, colored paper, construction paper. I hope this helps some of you out there.  Clearly HP was of "NO" help to me. I have read that others are installing HP 7000 drivers etc.  I've solved the problem without going to those lengths, no thanks to HP.

  • Lost ability to change paper size in Lexmark Printer Pro901

    I have been using a Lexmark Pro901 printer. Up until now I would hit the "print setting"button and I could then select paper size, type of paper, etc.  I have now lost that ability.  Lexmark says it is a photoshop problem ( the printer works fine in other programs). I have updated all the drivers,etc in Photoshop CS5 ver. 12.0.4x64.  Any help would be appreciated.

    OK, I seemed to have fixed the problem. Since I had to make some prints over the past few days, I sent my images from Lightroom to Photoshop CS4 for printing. In Photoshop, I saved my paper settings in the printer driver, selecting the proper paper type and ink level, etc.
    Now that I went back to Lightroom, that saved setting shows up in the printer driver dialog (as it should) and I can now select the Paper Type/Quality for any print jobs in Lightroom! No more missing options in the printer dialog!
    All this makes me wonder if there was a corrupt file related to the printer driver that Lightroom could not understand, which led it to miss out some options. Now that I saved a set of options in another program, the file is now parsed correctly???? Just a guess.
    Dave

  • Change paper size before selecting print preview

    I want to change Paper Size prior to selecting Print Preview. That is not possible in Firefox. Can Paper Size options be added to Page Setup and/or Print Preview? Please fix.

    You might be able to set that thru your Printer Preferences, so look there from within Firefox first. {Ctrl + P} then hit the Properties button, on the Paper Tab you should be able to set the Paper Size.
    If not, give this a try:
    type about:config in the URL bar and hit Enter
    Pref Name = print.printer_your_printer_name.print_paper_height - 11.00
    and print.printer_your_printer_name.print_paper_width - 8.50
    Is that what you see? If you see those "Letter" measurements, try re-setting the main pref, and let Firefox reacquire the info from your OS.
    in about:config
    Preference name = print.print_printer
    Right-Click and select Reset, then restart Firefox.

  • Since upgrading to LR 5.6 I can no longer change paper sizes for user print templates.

    The print preview window shows the new size laid out properly but the printer feeds only the size which was used to create the preset resulting in clipping if a larger paper and cell size is invoked in page setup or xs white space if a smaller is invoked. OS X 10.8.5, Stylus pro 7890. REINSTALLED PRINTERS AND DRIVERS, DELETED AND REPLACED LR PREFERENCE FILE, Other aps print ok. I

    While the problem is unsolved I have found a workaround. If I use the "Printer" button (lower far right) and print from the printer dialed pop up custom paper sizes chosen in the "page setup" are honored and the layout  prints as shown in the LR print preview). On the other hand, If I print using the "Print" button the printer feeds only the paper size chosen when creating the preset.
    Bob H

  • Different paper size -- Officejet 6500A printer

    With another printer whose make/model shall remain nameless, I was used to printing on just about anything of any size (post cards, christmas cards, etc).  Can't do so here which is very frustrating.  Help please.

    Page format doesn't automatically pass the page size to printer. Printer code to set page size need to be there on the initialization secion of page format under corresponding device type (SPAD).

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

  • I have a MacBook Air and for what ever reason, the print settings have gone out of whack. I am not sure how to set to print a normal A4 paper size or a standard envelope. These settings were working O.K., but not now

    I have a MacBook Air and for what ever reason the print settings for envelopes and normal A4 paper size changed from printing correctly each time I wished to print. Now, each time I wish to print either, I have to rest paper size and or Envelope vertical or horizontal. Can anyone assist with how to reset in order to print correctly without the need to rest each time please?

    Log in to the Developer forum. You will find instructions on how to install the lastest beta. Your problem is the beta you have installed has expired. All of them did on October 5; you will find hundreds of threads discussing this. If you have a beta it is assumed that you will continue as a beta tester, so a simple update using iTunes will not work.
    If you no longer want to be a beta tester install the GM 7.0.2 by restoring from iTunes using DFU mode.

  • How do I set a default page size, orientation, and printer for a particular document in Pages?

    I have a simple label document in Pages which I print to my label printer. The label is 1.49 x 3.47 inches and needs to print in Landscape, and it needs to print to my Dymo label printer. How do I set up the Page Setup or Print Setup so it defaults to this document size, orientation, and printer, every time, without me having to manually enter those settings every time?

    Thank you for your reply. However, I could not get Templates to work correctly for me.  Following your instructions, I opened my document, opened Page Setup, set the printer, paper size, orientation, and printed a copy to make sure it was right. Then I re-opened Page Setup to verify that the settings were still correct. Then I saved the document as a Template. Then I found my template in Pages, opened the template, and tried to print. The first thing I noticed was that the template did not remember my printer. Then I set the printer, and printed, but I found that the template also did not remember the page size or the document orientation. So, did I miss a step here? Lion 10.7.5 and Mac Mini.

  • Can I programmatically change the printer paper size from ActionScript?

    Hi,
    I'm a newbie Flash/ActionSript developer and I have been searching for answers for a while with no luck. I wonder if I can get some pointers from this forum.
    I'm trying to programmatically print a movie clip to 8.5" x 11" plain paper regardless of the current paper size setting in the printer. e.g if the user's printer is currently set to use paper size A4, can I change the setting to Letter (8.5" x 11") from ActionScript at runtime? I use PrintJob class for printing the movieclip.
    According to the ActionScript online API spec ( http://www.adobe.com/livedocs/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context =LiveDocs_Parts&file=00002066.html), I can only READ the paper size setting after the call to PrintJob.start. I can't believe that we are not allowed to change the setting. Maybe I missed something here. Can somebody help me out?
    Thanks in advance!

    check your duplicate thread.
    and, please don't cross-post.

Maybe you are looking for

  • Change Max.no.quants in IMG but in database does not update.

    hi, I have an issue about reducing Max.no.quants in warehouse management. I defined putaway strategy P for Storage type definition. Then I changed Max.no.quants from 5 to 2 in Division of Storage Bins into Sections (IMG) and assigned Bin section A =

  • Places doesn't show the map

    I recently did the operator system update, and i put all my iphoto folder in an external hard drive. After passing everything back to my MBP, iphoto doesn't show the map in places. I do not know wht I did wrong.

  • Search Bar to be included in website

    I want to add a search bar to a website which searches the site and lists possible results. I know you can get search bars from Google but my client won't want to include the Google logo or any reference to them. Can anyone point me in the right dire

  • NO 3G SERVICE AFTER 2.1 UPDATE!

    Now, everytime I click on "enable 3G service" it says No Service on my screen. Has this happened to anyone else? Is this normal? And is there a way to fix it?! Thanks.

  • Custom JSF StateManager

    Hi Is there any commercial Database StateManager that store the views and views state in the database instead of session or detailed tutorial for creating custom StateManager any help will be appreciated Thanks you and have a good day. Tarek Helmy