Apache FOP Problem with column width

We are using Apache FOP to generate simple pdf documents out of reports.
My problem is that the table in the pdf is as standard filled in with columns of same length.
Further on the content of some table fields is to large or sometimes there is to much room.
is there any possiblity to let fop react like html?
The smallest table field size should be like the content. I don't want to adjust all my reports, cause there are really many reports with pdf printing.
anyone an idea how to solve this with FOP?
i have no BI pubisher or other reporting engines for this problem
thx so far

Oliver,
I think what you're looking for is having your column width automatically adjusted based on the content of your column values. That is not possible with the built-in, generic XSL-FO template. What you can do is manually adjusting the column width to appropriate values on the print attributes page.
Regards,
Marc

Similar Messages

  • Problem with columns in the middle of my book

    I am writing my second book with Pages 2.02 and have run into a problem with columns. I want to add a long list of items as a list with check boxes for readers to check off. If I paste in enough text for three or four pages of two columns it gets messed up in various ways - the text flows into the following text if I don't use section breaks at the end instead of layout breaks, if I use section breaks it solves that one, but if I add anything to the list it changes all the columns across the pages so that one or several of the pages has way less in the right column than in the left. So far the left column fills the entire page all the time, but the right column has lots of spaces. If I switch back and forth from one column to two, it fixes it. If I add text before the list section it messes everything up again and because there is a section break I end up with a little bit of text on the last page and a huge gap before the single column part that follows.
    Does anyone know how to get reliable results that will not mess me up when adding content before the list or in the list itself?
    PowerBook G4   Mac OS X (10.4.8)  

    Hi Cymru,
    Thank you for thinking about my problems. I guess I s half asleep when I posted and it didn't make sense.
    I have so far 77 pages of the book divided into several chapters via section breaks. Inside the 5th section there is almost two pages of paragraphs. Those paragraphs could become 3.75 pages or who knows how long before the list of items. The list of items is 226 items separated by carriage returns and go from one word with 5 characters to 7 words and 34 characters. It needs to be a list with check boxes before them so that the user can check off the items that apply. It is a workbook about turning bipolar into an advantage and is currently 8.5 x 11 and printed on my laser printer for now, but when completed will be more like 8 x 10, so it needs to resize without major hassles.
    I have tried every combination of breaks to get the list to flow in two columns, but perhaps have not done the correct combination. I show invisibles and layout. At the end of my paragraphs I do a paragraph return. I then do either a section break or a layout break, followed by a paragraph return and another layout or section break. I then put my curser before the paragraph break, but after the first section/paragraph break, and set columns to 2, evenly divided by default with 3.2026" columns and .3375" gutter, but I want them to change with page size in the future.
    Once set up, I copy the text out of BBEdit and paste into the left column. It takes up several pages because it is formatted to do double spaces, so I use one of my styles to make it bold and single spaces. I then apply list style with image bullets and one of the default box images that came with Pages. There are 5 items in each column on the first page because it is close to the bottom, but flows into the next two pages. (with text edits it might end up 20 items in each column on the first page) The second page has 39 items in each column and the last page has 8 items in the left column only, but if with section breaks take up the whole page and the next paragraphs start on the next page. If I then add items to the list, every page gets messed up and the second page ends up with 39 on the left column and less items in the right column for each added item.
    If I use layout breaks instead of section breaks, the paragraphs following my lists (now with only one column) end up under the list. What that means is I can see my bold items, but beneath them are my paragraphs that belong after the list. I can see the layout break at the end of the list, but the columns that are shown as part of the 'view layout' are visible right over the single column text also for the rest of the page. The only way to solve that is to go with section breaks and put up with the gap from the end of the list to the following paragraphs.
    I hope this makes more sense.
    Tom
    PowerBook G4   Mac OS X (10.4.8)  

  • Having problems with texts width when viewed in Firefox

    I My site is OK when viewed in Chrome and Safari, but in Firefox, the width of paragraphs is becoming very long and all is displayed wrong.
    I need a clue where to look to fix. I have not , or very little knowledge of HTML code. So I rely on the DW CS5 interface.
    Thanks,D.

    Thanks Nancy ,
    I'll try,
    Should I just paste your info between the brackets, I guess.
    I am not so good with this but I need to spent a bit of time to fix this
    old web site while another one is being designed.
    Yes the images are too big, I'll reduce them, and optimize. This was
    done in a rush..
    D.
    Le 14-02-23 18:07, Nancy O. a écrit :
    >
          Re: Having problems with texts width when viewed in Firefox
    created by Nancy O. <http://forums.adobe.com/people/Nancy+O.> in
    /Dreamweaver support forum/ - View the full discussion
    <http://forums.adobe.com/message/6149874#6149874

  • Problem with column name width

    Hello!
    I have a report and the column names are too big. Is there a possible way to make them appear in two lines so the column width would be smaller?
    Thanx in advance for any answers...

    Hello,
    I can't reproduce that problem. Probably dependent of the Template you're using. You can try setting the height of the class (I can't tell you which one - unless you set up an example on apex.oracle.com) to a larger value.
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • Problem with column selection in GUI_DOWLOAD

    Hi everyone !
    I want to save data from an internal table to a DAT file using GUI_DOWLOAD. In this internal table, there are 2 colums that won't be downloaded so I call the FM this way :
        CALL FUNCTION 'GUI_DOWNLOAD'
             EXPORTING
                  FILENAME                = L_FILE
                  FILETYPE                = 'DAT'
                  COL_SELECT              = 'X'
                  COL_SELECT_MASK          = V_COLSELECT
             TABLES
                  DATA_TAB                = TAB_OUT
                  FIELDNAMES              = TAB_FIELDNAMES.
    V_COLSELECT contains an 'X' for each column I need to be downloaded and a space for the 2 other columns.
    In the result file, the columns that I didn't select don't appear BUT there are 2 columns with no header and filled with zeros at the right edge of the file. I don't know where these 2 columns come from. Maybe a problem with fieldnames but I'm not sure (in TAB_OUT, all columns are present but in TAB_FIELDNAMES there are only headers for the selected columns).
    If anybody have an idea, please just tell me.
    Points will be rewarded for helpful answers.
    Thanks.
    Nicolas.

    Hi,
    Try to keep fields same in TAB_FIELDNAMES and TAB_OUT. because anyway you are using COL_SELECT_MASK.
    I think you are using COL_SELECT_MASK properly ie
    if you have 6 field in the TAB_OUT out of that you need to donwload 1,3,6 then your
    COL_SELECT_MASK will be X X  X
    aRs

  • Problem with chart width

    Hi all,
    I have a problem with a chart.
    I show a columnChart at 100% width.
    The dataprovider is hierarchic. So every object in it has a 'children' property which is a new ArrayCollections.
    This way, I'm able to descend in the hierarchy by scripting this:
    targetChart.dataProvider = myClickedItem.children;
    All works perfect except that the larger the dataset is, the narrower my chart displays.
    This is what it looks like (from left to right, the several levels of the chart):
    This is the mxml code I use:
    <mx:ColumnChart id="targetChart" width="100%" height="100%"
                                                      dataProvider="{targetProvider}" showDataTips="true"
                                                      itemClick="targetChart_itemClickHandler(event)"
                                                      type="{statStyle}">
      <mx:horizontalAxis>
                                       <mx:CategoryAxis categoryField="label"/>
      </mx:horizontalAxis>
      <mx:series>
                                  <mx:ColumnSeries yField="total" width="100%"
                                                                           fillFunction="getTotalFill"
                                                                           displayName="Totaal ovsg"
                                                                           showEffect="zoom" hideEffect="zoom"/>
                                  <mx:ColumnSeries yField="count" width="100%"
                                                                           fill="{Config.CHART_COLOR_ARRAY.getItemAt(0) as IFill}"
                                                                           displayName="Telling"
                                                                           showEffect="zoom" hideEffect="zoom"/>
      </mx:series>
      </mx:ColumnChart>
    Any help would be appreciated.
    Dany

    Hi,
    Did you solve this issue?
    I have the same problem, maybe you can help if you got the answer?

  • Apache FOP configuration with Oracle XE

    Hi,
    I have installed Oracle XE on my laptop and upgraded Apex to 3.2. I am now trying to install Apache FOP for PDF printing. I am following Section 5 of the following document:
    http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html
    Since it is a standalone installation, I followed the directions given here :
    http://download.oracle.com/docs/cd/B32110_01/web.1013/b28950/install.htm#BABIBGCA
    I installed JDK version 6 and also downloaded the OC4J zip file and did as specified.
    Now here is my problem: The next step is this :
    Step 1: Installing the WAR file
    Place the fop.war file (located in apex_install_directory/utlities/fop) in an accessible location on your local machine. You then follow the directions below or can view the process by running this viewlet.
    +1. Navigate to your OC4J Oracle Enterprise Manager Console eg: http://localhost:8888/em/+
    +2. Select the Applications Tab+
    +3. Select Deploy Button+
    +4. On the "Deploy: Select Archive" page use the option "Archive is present on local host. Upload the archive to the server where Application Server Control is running." Use the file browse to select the fop.war file and click "Next" button+
    +5. On the "Deploy: Application Attributes" page set the "Application Name" option to "fop" and clear the "Context Root " option and click "Next" Button+
    +6. On the Deploy: Deployment Settings click the "Deploy" button+
    The problem is, since mine is an XE installation on my laptop, I do not have Oracle Enterprise Manager Console. In this case, how can I deploy the WAR file ?
    Any ideas ?
    Thanks,
    Ashok

    Hi Ashok,
    I have the same problem. have installed 10g xe and upgrated to apex 3.2 on my laptop.
    I dont have the EM to deploy the WAR file.
    Anyway you could share how exactly you deployed the file and made pdf working?
    much appreciated.
    Danny
    Edited by: user10188025 on 14-Aug-2010 03:25

  • Problem with columns length under Firefox

    I have a problem with Firefox. Possibly, someone could help?
    If you look at the following page www.tregor.fr using IE or
    Netscape, there is no problem.
    If you use Firefox, you will see that the display of the
    bottom page is not correct. The middle column is longer than the
    left and the right columns.
    So the bottom block is not correctly sticked to the middle
    block (the body background color appears at the bottom of the first
    and third columns).
    As I analyses, I saw that, under FireFox, the text in the
    middle column seems to start a little lower than under IE or
    Netscape. This may explain why the middle column is longer.
    But I have no mean to avoid this.
    Does anyone has experienced such a problem?
    Regards.

    you could try this:
    http://www.projectseven.com/tutorials/css/pvii_columns/index.htm

  • APEX - Problem with column attributes - Simple Checkbox

    Hi,
    I've a problem with one of my report.
    select * from (
    SELECT
    APEX_ITEM.CHECKBOX(2,audsid,'UNCHECKED') KILL,
    INST_ID,
    AUDSID,
    SID,
    I changed the attributes one of the column in report to Simple Checkbox. Display is working fine and I see correctly checkbox inside the column, but when I trying to trigger process which is based on that column, I'm getting below error:
    wwv_flow.accept: SIGNATURE (parameter names) MISMATCH
    VARIABLES IN FORM NOT IN PROCEDURE: F01_NOSUBMIT
    NON-DEFAULT VARIABLES IN PROCEDURE NOT IN FORM:
    Process code looks like below:
    BEGIN
    FOR i IN 1..APEX_APPLICATION.G_F02.count
    LOOP
    rec_audsid := APEX_APPLICATION.G_F02(i);
    stmt...
    stmt...
    Could you pls help me with this? How I can submit correctly data to my process from that Simple Checkbox item?
    Thank in advance for help.
    Regards
    Mariusz
    Edited by: user8763881 on 17-Aug-2010 08:12
    Edited by: user8763881 on 17-Aug-2010 08:12
    Edited by: user8763881 on 17-Aug-2010 08:12

    Hi Marc,
    I am trying to use this simple check box to update records in a tabular form that is created through tabular form wizard.
    Now as what you said I included one more column in the tabular form sql query for my check box column.
    Lets say, if my table column name is sent_msg_ind then I have this included as below
    select sent_msg_ind, --hidden
             sent_msg_ind as sent_msg_ind_no_submit --simple check box
    from table_x;Now how to propogate the value of simple check box(1 - checked and 0 - unchecked) value into hidden field.
    I am using this tabular form to just update the records based on what is being fetched using the primary key from the previous page.
    Any example or demo would be highly appreciated here.
    Thanks,
    Teku
    Edited by: Teku on May 19, 2011 10:05 AM

  • Apache/PHP - Problem with shell_exec - ImageMagick - convert

    Hi,
    I have a problem with running external commands from a webpage written in php using Apache. In this case I'm trying to run convert, which is a program in ImageMagick.
    I can run most commands without any problems but when running these I get errors.
    shell_exec("/usr/bin/convert -alpha Set -filter bessel -resize '200'x'200' -density '200'x'200' 'image.eps' -channel A -fx 'B' -negate '/var/im/4.png' 2>&1");
    shell_exec("/usr/bin/convert 'image.eps' -alpha Set -filter bessel -channel A -fx 'B' -negate '/var/im/4.png' 2>&1");
    shell_exec("/usr/bin/convert '/var/im/4.png' -density '200'x'200' -resize '200'x'200' '/var/im/5.png' 2>&1");
    Error:
    convert: Error when saving the profile into a file '.' @ warning/opencl.c/autoSelectDevice/2303.
    The first command generates the new image but it is incorrect. The two others together gives me an output which looks correct but I still get the errors.
    Running either of these commands directly via shell works great and generates the correct output and no error messages.
    I would guess that the issue is how Apache handles the execution of shell_exec and the user that is used to run Apache. There is probably some restrictions that creates the issue but I'm note sure what.
    I have tried running Apache using a new user I created which can run the commands correct directly in shell or by running "php -f testfile.php" but not through a webpage via Apache.
    Any suggestions?
    I also asked in the ImageMagick forum if anyone wants to check that they think so far.
    http://www.imagemagick.org/discourse-se … =1&t=25418

    are your files being uploaded correctly ?
    i think u need to determine that first.

  • Problem with Column types and String

    Hi
    I have some problem while comparing against empty string.
    My column is of type it_Linked_Button. Actually it seems that column type doesn't matter.
    If cell that belongs to this column is empty and based on other columns' values I put some value into this cell.
    It works fine.
    But when I clear that cell and try to put some value again nothing happens.
    In my if statement I'm checking against empty string and it fails second time.
    Before I put anything in that cell (in debugger) that value is "" so it is empty and it works.
    (OK, I see that after I posted this message it was slightly reformated)
    But after I put something and clear that cell and try to put something again (in debugger) I get "(here is some long space) " which fails String.IsNullOrEmpty(var) test.
    What is going on? Has it something to do with Column type?
    How to clear it so I can put something in it again?
    One more thing - to put values and clear it I use DbDataSource SetValue method. And String.Empty or ""(doesn't matter)
    Thanks
    Kamil
    NOTE
    I made some workaround that gives me the behaviour I want but still I would like to know what is going on?
    Edited by: Kamil Wydrzycki on Sep 24, 2009 12:57 PM

    DrLaszloJamf wrote:
    warnerja wrote:
    DrLaszloJamf wrote:
    1. Could you define an Enum? Then you could switch on enum values.
    2. Wait for Java 7 which is supposed to extend switch to strings?3. Put the target strings in a collection, write a loop to find the match in the collection and use the matching index in the switch statement. At least that will get rid of the hashcode kludge, where it won't mistakenly 'match' a string which isn't the actual target.3b: Map<String, Command>Yep.
    I also wanted to point this out to the OP:
    For example, let's say the 7 character string "BugABoo" happens to have the same hashcode as "EDI_DOC". And let's say your input just happens to have the string "BugABoo" in it, where you're extracting the 7 character substring. See the problem? You're getting "BugABoo" but treating it as if it really were "EDI_DOC", by virtue of comparing hashcodes instead of actual strings.
    OOPS!

  • Problem with column export

    Hi ,
    I have a column in a report that I want to include in the csv export.
    The column has a "Column Link" pointing to some other page in the application.
    I tried setting field "Include In Export" to "Yes" and applying the changes. But when I see the column again, this field shows "No". I have tried this many times but every time, this field gets reset to "No". I am not able to export this column to csv export file.
    Is there any problem with exporting columns with "Column Link"?
    ~Ketan

    That problem is being debated, see: Include in Export does not work in APEX 3.1 .
    Scott

  • Problem with column heading sorting

    I have a problem with a classic report.
    I created a simple report. We want to sort the report, when we click the column heading. But when we cklick on the column heading, nothing happens. In firefox we get the error "apex.jQuery.datepicker is undefined".
    When we created another simple report and connect against another database (but the same web-server), we can sort the report, when we cklick a column heading. On both databases we installed the same apex version (=4.0.1.00.03).
    on "apex.oracle.com" (workspace:ama / user:demo / pwd:demo) I created an example.
    what is wrong?? Can anyone help me ??
    Thanks
    Robert

    Hi Jari,
    yes, you are right. I changed my query. I attempted to find a solution and so I changed the query several times => I used other tables, with or without date columns, with or without columns in the select and so on.
    You said, the problem is the authentication scheme. It crossed my mind that I do another change:
    during the creation of my application apex created a login page => page 101. For my example application I don't need a login page, and so I droped the page. After starting the application I saw the error message "page 101 not found ". So I searched for a property where apex definies the "start page" respectively "login page". But I don't found anything. Then I looked into the export file and searched for "101". I found the package procedure "wwv_flow_api.create_auth_setup" and the parameter "p_invalid_session_page", which receive the value "101". In apex the property "Session Not Valid Page" was blank. So I inserted the page number "1" (=the first and sole page in my application).
    After the explained changes I could start my report.
    I don't know, whether these informations help to find the problem!
    Regards
    Robert

  • Problem with column break in word 2010

    Hi,
    I have a 2 column document. Some how i feel it has inserted a column break in the middle of page 7 of my word document which consists of 12 pages. It is a reviewed document & tracking is also going on and 'Track Changes: On' message is also visible on my
    progress bar. On page 7 i have a figure also which is one column wide. The text above this figure goes on to next column after 9th line. There is still a 3 line gap between my text & figure. But its moving the text to next column. After the figure it shows
    me the text which should come after the moved text. It was showing me section break continuous but then i deleted it but still the problem persists. Please guide me how to fix this problem.
    Zulfi.

    Hello,
    I have replicated and confirmed the problem with LabVIEW 2010, Report Generation Toolkit 2010 and Word 2010.  I have filed this to R&D under CAR ID #257414.  As a workaround you can manually set each cell using Word Edit Cell.vi.  I have attached a simplified representation of this unexpected behavior as well as the workaround.  Hopefully this helps everyone out!
    David_L | Certified LabVIEW Architect
    LabVIEW Tools Network | LabVIEW Tools Network Developer Center
    Attachments:
    Word 2010 Table CAR.vi ‏17 KB
    Word 2010 Table FIX.vi ‏22 KB

  • Trouble with column width

    Hi,
    I'm having trouble changing the width of a column in my SQL Report. I went into Report Attributes and clicked on Edit for the column I wanted, and entered a value for width in column attributes section, but it didn't work. I also tried an html tag, but that didn't work either.
    Is there a different way to change the column width that I haven't tried yet?
    Thanks,
    Nora

    I'll jump on the trail of this thread. I'd like to use a substitution string in the CSS Style setting of the Column Formatting section of a report column. I'm attempting to use the <ampersand><period> syntax, but it doesn't appear to be working. I have succesfully used a substitution string in the "Number/Date Format" which is in the same section. Can someone confirm that this is possible or not? I have not seen any threads stating this to be true or not.

Maybe you are looking for

  • Exception while looking up ConnectionFactory in jms

    hi all i have been trying to implement a simple jms program. am able to compile it. but while running it is throwing up an exception. am including the stack trace. please help thanx in advance. stack trace Queue name is MyQueue jndicontext created lo

  • Dashed Line Setting Not Working

    I have a graph (I've ungrouped it, it is no longer a graph as far as AI is concerned) that I'm trying to get a dashed line:  it doesn't work.  I'm uploading screenshots to show I'm not completly crazy.

  • Embedding .swf file into web pages

    What's the best way of embedding a flash file into web pages? After Microsoft introduce something about the active object (need to click on the Flash file first on IE to activate it) it seems like the best way is to use 'FlashObject'. Is there any ot

  • SEND SSL v3.1 ALERT:  warning, description = close_notify

    When trying to establisch a connection to a ssl encrypted smtp-server i get the following DEBUG-output: DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc] DEBUG SMTP: useEhlo true,

  • Not able to connect database while creating RPD

    hi, while creating New RPD i am not able to connect database its Throwing error like"The Connection has failed". even though i had given Data source name as TNS entry. Thanks, Lokesh