Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners Table-chart selection
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Ramya
Table-chart selection
0 Answer(s)      3 years and 3 months ago
Posted in : Java Beginners


Hai,

Our application has pdf download.The pdf file has chart and table..Now the problem is user choose only table option but table and chart download..i want table only..the coding was given below..please help me.....

8.5in 1682mm 1189mm 841mm 594mm 420mm 297mm 210mm 148mm 105mm 74mm 52mm 37mm 26mm 1000mm 707mm 500mm 353mm 250mm 176mm 125mm 88mm 62mm 44mm 31mm 917mm 648mm 458mm 324mm 229mm 162mm 114mm 81mm 57mm 40mm 28mm 8.5in 210mm 11in 8.5in 2378mm 1682mm 1189mm 841mm 594mm 420mm 297mm 210mm 148mm 105mm 74mm 52mm 37mm 1414mm 1000mm 707mm 500mm 353mm 250mm 176mm 125mm 88mm 62mm 44mm 1297mm 917mm 648mm 458mm 324mm 229mm 162mm 114mm 81mm 57mm 40mm 11in type="text/xslfo"

      <!-- Change for Logo -->

      <fo:region-before extent="1cm" border="0.1pt solid silver" padding="18pt"  border-bottom-width="2pt" background-color="white" background-image="http://localhost:9002/distil-web1.3/distillogo.png" background-repeat="no-repeat"/>

      <fo:region-after extent="1cm"/>
      <fo:region-body margin-bottom="1.5cm" margin-top="1.5cm"/>
    </fo:simple-page-master>
  </fo:layout-master-set>
  <fo:page-sequence master-reference="simple">
    <!-- Page header -->
    <fo:static-content flow-name="xsl-region-before">
      <fo:block border-bottom-width="0pt" border-bottom-style="solid" border-bottom-color="black" font-weight="bold" font-size="8pt">
        <!-- retrieve current page title -->
        <fo:retrieve-marker retrieve-class-name="page-head"/>



   </fo:block>
    </fo:static-content>
    <!-- Page footer -->
    <fo:static-content flow-name="xsl-region-after">
      <fo:block padding-top="3pt" font-weight="bold" font-size="8pt" text-align="center">
        <fo:inline font-style="italic">
          <!-- <xsl:value-of select="$pageFooterText"/> -->
        </fo:inline>
      </fo:block>
    </fo:static-content>
    <!-- Page content -->
    <fo:flow flow-name="xsl-region-body">
      <fo:block font-size="8pt" font-family="Verdana, Geneva, Arial, Helvetica, sans-serif">
        <fo:block>
          <fo:marker marker-class-name="page-head">
            <!-- FOP compliant implementation, should use fo:leader with later versions -->
            <fo:table table-layout="fixed" width="100%">
              <fo:table-column column-width="proportional-column-width(4)"/>
              <fo:table-column column-width="proportional-column-width(1)"/>
              <fo:table-body>
                <fo:table-row>
                  <fo:table-cell>


                    <!-- <fo:block text-align="left" >

                       <xsl:value-of select="$pageHeaderText"/> 
                    </fo:block> -->

                                        </fo:table-cell>

                  <fo:table-cell>
                    <fo:block text-align="right">                          Page
                      <fo:page-number/>
                      of
                      <fo:page-number-citation ref-id="EndOfDocument"/>
                    </fo:block>
                  </fo:table-cell>
                </fo:table-row>
              </fo:table-body>
            </fo:table>
          </fo:marker>
        </fo:block>
        <!-- report title -->
        <fo:block font-size="12pt" font-weight="bold" text-align="center" space-after="1em">
          <xsl:value-of select="$reportTitle"/>
        </fo:block>

        <!-- chart on first page only -->

        <xsl:if test="$chartimage">
          <fo:block text-align="center" space-after="8em">
            <fo:external-graphic xmlns:fo="http://www.w3.org/1999/XSL/Format" scaling="uniform">
              <xsl:attribute name="content-height">
                <xsl:value-of select="concat($chartheight,'px')"/>
              </xsl:attribute>
              <xsl:attribute name="content-width">
                <xsl:value-of select="concat($chartwidth,'px')"/>
              </xsl:attribute>
              <xsl:attribute name="src">
                <xsl:value-of select="concat(concat('url(',$chartimage),')')"/> 
              </xsl:attribute>

            </fo:external-graphic>
          </fo:block>

          <xsl:if test="$chartPageBreak='true'">
            <fo:block break-after="page"/>
          </xsl:if>
        </xsl:if>


    <fo:block font-size="10pt">
          <fo:table table-layout="fixed">
         <fo:table-body>
              <xsl:apply-templates select="head"/>
              <xsl:apply-templates select="body"/>
            </fo:table-body>  

          <xsl:attribute name="width">
             <xsl:choose>
              <xsl:when test="$tableWidth">
                   <xsl:value-of select="concat($tableWidth,'cm')"/> 
                </xsl:when>  
                <xsl:otherwise>
                  <xsl:value-of select="'100%'"/>
                </xsl:otherwise>
              </xsl:choose>
           </xsl:attribute>   

            <!-- for each corner, create #columns=col-span-->
            <xsl:for-each select="/mdxtable/body/row"> 
              <xsl:sort select="count(cell)" data-type="number" order="ascending"/>
              <xsl:if test="position() = 1">
                <xsl:call-template name="do_columns">
                  <xsl:with-param name="colnum">
                 <!--   if there is a corner, then this works, otherwise need to count row heading-heading colspans  -->
                    <xsl:choose>
                      <xsl:when test="count(/mdxtable/head/row/corner)=0">
                        <xsl:value-of select="sum(/mdxtable/head/row/heading-heading/@colspan)"/>
                      </xsl:when>
                      <xsl:otherwise>
                        <xsl:value-of select="count(cell) + /mdxtable/head/row/corner/@colspan"/>
                      </xsl:otherwise>
                    </xsl:choose>  
                  </xsl:with-param>
                </xsl:call-template>
              </xsl:if>
            </xsl:for-each>

          </fo:table>
        </fo:block>


        <!--<fo:block text-align="center" id="EndOfDocument"/>-->
      </fo:block>
      <fo:block text-align="center" id="EndOfDocument"/>
    </fo:flow>
  </fo:page-sequence>
