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.

Similar Messages

  • 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 for scan import

    Adobe Professional 10 - How to set the import paper size to letter or A4 (for example). The only option is automatic and it scans legal size. Normally the options would appear but I have no options other than "automatic".

    Moving this discussion to the Scanning & OCR forum.

  • I cannot select the Paper Size when I try to print with HP Photosmart B110a with Windows 8.1 64bit

    I cannot select the Paper Size when I try to print with HP Photosmart B110a
    The same printer was working OK with my old PC with OS Windows 7
    However I got a new PC with OS Windows 8.1 64bit
    I installed the new driver for HP Photosmart B110a that I dowloaded from HP site. Driver forWindows 8.1 64bit.
    In addition to not being able to chose the paper size, also when I go to Printer Properties in Options, all the characters are non-ascii.
    Do you know what may be the problem?
    Thank you

    Hello Nanu64,
    Welcome to the HP Forums.
    I see that you are having some issues when attempting to print from your computer.
    I also see that you stated that not all the options are available in the printing preferences options.  This could be because the installation was not complete or it failed.
    I suggest that we do a complete uninstall/ reinstall as well as some additional steps.
    First off, please make sure that you have the printer power cable connected directly to a wall outlet and not a power bar/strip. Here is a document that uses a LaserJet printer as an example but it is meant for HP products in general. Please click on the following link that explains the Issues when Connected to an Uninterruptible Power Supply/Power Strip/Surge Protector.
    If you have the printer connected to the computer with a usb cable, please remove the cable from both ends and leave it disconnected until further notice.
    The next link that I have for you will give you detailed instructions for Uninstalling the Printer Software.  Once the uninstall is complete, reboot the computer so that the changes take affect.
    When the computer is back up and running, please disable any firewalls or anti virus protection you may have running. We don't want anything getting in the way of the reinstall.
    The following download is the HP Photosmart Full Feature Software and Drivers.  Save this download to the desktop of the computer so that it creates its own icon.  This will make it easy for us to find when the download is complete.
    Double click the new icon and follow the installation instructions.  The installation will give you connection options (Wireless , usb or Ethernet), if connecting usb, please wait for the prompt to connect the cable.  Connecting the usb cable before hand can cause an issue with the installation.
    If the troubleshooting does not help resolve your issue, I would then suggest calling HP's Technical Support to see about further options for you. If you are calling within North America, the number is 1-800-474-6836 and for all other regions, click here: click here.
    Thanks for your time.
    Cheers,  
    Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    W a t e r b o y 71
    I work on behalf of HP

  • How to reserve the page size when exporting to MS Excel 2010

    Hello. I have a report which exports to MS Excel 2010. I applied the page size as legal in Crystal Report and would like to use the same page size in Excel
    However, MS Excel print preview says the page size is letter.
    How could I keep the same page size in Excel as I applied in Crystal Report. We have a lot of business reports and would like to avoid applying page setting manually in Excel when users print them out each time.
    Thank you.

    Hi Christine
    I am in the process of writing a doc on the different options in CR and the "No Printer" option sis one of those. Seeing this post, made me wonder as this looked like a questionable behavior. My testing does not support your observations. Now, I did a very simple test;
    Created a report, set "No Printer", set the paper size and legal orientation. Exported to XLS - any format, and the export maintained legal paper size in all instance. I did a few other variations, but I can never get the report to export anything other than Landscape.
    Can you  please let me know the version of CR you are using?
    You may also want to attach the report here with saved data (to attach rename the rpt to txt, then in the reply hit on the "Use advanced editor" link and attach.
    BTW.; I am using CR 2013.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • How to set the page size and the margins programatically

    Hello,
      I am working with crystal report XI Release2 and asp.net.
    One of my report is having 4 graphs in a single report.In order to display all the graphs in one page i have set  the paper size as A3.(Via Crysta report ->File->Page set up)
    But the page size A3 is not provided by all printers.So problem comes when the application is diployed on a machine which does not support A3 Printer.All the graphs will not be shown on a single page.
    Also Each and Every time ,when the application is diployed on a machine,user has to open the crystal report and adjust the page size accordingly to get all the reports on a single page.
    This is a kind of usability issue also.
    Is it possible to set the page size and the margins programatically say for eg 11 X 17.so that with out doing anything all the 4 graphs will get displayed on a single page ?
    Please let me know if you require more information regarding this issue.
    Thanks in advance.
    smitha.

    Hi Ludek,
    i could solve the issue by using the follwing code.
    report = new ReportDocument();
    PageMargins customPageMargin = report.PrintOptions.PageMargins;
    report.PrintOptions.PaperOrientation = PaperOrientation.Portrait;
    report.PrintOptions.PaperSize = PaperSize.Paper10x14;
    customPageMargin.rightMargin = 1;
    customPageMargin.topMargin = 0;
    customPageMargin.bottomMargin = 0;
    report.PrintOptions.ApplyPageMargins(customPageMargin);
    Thanks for you help.
    Regards,
    smitha.

  • Change paper size when printing

    How to change paper size when printing pdf? No option for paper size appear.

    That is a feature of AirPrint. If you do a Google search on "AirPrint paper size" you'll find documentation from major printer manufacturers. For example, this is copied from some HP documentation:
    What paper and media sizes are supported? 
    With AirPrint, paper and photo media sizes are automatically selected depending on the application you are using on your Apple device, your HP ePrint printer, and the region in which you are using AirPrint. You do not have the option to select different paper sizes.
    For example, from Apple’s Photo application, if the HP ePrint printer has a separate photo paper tray, AirPrint uses 4 x 6 inch photo media as the default paper size. If the printer does not have a separate photo paper tray, AirPrint uses letter-size paper. If you are printing from Apple’s Safaribrowser, letter-size paper is the default paper size in the US region, and A4 is the default paper size in Europe.
    AirPrint supports the following paper and media sizes:
    Letter
    Legal
    A4
    4 x 6 in photo paper
    A6 photo paper

  • How to change the paper type in printer settings?

    Does anyone know how to change the paper type in printer settings?  I'm trying to have the ability to change it to photo paper from Photoshop Elements.  I can't find the option in printer settings or through Elements.  I'm assuming I could save an additional printer setting for photo printing, but can't find how to even select a different paper type.
    thanks!

    It would help to know which OS you are running as the answer will be different if it's Lion or the previous OS's. You are not running iOS 5.0.1 on your MacBook Pro so provide the correct information.

  • Hi, I am using Indesign CS6, How to set the page size in Inches.

    Hi, I am using Indesign CS6, How to set the page size in Inches.

    All fields in InDesign can be entered in any measurement system. So, if you want to make an 8"x10" document and go to File>New Document and the window looks like this:
    …you can type either 8 in or 8" into the Width field like this:
    …and when you move to the next field, it will convert the eight inches into the equivalent number in the unit of measure that it is using at the moment, like this:
    … (203.2 milimeters is the same as 8 inches). You can also enter a different measurement unit into other fields once the file is created, such as the width or height of a frame, or the position of an object in the X and Y coordinates.
    If you would rather just work in inches instead of having to type the inches mark or abbreviation, go to InDesign>Preferences>General and select the Units & Increments tab. There you will see Ruler Units for Horizontal and Vertical at the top of the window. Set them to Inches and all of the fields will display in inches. If you do that to an open document, you will change the unit of measure for that document. If you do it while no documents are open, it will change the unit of measure for any new documents you create. To change the unit of measure for existing documents, you will have to open each and make the change.

  • How to set the fix size jframe window

    when I run the jframe ,the jframe window size is very small
    1)how to set the fix size jframe window??
    2)how to set the jframe cannot change the window size??
    thx~~

    1. You can set the size by calling JFrame's method setSize. There are two versions of this method: (1) setSize(int width, int height) and (2) setSize(Dimension d). Note, that when you use this method to set the frame size, you don't have to call JFrame's pack method.
    2. JFrame has a method called setResizable(boolean resizable) which you can call with the argument false.
    Without any ill intent, these questions are regarding something that is very easily answered by looking at the documentation for the JFrame class. I suggest to anyone working with swing to at least look briefly through the base classes they're extending before giving up. In my experience it is always more gratifying to figure things out on my own than asking someone. But please don't take this the wrong way, I respect people who seek out help in order to further their knowledge, instead of just giving up.

  • How to set the screen size with nested Iview screen

    Can someone show me how to set the screen size with nested IView  screen.
    at the moment i only try it with trial and error untill it looks somewhat close. Is there a property in VC to set the size for Height and width.
    The same question is for the form. the form elements inside the form is easy but the actual form is still a challenge.

    Hi,
    Yes you are correct ,Still the Form and iview are not able to change thier Layout Structure using a Propery.
    it is available with VC7.1
    Govindu

  • How to set the frame size?

    Hi,
    Can some one show me how to set the frame size in this program? History: I have created a window and added a button but its to small. So I want to increase the size of the frame to at least 600X400 pixel.
    private static void showGUI() {
            //Create and set up the window.
            JFrame frame = new JFrame("ButtonDemo");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Create and set up the content pane.
            Main newContentPane = new Main();
            newContentPane.setOpaque(true); //content panes must be opaque
            frame.setContentPane(newContentPane);
            //Display the window.
            frame.pack();
            frame.setVisible(true);
        }It would be nice if you could show me how to do it.
    Thank you very much for reading this.

    Challenger wrote:
    Simply adding
    frame.setSize(new Dimension(600,400));to the end of your code should work perfectly.Or, if you want to do it correctly, .setPreferredSize() on your frame before you .pack() it. The default layout manager for JFrame is BorderLayout, which uses the preferredSize of each component to calculate sizes during the .pack() call.

  • How to set the page size

    Hi,
    How to set the page size of a B tree node in berkeley db java edition?
    thanks.

    The two systems have different performance characteristics. If you are concerned with the performance characteristics, then the best way to tell is to benchmark them.
    By the way, both BDB and BDB JE are B-trees.

  • How to set the Font size of Label?????

    Hello everyone.
    I want to knoe how to set the Font size of the Label???
    Please help..
    Thanks a lot.
    Gloria

    Label myLabel = new Label("Hello World");
    //Font(String name, int style, int size)
    myLabel.setFont(new Font("Arial", Font.PLAIN, 12));

  • How to set the minimum size of the JDialog.

    Hi Could any one tell me ,
    How to set the minimmum size of the JDailog.
    I am using the JDialog's setMinimumSize(...)
    But it is not working.....
    Regards -
    Vikas Kumar sahu

    That's pretty much all there is, although you could always add a componentlistener and manually not let the size go below your minimum.
    Or you could try overriding setSize...

