Printing fit to page: how to capture it to drive printing of the Printable

The print dialog allows through the properties button to set document to fit to scale. I am not clear how to capture that either as a PageFormat or a PrintRequestAttribute. Any pointers on this?
Thanks

The Problem with fit-to page and HTML is that it is not working. HTML is not a Pageoriented design like PDF. There are a lot of strange things to take care of, if you want to print html in that way that a Browser recognizes the Layout and prints it correctly. The easiest way is to let a external tool (like Html-toPdf Converters or export to Excel)perform the conversion to achieve a good printing result. Excel has a excelent Print engine. But it is a lot of effort to create the excel format in Office XML Style. I created an external Windows service which can convert HTML to Pdf. Together with 2 new items which offers Pagesetup and Pagebreak options in the WAD. The User can choose print out of the contextmenu, which calls the windows service on the Application server, and returns the PDF file in separate window. Afterwards the user can print with acrobat reader.
FROM my opinion it is really difficult to transform the html in good looking way. for example. You have a large table with more than one Characteristic in the drilldown. If you now want to transform the html, it is difficult, because the Tablecells uses row and colspans, which are not breakable. and so. Also you have a problem with header an footers.
Also you have a problem with printing if you make us of the broadcaster. The user who receives the html-files cannot print them, and also he can't call the helpservice, because he is offline...
best regards.
Kai Wachter