</fo:root>

1


Advertisement
View Answers

Related Tutorials/Questions & Answers:
Table-chart selection
Table-chart selection  Hai, Our application has pdf download.The pdf file has chart and table..Now the problem is user choose only table option but table and chart download..i want table only..the coding was given below
Selection based on other selection in jsp
Selection based on other selection in jsp  I am trying to create... category there are products which are taken from a ms access table using a java... selection on same jsp page such that when someone select a category only the products
Advertisements
insert multiple selection - Java
insert multiple selection - Java  how to insert multiple selection values from html into database using servlets
interrelated two selection box
interrelated two selection box  hi i need two selection box .in 1 box all designation like manager, ceo etc , onclick on manager i should get list of managers names in second selection box.. like wise so on. from database
Help With Costructing Selection sort?
Help With Costructing Selection sort?  Using a selection sort, for each entry in the array, display the original index of the first dimension... in advance!   Please visit the following link: Java Selection Sort
highlight uitableviewcell on selection
the UITableViewCell on selection in my application.   UITableViewCell... highlight it or use the default selection for the cell in UITableView. Also you can disable the the stye by setting StyleNone to cell selection. But in case
Selection Using JoptionPane
Selection Using JoptionPane  Help, can someone provide me the code using JOptionPane for the following:- Part A 1) Prompt user to make 3 selection... Modify the above application so that if user makes a selection that the user has
checkbox selection in jsp
checkbox selection in jsp  hey guys i am working on a web based project using jsp. In my project i am having 9 check boxes in 3 rows in the same form. I want to select i check box from each row and also i want to avoid many
Image Selection - Swing AWT
Image Selection  Hi, I need to provide the image selection facility...; JButton saveButton; public DisplayImage() { super("Image Selection program... { String selection = (String)comboBox.getSelectedItem(); String
changing selection color of <button>
changing selection color of   dear all, i have loaded image in border less button tag when button is selected with tab key i get brown color rectangle around image. how do i change color of that rectangle from brown to white
Displaying files on selection of date.
Displaying files on selection of date.  Hi, I am developing a GUI, where i select from and to date. On selection of from and to date the GUI should...); JButton b = new JButton("Search File"); final JTable table=new JTable
selection box linked with textarea
selection box linked with textarea    function get_val(tot_val1...); } <Table width="767" border="1" height="150... detals i have in db with all fields .. like wise i have names in selection box sham
Selection With Ajax and JSP
Selection With Ajax and JSP  I am working at a jsp page using ajax for country , state, city selection. so if he select country it will populate the state and city selection (both). After selecting country if he select city
else if (selection = * 'M'); - Java Beginners
else if (selection = * 'M');  I am trying to get 2 numbers 2... if (selection = * 'M'); ^ this is my program - what am i...; System.out.print("Enter A(dd), S(ubtract), M(ultiply):"); selection = (char
single selection of chechbox among multiple selection when in a loop.
single selection of chechbox among multiple selection when in a loop.  i am using cmd prompt to run and execute the java pgm. here i need your help... but here am getting multiple selection(previous selected item also coming again
enable text box and label on selection
enable text box and label on selection  hello, Please tell me how to enable label and text box on selection of drop down list box. in drop down list box all values come from database. please reply
JTable - Cell selection - Swing AWT
(ListSelectionModel.SINGLE_SELECTION); JScrollPane spane = new JScrollPane(table... javax.swing.event.*; public class JTableDemo extends JFrame { JTable table; DefaultTableModel tableModel; public JTableDemo() { table = new JTable(10, 5
Selection Sort in Java
Selection sort in Java is used to sort the unsorted values in an array. In selection sorting algorithm, the minimum value in an array is swapped... position. This procedure is repeated till the array is sorted completely. Selection
Selection Sort In Java
Selection Sort In Java      ... are going to sort the values of an array  using selection sort.In selection sorting.... Sort the remaining  values by using same steps. Selection sort 
Syntax for image selection Urgent - JSP-Servlet
Syntax for image selection Urgent  Respected Sir/Madam, I am using the following syntax to know whether radio button has been clicked or not: for(var i=0;i  Hi friend, now show the question no 2129 Here
Modifying a single row of database based on selection in jsp
Modifying a single row of database based on selection in jsp  Hi guys, i have a problem, I am Fetching the results from database and displaying in a row with s3everal columns, each row having a radio button and a value
Importance of Recruitment and Selection
the Recruitment and Selection is the basic significant factors which decides by Human Resource Department of the organization. Recruitment and Selection are one... be choose. On the other hand, Selection is the process where qualifications
Drop-down text selection in jsp/html
Drop-down text selection in jsp/html  Hi, I am trying to create JSP page where I have two drop-downs. There are two-sets of data - First set Categories- Movies, Books, Music and the Second set Genres- Action,Comedy,Romantic
Image Selection Reply Urgent.. - JSP-Servlet
Image Selection Reply Urgent..  Respected Sir/Madam, I am R.Ragavendran.. Thanks for yuor fast response.. Sir actually I will be much more convenient if you provide me with coding.. I dont know to work with images as i
Program Arrow selection Most Urgent - JSP-Servlet
Program Arrow selection Most Urgent  Respected Sir/Madam, I am R.Ragavendran.. I got your coding which is highly appreciable.. As per my requiremennt,there are image buttons for each row in the database.. But i am
Is there any inbuilt API in netbeans to know about selection in editor?
Is there any inbuilt API in netbeans to know about selection in editor?  Eclipse is having ISelction base interface for User Selection & it also provides concrete classes for that so as to know selection info in editor. how
How to create textbox on combo value selection using javacsript in jsp?
How to create textbox on combo value selection using javacsript in jsp?  dynamically create textbox on combo value selection. when select multiple values then create multiple textboxes
radio button selection should move the control to a text box that needs to be complete
radio button selection should move the control to a text box that needs to be complete  on selection of a radio button mouse should move to a particular text box that needs to be filled. How
HOW TO DISPLAY ID IN TEXTBOX BASED ON COMBOBOX SELECTION IN A SAME PAGE
HOW TO DISPLAY ID IN TEXTBOX BASED ON COMBOBOX SELECTION IN A SAME PAGE  Dear sir, Am having one table called rolemaster. In that there are 2 fields Roleid and Role_name. and values are Roleid Role_name 1
Advertisements
 

 

 

DMCA.com