Maybe you are looking for

  • How to use another SIM card with my AT&T Iphone

    I have to go in france and use a French office' sim card from another provider than AT&T. But here, I've got all my professional, and private, mail box and conatct on it. How have I to do in order to use this other sim card in my Iphone? I don't want

  • PSE5 organizer on Windows 7 64-bit hangs on one catalog

    Okay, I know using PSE5 on Win7 64-bit isn't officially supported, but a lot of people seem to be having success. I'm migrating from XP, and backed up my catalog of 17000+ pictures.  When I installed PSE5 (and 5.0.2 patch) on Vista 64-bit, PSE restor

  • PCI6602

    Helo, plz help me in installing counterpallets for PCI 6602..I was working in LV 6.1..somehow some programs are opened in LV 7.0 and after that i couldn't drag DIO pallets displaying the error "version 7.0 is newer than 6.2.".how i can I get out of t

  • VXML on the AS5350

    I am implementing an IVR system using the AS5350 and I am sure that I will have a bunch of questions about the details of the implementation of the VXML 2.0 spec within it. Is there an active forum other than this one that is set up to address this?

  • 1.71 GB free out of 159.18 GB???!!! HELP!

    How can i get rid of this?!!! i dont understand how this even happened...could it be because of the software upgrade(icloud)?...my computer is really slow now and i keep getting pop up notices saying "your start-up disk is almost full, delete files"