Similar Messages

  • When you have a list or blog within a box on a page, how do you get it to scroll within the box.

    When you have a list or blog within a box on a page, how do you get it to scroll within the box?

    Thanks so much!  Whatever I was trying only worked randomly. You made my day!

  • How to capture user name and date in the database

    How to capture the person name who edits the application and the date of edit in the database...
    Pallavi

    Hi
    There are substitution strings you can use for this purpose.
    1.APP_USER ------is the current user running the application
    2.SYSDATE --------represents the current date on the database server
    APP_USER Syntax
    Bind variable------ :APP_USER
    PL/SQL------- V('APP_USER')
    Substitution string---------- &APP_USER.
    SYSDATE_YYYYMMDD Syntax
    Bind variable------- :SYSDATE_YYYYMMDD
    Direct PL/SQL------- APEX_APPLICATION.G_SYSDATE (DATE DATATYPE)
    PL/SQL-------- V('SYSDATE_YYYYMMDD')
    Your application will be based on a table with primary key column. You create a 'before update trigger' on that table and add columns 'UPDATED_ON' and 'UPDATED_BY' to that table. Add the following to that trigger:
    :NEW.UPDATED_ON := SYSDATE;
    SELECT V('APP_USER') INTO :NEW.UPDATED_BY FROM DUAL;
    -Priyanka

  • On iCloud pages how can you put a header on only the first page and not the second page?

    I'm trying the do a visual report and every time I put a header on the first page it goes to the next page and if I try to delete it on the second page it deletes on the first page too.

    bump

  • How to capture PLSQL package error and show the same in OAF Page.?

    Hi all,
    I am having the requirement to capture the error from a PL/SQL package and show the error in OAF page with meaning full error.
    Assume i am having the create and review page.
    The create page having the employeeLOV input field (non mandatory field).
    (i have the package which will check whether this LOV value is filled or not.. if not given then the user should be able to see a "understandable message.)
    to achieve the above scenario am following the below steps
    In my CO,
    with in try catch i called the am method which will invoke the XX_CUSTOM_PKG.
    so, from the catch it is giving me the message as shown below.
    try
    ((OAApplicationModule)localObject1).invokeMethod("insertData", personParam);--which will call the am method which in turn call the package.
    catch(Exception exception)
    throw new OAException("Review Error: "+ exception);
    Assume there are 2 possiblity of error inside this package one for Date field and another one for Employee field. we don't know which validation the user will encounter.
    For Employee field validation it is giving messag as below
    Review Error: oracle.apps.fnd.framework.OAException: Exception in insertData:java.sql.SQLException: ORA-20500: Employee field is required. ORA-06512: at "APPS.CUSTOM_UTIL_PKG", line 702 ORA-06512: at line 1
    for Date field as below.
    Review Error: oracle.apps.fnd.framework.OAException: Exception in insertData:java.sql.SQLException: ORA-20500: Date field should always greater than sysdate. ORA-06512: at "APPS.CUSTOM_UTIL_PKG", line 702 ORA-06512: at line 1
    But i need to display only the message "Employee field is required" or "Date field should always greater than sysdate" in the screen.. as information.
    Could you please help me to achive the above message? any sample code will be great help for me.
    Thanks,
    Thiru.
    Edited by: thiru_apps on Mar 13, 2012 11:13 AM

    try
    ((OAApplicationModule)localObject1).invokeMethod("insertData", personParam);--which will call the am method which in turn call the package.
    catch(Exception exception)
    //throw new OAException("Review Error: "+ exception);
    /*Try this code*/
    String exception = null;
    exception = exception.toString();
    if(exception.contains("Employee")){
    throw new OAException("Employee field is required");
    else if(exception.contains("Date")){
    throw new OAException("Date field should always greater than sysdate");
    else
    throw new OAException(exception.toString());
    I hope this might help
    Niranjana

  • How can i get Firefox to change all the printable info on a web page print to black, so i can see the printout?

    Firefox correctly changes the print background to white, but leaves the colored info as it was on the web page. My monochrome printer uses Grey Scale to interpret the colors, but most colors are interpreted with so dimly that they cannot be seen on the printout.
    I am running Firefox 3.6.10 with Ubuntu Firefox Modifications 0.9rc2 and the OS is Ubuntu 10.04. I have disabled the Ubuntu Firefox Modifications Extension, but the results are the same.
    Thank You for your help!
    Chazbo

    Does Firefox offer to store a new password if you remove the old password?
    * http://kb.mozillazine.org/Deleting_autocomplete_entries
    Make sure that you not run Firefox in (permanent) [[Private Browsing]] mode.
    * You enter Private Browsing mode if you select: Tools > Options > Privacy > History: Firefox will: "Never Remember History"
    * To see all History and Cookie settings, choose: Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    * Uncheck: [ ] "Permanent Private Browsing mode"

  • How to capture excise in MIGO and refer the same excise invoice to customer

    Hi experts,
                   I am doing STO manufacturing plant to depot... i am creating STO order where No excises duties are there .Then , i create delivery by processing VL10B and create proforma invoice which is where i maintain all the condition including Excise duties..I create Excise Invoice in J1iin when supplying the materials from plant....
               How can i capture the excise invoice in receiving depot and how to refer it when selling to  the customer from receiving depot ?
           Pls clarify me asap

    Hi
    Complete the following settings
    Prerequisites
    1.Vendor Master Record for Customs Office
    Create a vendor master record http://Ext. for the customs office, so that you can create liabilities for the
    CVD (see step 3 in the process flow).
    Condition Type for CVD
    The system does not treat the CVD using tax codes, but as a condition type for planned delivery costs.
    Specify which condition type you use as follows:
    1. In the Country Version India Implementation Guide (CIN IMG), choose Global Settings u2192 Excise
    Defaults.
    2. Enter, for the tax calculation procedure that you use, the CVD condition type in the CVD cond.
    field.
    2. CVD Clearing Account
    When you post CVD to a CENVAT account the system debits the CVD to the BED
    account and credits it to a CVD clearing account.
    To specify which G/L account you want to use as the CVD clearing account:
    1. In the CIN IMG, choose Global Settings u2192 Company Settings.
    2. Enter the G/L account number in the CVD acct field.
    The following will be the process flow
    Process Flow
    1. You create a purchase order for the goods that you want and sent it to the vendor.
    For each material that you will have to pay CVD on when it comes through customs, you enter
    the CVD as a pricing condition.
    2. The vendor ships the goods to you.
    When the goods arrive in India, they go through customs. The customs officers issue a bill of
    entry for the goods, which is in effect an invoice for the CVD on the goods. Once they have
    inspected the goods, they send them on to you.
    3. The goods arrive at your plant, together with the bill of entry. In order to record the bill of entry in
    the system, the excise clerk:
    a. Enters an invoice for the bill of entry
    In Accounts Payable (FI-AR), the system creates a new vendor item for the CVD at the
    customs office. The item is offset to the CVD clearing account.
    b. Captures an excise invoice or the bill of entry
    4. The storeperson posts the goods receipt
    5. The excise supervisor posts excise invoice .
    6. The excise clerk enters the vendor invoice for the materials, following the standard procedure
    Hope it helps you

  • For the "new pages" how can I password protet a document without the inspector?

    My new "upgrade" for pages doesn't have the old inspector?  How do I create a password protection for my documents?  Why has this been made so difficult?

    Menu > File > Set Password…
    Peter

  • In Pages, how does one 'Save As' - I only have the option 'Save' which wipes earlier versions

    how can i save a newer version of any document in Pages without losing the earlier version?
    What Microsoft so neatly do with either 'Save' or 'Save as"?

    Brilliant thank you, only on mine it is called alt as I have only just discovered, and lo, as you say, Save As actually appears!
    Apple isn't so obstinate after all - but why do they make it so difficult to find their simple solution? I even bought a book about switching (O'Reilly's) and nothing is mentioned about any of this.
    I am very grateful to you all, now I have two options!

  • How to capture "show on (Viewer) panel" via the SDK

    I was able to capture other parameters such as - "Prompt text", "Default Value", "AllowCustomCurrentValues" -- from [[ReportClientDocument-DataDefControllerParameterField-DataDefinition-ParameterFields-ParameterField ]]
    But I am not able to figure out where "show on (Viewer) Panel" resides in the SDK.
    Thanks in advance
    JM

    Hi Jam,
    While using RASSDK to retrieve and set "Show on (Viewer) panel" property of a Crystal Report parameter, we can use methods on ParameterField class.
    Create an object of ReportClientDocument class for ex- ReportClientDoc and try the code                                                                               
    ReportClientDoc.getDataDefController().getDataDefinition.getParameterFields() (It returns Fields object which is collection on parameters).
    Iterate through this collection and cast each individual object to ParameterField class.                                                                               
    - Call getIsEditableOnPanel().
    It returns true if in CR Designer Show on (Viewer) panel is set to editable for the parameter.
    It returns false if "Show on (Viewer) panel" is set to Read Only.                                                                               
    - Call getIsShownOnPanel().
    It returns false if in CR Designer Show on (Viewer) panel is set to "Do not Show" and true otherwise.
    Thanks,
    Shilpi

  • How will an external Hard drive designed for the macbook Pro work with my White Macbook?  My  white macbook has a Firewire 400 and the G-Tech HD has a 800 to 400 compatible cable for the firewire.

    I am asking this because I want the G-Tech Hard drive  says that it is designed for the macbook pro.  Yet, I want to back up faster with by using my firewire 400 which is not an option on the one designed for the white macbook that does not have a firewire (only a USB port.)  The G-Tech Hard drive comes with the 800 to 400 compatible cable and has 5400 RPM with 750 GB.  Also, I've heard that laptops with low battery (mine all the time)  won't have the power for a bus powered Hard drive (as in no ac plug in adaptor.)  Can I just plug in my laptop?  Any one know the answers from experience with this hard drive?

    As far as I know, if a harddrive works with a Macpro, it should work with the Macbook: if your Macbook is low on power, plug in the AC adapter
    If your Macbook has a firewire port, then it should be fine. BUt i would do somemore research first.

  • How to register 10g ODBC driver list in the Create New Data Source window

    Hi
    I've checked the dll for the odbc is in the correct home path. However, i don't see the list of the driver when i try to create a new data source. Is there a way besides reinstall the client again.
    Thanks
    Rgds
    Ung

    Hi Joe,
    According to your description, after you run C:\Windows\SysWOW64\odbcad32.exe, Access driver is not displayed when you expand HKEY_LOCAL_MACHINE>ODBC>ODBCINST.INI node.
    The issue is caused by wrong path of odbccad32, please make sure that you are using Administrator account or you have administrative privileges, then refer to the following steps:
    Go to Control Panel.
    Click Administrative Tools.
    Right-click Data Sources(ODBC) to open Properties dialog box.
    In Target text box, type  %windir%\syswow64\odbcad32.exe             
    In Start in text box, type %windir%\syswow64, then click OK to  save the settings.
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu

  • How do I assign a drive letter to the Ipad in Windows 8

    Hi,
    I deleted an important video file and some photos from my ipad.
    Last few days I have spent ages trying to find a utility that will recover the files, but most of the 'ipad specific' software is a crock.
    I thought if I could assign a drive letter to the Ipad when I connect it to me Windows 8 PC I could run any number of much more trsutworty and stable applications to try and recover the info. However, I have googled and googled and can't find a way to assign a drive letter to the Ipad.
    Can anyone advise if this is possible?
    thanks

    You cannot. The iPad is not considered a removable storage device and will not operate as such normally.
    There are software programs out there that will allow you to directly access the unit's internal memory. Google iFunBox. I don't know if it will give you low enough level file access to do what you want though and it certainly won't give you the ability to undelete files either. Whatever file access that's done is through iFunBox...you can't access the device (indirectly) through Windows Explorer (or Mac) even while running iFunBox.

  • KDE: margins incorrect when printing because of fit-to-page option

    I'm attempting to print a PDF file with Okular (happens with other KDE/Qt applications as well) to my HP Deskjet D2530 printer. The PDF has one inch margins on all sides, but when printing, additional space is added to the margins.
    The page prints perfectly using lp:
    $ lp /Path/to/PDF.pdf
    Should also note it prints perfectly with non-KDE applications such as epdfview.
    I turned on debug mode in CUPS to find what options KDE sends to CUPS. I narrowed it down to the "fit-to-page" option causing the issue.
    I can reproduce the incorrect margins exactly with this command:
    $ lp -o fit-to-page -o PageSize=Letter /Path/to/PDF.pdf
    Now the issue I'm having is disabling this. I see nowhere in the KDE print dialog to disable fit-to-page, and have searched CUPS' documentation for a way to disable it on that end, but could not find anything. Searching for this issue has similiarly turned up nothing. I've also tried adding "fit-to-page=false" to ~/.cups/lpoptions with no result. I can't be the only one who has dealt with this. Is there some configuration option I'm missing somewhere or should I report this as a bug upstream?

    hello!
    i have a similar problem:
    https://bbs.archlinux.org/viewtopic.php … 3#p1402373
    for me the fit to page cmdline option does not apply and the output is always bigger than one page ... same goes for print menues with the option to turn on/off fit to page ...
    Last edited by brrbrrbruno (2014-04-09 17:22:04)

  • How to Capture print jobs and Data with WIN32 API?

    My organization has about 5 network printers and copiers to which a computer can print. What I'd like to do is build, if possible, a simple JAVA program to intercept what the users are printing (from any application) and capture certain information about the print jobs before it gets sent off to the specified printer.
    For example, when a user selects print from the menu in MS Word, and after the Ok button is pressed on the printers dialog window, have my program then pop up asking the user to fill in specific information (who they want to charge for the print job...this is typically an internal billing code, etc.).
    The program would have to capture the name/driver of the printer users are printing to, the document they printed, number of pages, number of copies, date/time, etc.
    Is/are there Windows API's to help in my programming of this application? I've been, unsuccessfully, searching MSDN, web sites, etc. on how to intercept/detect a print job. Any help would be greatly appreciated!
    Thanks ahead of time...

    Hi,
    Printing is nothing to do with database transaction. SP will not apply here. You may only try SDK.
    Thanks,
    Gordon

Maybe you are looking for

  • Network accounts no longer available after server reboot

    Mac OS Server 10.4.10 Open Directory Master running DNS. DNS is working properly and the system had been up and running for about 4 months without any problems and it had been restarted periodically for software updates, etc. I restarted the server t

  • Validation Errors on TabPanel - How do I show them to user?

    I have a tabbed panel on one of my JSF pages with required=true validation on field on tabs other than the first tab. When the user does not fill in those required fields on tabs other than the first one, those field level error messages are not show

  • ALE using BAPI

    Can any one specify the steps to be followed for using bapi in ale

  • Remove all information completely from a Blackberry Curve 8520?

    my relative upgraded her phone and gave the phone to me.  I'm getting rid of all information.  But the email address is still on the phone.  Is there a way to reset the entire phone so everything is gone? Also what does the 4 side buttons do? Thanks.

  • How to undo iOS 5.1.1

    24 hours after update my phone began rebooting every 5 minutes. Is there a way to undo the latest update?