Inserting section title on each page

Is there a way to insert the title of the section automitacally at top (or bottom) of each page?
When I insert "section title," it actually inserts the "book title," from the document section of the inspector.
Thanks.
b

I'm using my own, simple template. I've created a template for all sections, and a template for the pages in each section, to which I've attached the name of that section in the header.
The odd thing is that if I go into the "book" section and pick a page template on which I've put a text box as a header, I can double-click the textbox and I'm given an option to "insert section title and/or number." That would suggest that I can have the section name in the header of each page in the section, but somehow I've not made the correct link, and all I get when I click "insert section name" is the name of the book.
For now, I'm not going into this further: Either I really don't understand the method behind the organization of these templates, or there the method isn't worked out. I'm sure I've missed something, but can't spend the time figuring it out, so I've done it manually. More digging around is just taking time away from me and also bothering helpful people like you.
Thanks very much for the input.

Similar Messages

  • Print - JTable with a TITLE on each page

    Hi! someone know haw can I print a MY TITLE on each page that I print ?
    ----->MY TITLE<----
    | co1 | col2 | col3 | col4 |
    |dtxxz|dtxyz|dtxyz|dtxyz|
    |dtxxz|dtxyz|dtxyz|dtxyz|
    |dtxxz|dtxyz|dtxyz|dtxyz|
    PAGE 1
    I try that :
    g.drawString("MY TITLE", 100,50);
    but the table header hide (writing over) my title
    Here is my call :
    public int print(Graphics g, PageFormat pageFormat, int pageIndex)
    throws PrinterException {
         Graphics2D g2 = (Graphics2D) g;
         g2.setColor(Color.black);
         int fontHeight = g2.getFontMetrics().getHeight();
         int fontDesent = g2.getFontMetrics().getDescent();
         pageFormat.setOrientation(pageFormat.LANDSCAPE);
         //leave room for page number
         double pageHeight = pageFormat.getImageableHeight() - fontHeight;
         double pageWidth = pageFormat.getImageableWidth();
         double tableWidth =
              (double) getCurrentTable().getColumnModel().getTotalColumnWidth();
         double scale = 1;
         if (tableWidth >= pageWidth) {
              scale = pageWidth / tableWidth;
         double headerHeightOnPage =
              getCurrentTable().getTableHeader().getHeight() * scale ;
         double tableWidthOnPage = tableWidth * scale;
         double oneRowHeight =
              (getCurrentTable().getRowHeight() + getCurrentTable().getRowMargin()) * scale;
         int numRowsOnAPage = (int) ((pageHeight - headerHeightOnPage) / oneRowHeight);
         double pageHeightForTable = oneRowHeight * numRowsOnAPage;
         int totalNumPages =
              (int) Math.ceil(((double) getCurrentTable().getRowCount()) / numRowsOnAPage);
         if (pageIndex >= totalNumPages) {
              return NO_SUCH_PAGE;
         g2.translate(pageFormat.getImageableX(), pageFormat.getImageableY());
         g2.drawString(
              "Page: " + (pageIndex + 1),
              (int) pageWidth / 2 - 35,
              (int) (pageHeight + fontHeight - fontDesent));
         //bottom center
         g2.translate(0f, headerHeightOnPage);
         g2.translate(0f, -pageIndex * pageHeightForTable);
         //TODO this next line treats the last page as a full page
         g2.setClip(
              0,
              (int) (pageHeightForTable * pageIndex),
              (int) Math.ceil(tableWidthOnPage),
              (int) Math.ceil(pageHeightForTable));
         g2.scale(scale, scale);
         getCurrentTable().paint(g2);
         g2.scale(1 / scale, 1 / scale);
         g2.translate(0f, pageIndex * pageHeightForTable);
         g2.translate(0f, -headerHeightOnPage);
         g2.setClip(
              0,
              0,
              (int) Math.ceil(tableWidthOnPage),
              (int) Math.ceil(headerHeightOnPage));
         g2.scale(scale, scale);
         getCurrentTable().getTableHeader().paint(g2); //paint header at top
         return Printable.PAGE_EXISTS;
    Thanks

    //Solution-------------------------------------------------------------------------------------------------------
    // PRINT : CENTER HEADER TITLE ON EACH PAGE
    : PAGE NUMBER ON EACH PAGE
    : USE A PREVIEW WINDOW
    import javax.swing.*;
    import javax.swing.table.*;
    import java.awt.print.*;
    import java.awt.*;
    import java.awt.event.*;
    * File: PrintTable.java
    * (C) Copyright Corp. 2001 - All Rights Reserved.
    * Print a JTable data
    public class PrintTable implements Printable {
    * Insert the method's description here.
    * Creation date: (03-13-2002 13:50:41)
    * @param g java.awt.Graphics
    * @param pg java.awt.print.PageFormat
    * @param i int
    public int print(Graphics g, PageFormat pageFormat,
         int pageIndex) throws PrinterException {
         try{
              Graphics2D g2 = (Graphics2D) g;
              g2.setColor(Color.black);
              int fontHeight = g2.getFontMetrics().getHeight();
              int fontDesent = g2.getFontMetrics().getDescent();
              // Normalize the header color
              // he title of the report is not printed if the color of the header is different of these colors
              m_table.getTableHeader().setBackground(new java.awt.Color(204,204,204));
              m_table.getTableHeader().setForeground(new java.awt.Color(0,0,0));
              //leave room for page number
              double pageHeight = pageFormat.getImageableHeight() - fontHeight;
              double pageWidth = pageFormat.getImageableWidth();
              double tableWidth = (double) m_table.getColumnModel().getTotalColumnWidth();
              double scale = 1;
              if (tableWidth >= pageWidth) {
                   scale = pageWidth / tableWidth;
              // Get the size of the table header
              double headerHeightOnPage = m_table.getTableHeader().getHeight() * scale;
              // Get the table size on a page
              double tableWidthOnPage = tableWidth * scale;
              // Title Height
              double titleHeightOnPage = 0;
              if( m_title != null ){
                   titleHeightOnPage = ((double)m_title.getFontMetrics(m_title.getFont()).getHeight() + 40) * scale;
              // Get size of a row
              double oneRowHeight =
                   (m_table.getRowHeight() + m_table.getRowMargin()) * scale;
              int numRowsOnAPage = (int) ((pageHeight - headerHeightOnPage - titleHeightOnPage) / oneRowHeight);
              // Get number of row in a page
              double pageHeightForTable = oneRowHeight * numRowsOnAPage;
              // Get the number of page to print
              int totalNumPages =
                   (int) Math.ceil(((double) m_table.getRowCount()) / numRowsOnAPage);
              if (pageIndex >= totalNumPages) {
                   return NO_SUCH_PAGE;
              // Print the page label at bottom center
              g2.translate(pageFormat.getImageableX(), pageFormat.getImageableY());
              g2.drawString(
                   "Page: " + (pageIndex + 1),
                   (int) pageWidth / 2 - 35,
                   (int) (pageHeight + fontHeight - fontDesent));
              g2.translate(0f, headerHeightOnPage + titleHeightOnPage);
              g2.translate(0f, -pageIndex * pageHeightForTable);
              //If this piece of the table is smaller than the size available,
              //clip to the appropriate bounds.
              if (pageIndex + 1 == totalNumPages) {
                   int lastRowPrinted = numRowsOnAPage * pageIndex;
                   int numRowsLeft = m_table.getRowCount() - lastRowPrinted;
                   g2.setClip(
                        0,
                        (int) (pageHeightForTable * pageIndex),
                        (int) Math.ceil(tableWidthOnPage),
                        (int) Math.ceil(oneRowHeight * numRowsLeft));
              //else clip to the entire area available.
              else {
                   g2.setClip(
                        0,
                        (int) (pageHeightForTable * pageIndex),
                        (int) Math.ceil(tableWidthOnPage),
                        (int) Math.ceil(pageHeightForTable));
              g2.scale(scale, scale);
              m_table.paint(g2);
              g2.scale(1 / scale, 1 / scale);
              g2.translate(0f, pageIndex * pageHeightForTable);
              g2.translate(0f, -headerHeightOnPage );
              g2.setClip(
                   0,
                   0,
                   (int) Math.ceil(tableWidthOnPage),
                   (int) Math.ceil(headerHeightOnPage));
              g2.scale(scale, scale);
              // Paint header at the top of the page
              m_table.getTableHeader().paint(g2);
              g2.scale(1 / scale, 1/ scale);
              g2.translate(0f, -titleHeightOnPage);
              g2.setClip(
                   0,
                   0,
                   (int) Math.ceil(tableWidthOnPage),
                   (int) Math.ceil(titleHeightOnPage));
              // Paint title
              if( m_strTitle != null ){
                   //Center
                   g2.translate((pageFormat.getImageableWidth() / 2) -
                                  (m_title.getFontMetrics(m_title.getFont()).stringWidth(m_title.getText()) / 2 ),
                                  0f );
                   g2.drawString(m_title.getText(), 0, 10);
              }else if ( m_title != null ){
                   //Center
                   g2.translate((pageFormat.getImageableWidth() / 2) -
                                  (m_title.getFontMetrics(m_title.getFont()).stringWidth(m_title.getText()) / 2 ),
                                  0f );
                   m_title.paint(g2);     
         }catch (Exception e){
              e.printStackTrace();
              return Printable.PAGE_EXISTS;
    * Show a print dialog box
    * Call the method to print
    * @param JTable table : table to print
    * @param String title : title of the table
    public static void print(JTable table, String title) {
         try {
              m_table = table;
              m_strTitle = title;
              m_data     = m_table.getModel();
              PrinterJob prnJob = PrinterJob.getPrinterJob();
              prnJob.setPrintable(PrintTable.instance, prnJob.defaultPage());
              // if the print job is cancelled
              if (!prnJob.printDialog())
                   return;
              // print the table
              prnJob.print();
         } catch (PrinterException pe) {
              pe.printStackTrace();
              System.err.println("Printing error: " + pe.toString());
         protected static PrintTable instance     = new PrintTable();
         public static int LANDSCAPE = PageFormat.LANDSCAPE;
         protected static TableModel m_data;
         protected static int m_maxNumPage           = 1;
         protected static String          m_strTitle = null;
         protected static JTable      m_table;
         protected static JLabel      m_title          = null;
         // Paper orientation
         public static int PORTRAIT = PageFormat.PORTRAIT;
         private final static String PREVIEW_LBL = "Aper�u avant impression...";
    * Insert the method's description here.
    * Creation date: (03-13-2002 10:12:41)
    public static void preview(JTable table) {
         m_table = table;
         m_data      = table.getModel();
         PrinterJob prnJob = PrinterJob.getPrinterJob();
         new PrintPreview(PrintTable.instance,
                             PREVIEW_LBL,
                             prnJob.defaultPage());
    * Insert the method's description here.
    * Creation date: (03-13-2002 10:12:41)
    public static void preview(JTable table, PageFormat pf) {
         m_table = table;
         m_data      = table.getModel();
         new PrintPreview(PrintTable.instance,
                             PREVIEW_LBL,
                             pf);
    * Insert the method's description here.
    * Creation date: (03-13-2002 10:12:41)
    public static void preview(JTable table, String title) {
         m_table = table;
         m_data      = table.getModel();
         m_strTitle = title;
         m_title = new JLabel(title);
         PrinterJob prnJob = PrinterJob.getPrinterJob();
         new PrintPreview(PrintTable.instance,
                             PREVIEW_LBL,
                             prnJob.defaultPage());
    * Insert the method's description here.
    * Creation date: (03-13-2002 10:12:41)
    public static void preview(JTable table, String title, PageFormat pf) {
         m_table = table;
         m_data      = table.getModel();
         m_strTitle = title;
         m_title = new JLabel(title);
         new PrintPreview(PrintTable.instance,
                             PREVIEW_LBL,
                             pf);
    * Insert the method's description here.
    * Creation date: (03-13-2002 10:12:41)
    public static void preview(JTable table, JLabel title) {
         m_table = table;
         m_data      = table.getModel();
         m_title = title;
         PrinterJob prnJob = PrinterJob.getPrinterJob();
         new PrintPreview(PrintTable.instance,
                             PREVIEW_LBL,
                             prnJob.defaultPage());
    * Insert the method's description here.
    * Creation date: (03-13-2002 10:12:41)
    public static void preview(JTable table, JLabel title, PageFormat pf) {
         m_table = table;
         m_data      = table.getModel();
         m_title = title;
         new PrintPreview(PrintTable.instance,
                             PREVIEW_LBL,
                             pf);
    * Show a print dialog box
    * Call the method to print
    * @param JTable table : table to print
    * @param String title : title of the table
    public static void print(JTable table, String title, PageFormat pf) {
         try {
              m_table = table;
              m_strTitle = title;
              m_data     = m_table.getModel();
              PrinterJob prnJob = PrinterJob.getPrinterJob();
              prnJob.setPrintable(PrintTable.instance, pf);
              // if the print job is cancelled
              if (!prnJob.printDialog())
                   return;
              // print the table
              prnJob.print();
         } catch (PrinterException pe) {
              pe.printStackTrace();
              System.err.println("Printing error: " + pe.toString());
    * Show a print dialog box
    * Call the method to print
    * @param JTable table : table to print
    * @param String title : title of the table
    public static void print(JTable table, String title, PageFormat pf, int orientation) {
         try {
              m_table = table;
              m_strTitle = title;
              m_data     = m_table.getModel();
              PrinterJob prnJob = PrinterJob.getPrinterJob();
              prnJob.setPrintable(PrintTable.instance, prnJob.defaultPage());
              pf.setOrientation(orientation);
              // if the print job is cancelled
              if (!prnJob.printDialog())
                   return;
              // print the table
              prnJob.print();
         } catch (PrinterException pe) {
              pe.printStackTrace();
              System.err.println("Printing error: " + pe.toString());
    * Show a print dialog box
    * Call the method to print
    * @param JTable table : table to print
    * @param String title : title of the table
    public static void print(JTable table, JLabel title) {
         try {
              m_table = table;
              m_title = title;
              m_data = table.getModel();
              PrinterJob prnJob = PrinterJob.getPrinterJob();
              prnJob.setPrintable(PrintTable.instance, prnJob.defaultPage());
              // if the print job is cancelled
              if (!prnJob.printDialog())
                   return;
              // print the table
              prnJob.print();
         } catch (PrinterException pe) {
              pe.printStackTrace();
              System.err.println("Printing error: " + pe.toString());
    * Show a print dialog box
    * Call the method to print
    * @param JTable table : table to print
    * @param String title : title of the table
    public static void print(JTable table, JLabel title, PageFormat pf) {
         try {
              m_table = table;
              m_title = title;
              m_data      = table.getModel();
              PrinterJob prnJob = PrinterJob.getPrinterJob();
              prnJob.setPrintable(PrintTable.instance, pf);
              // if the print job is cancelled
              if (!prnJob.printDialog())
                   return;
              // print the table
              prnJob.print();
         } catch (PrinterException pe) {
              pe.printStackTrace();
              System.err.println("Printing error: " + pe.toString());
    * Show a print dialog box
    * Call the method to print
    * @param JTable table : table to print
    * @param String title : title of the table
    public static void print(JTable table, JLabel title, PageFormat pf, int orientation) {
         try {
              m_table = table;
              m_title = title;
              m_data      = table.getModel();
              PrinterJob prnJob = PrinterJob.getPrinterJob();
              prnJob.setPrintable(PrintTable.instance, pf);
              // if the print job is cancelled
              if (!prnJob.printDialog())
                   return;
              pf.setOrientation(orientation);
              // print the table
              prnJob.print();
         } catch (PrinterException pe) {
              pe.printStackTrace();
              System.err.println("Printing error: " + pe.toString());
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.util.*;
    import java.awt.print.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import javax.swing.event.*;
    public class PrintPreview extends JFrame
    protected int m_wPage;
    protected int m_hPage;
    protected Printable m_target;
    protected JComboBox m_cbScale;
    protected PreviewContainer m_preview;
    private String lblBtnClose           = "Fermer";
    private String lblBtnPrint           = "Imprimer...";
    protected PageFormat m_pf;
    private String[] scales                = { "10 %", "25 %", "50 %", "100 %" };
    public PrintPreview(Printable target, String title, PageFormat pf) {
         super(title);
         setSize(600, 400);
         m_target = target;
         m_pf = pf;
         JToolBar tb = new JToolBar();
         JButton bt = new JButton(this.lblBtnPrint);
         ActionListener lst = new ActionListener() {
         public void actionPerformed(ActionEvent e) {
              try {
              // Use default printer, no dialog
              PrinterJob prnJob = PrinterJob.getPrinterJob();
              prnJob.setPrintable(m_target, m_pf);
              setCursor( Cursor.getPredefinedCursor(
                   Cursor.WAIT_CURSOR));
              prnJob.print();
              setCursor( Cursor.getPredefinedCursor(
                   Cursor.DEFAULT_CURSOR));
              dispose();
              catch (PrinterException ex) {
              ex.printStackTrace();
              System.err.println("Printing error: "+ex.toString());
         bt.addActionListener(lst);
         bt.setAlignmentY(0.5f);
         bt.setMargin(new Insets(4,6,4,6));
         tb.add(bt);
         bt = new JButton(this.lblBtnClose);
         lst = new ActionListener() {
         public void actionPerformed(ActionEvent e) {
              dispose();
         bt.addActionListener(lst);
         bt.setAlignmentY(0.5f);
         bt.setMargin(new Insets(2,6,2,6));
         tb.add(bt);
         m_cbScale = new JComboBox(scales);
         lst = new ActionListener() {
         public void actionPerformed(ActionEvent e) {
              Thread runner = new Thread() {
              public void run() {
                   String str = m_cbScale.getSelectedItem().
                   toString();
                   if (str.endsWith("%"))
                   str = str.substring(0, str.length()-1);
                   str = str.trim();
                   int scale = 0;
                   try { scale = Integer.parseInt(str); }
                   catch (NumberFormatException ex) { return; }
                   int w = (int)(m_wPage*scale/100);
                   int h = (int)(m_hPage*scale/100);
                   Component[] comps = m_preview.getComponents();
                   for (int k=0; k<comps.length; k++) {
                   if (!(comps[k] instanceof PagePreview))
                        continue;
                   PagePreview pp = (PagePreview)comps[k];
                        pp.setScaledSize(w, h);
                   m_preview.doLayout();
                   m_preview.getParent().getParent().validate();
              runner.start();
         m_cbScale.addActionListener(lst);
         m_cbScale.setMaximumSize(m_cbScale.getPreferredSize());
         m_cbScale.setEditable(true);
         tb.addSeparator();
         tb.add(m_cbScale);
         getContentPane().add(tb, BorderLayout.NORTH);
         m_preview = new PreviewContainer();
         PrinterJob prnJob = PrinterJob.getPrinterJob();
         PageFormat pageFormat = pf;
         if (pageFormat.getHeight()==0 || pageFormat.getWidth()==0) {
         System.err.println("Unable to determine default page size");
              return;
         m_wPage = (int)(pageFormat.getWidth());
         m_hPage = (int)(pageFormat.getHeight());
         int scale = 10;
         int w = (int)(m_wPage*scale/100);
         int h = (int)(m_hPage*scale/100);
         int pageIndex = 0;
         try {
         while (true) {
              BufferedImage img = new BufferedImage(m_wPage,
              m_hPage, BufferedImage.TYPE_INT_RGB);
              Graphics g = img.getGraphics();
              g.setColor(Color.white);
              g.fillRect(0, 0, m_wPage, m_hPage);
              if (target.print(g, pageFormat, pageIndex) !=
              Printable.PAGE_EXISTS)
              break;
              PagePreview pp = new PagePreview(w, h, img);
              m_preview.add(pp);
              pageIndex++;
         catch (PrinterException e) {
         e.printStackTrace();
         System.err.println("Printing error: "+e.toString());
         JScrollPane ps = new JScrollPane(m_preview);
         getContentPane().add(ps, BorderLayout.CENTER);
         setDefaultCloseOperation(DISPOSE_ON_CLOSE);
         setVisible(true);
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.border.*;
    * Insert the type's description here.
    * Creation date: (03-12-2002 14:17:45)
    * @author: Alexandre Spain
    public class PreviewContainer extends JPanel {
         protected int H_GAP = 16;
         protected int V_GAP = 10;
    * PreviewContainer constructor comment.
    public PreviewContainer() {
         super();
    public void doLayout() {
         Insets ins = getInsets();
         int x = ins.left + H_GAP;
         int y = ins.top + V_GAP;
         int n = getComponentCount();
         if (n == 0)
              return;
         Component comp = getComponent(0);
         Dimension dc = comp.getPreferredSize();
         int w = dc.width;
         int h = dc.height;
         Dimension dp = getParent().getSize();
         int nCol = Math.max((dp.width-H_GAP)/(w+H_GAP), 1);
         int nRow = n/nCol;
         if (nRow*nCol < n)
              nRow++;
         int index = 0;
         for (int k = 0; k<nRow; k++) {
              for (int m = 0; m<nCol; m++) {
                   if (index >= n)
                        return;
                   comp = getComponent(index++);
                   comp.setBounds(x, y, w, h);
                   x += w+H_GAP;
              y += h+V_GAP;
              x = ins.left + H_GAP;
    public Dimension getMaximumSize() {
         return getPreferredSize();
    public Dimension getMinimumSize() {
         return getPreferredSize();
    public Dimension getPreferredSize() {
         int n = getComponentCount();
         if (n == 0)
              return new Dimension(H_GAP, V_GAP);
         Component comp = getComponent(0);
         Dimension dc = comp.getPreferredSize();
         int w = dc.width;
         int h = dc.height;
         Dimension dp = getParent().getSize();
         int nCol = Math.max((dp.width-H_GAP)/(w+H_GAP), 1);
         int nRow = n/nCol;
         if (nRow*nCol < n)
              nRow++;
         int ww = nCol*(w+H_GAP) + H_GAP;
         int hh = nRow*(h+V_GAP) + V_GAP;
         Insets ins = getInsets();
         return new Dimension(ww+ins.left+ins.right,
                                  hh+ins.top+ins.bottom);
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.border.*;
    * Insert the type's description here.
    * Creation date: (03-12-2002 14:17:06)
    * @author: Alexandre Spain
    public class PagePreview extends JPanel {
         protected int m_w;
         protected int m_h;
         protected Image m_source;
         protected Image m_img;
    * PagePreview constructor comment.
    * @param target java.awt.print.Printable
    public PagePreview(int w, int h, Image source) {
         m_w = w;
         m_h = h;
         m_source= source;
         m_img = m_source.getScaledInstance(m_w, m_h,
              Image.SCALE_SMOOTH);
         m_img.flush();
         setBackground(Color.white);
         setBorder(new MatteBorder(1, 1, 2, 2, Color.black));
    public Dimension getMaximumSize() {
         return getPreferredSize();
    public Dimension getMinimumSize() {
         return getPreferredSize();
    public Dimension getPreferredSize() {
         Insets ins = getInsets();
         return new Dimension(m_w+ins.left+ins.right,
                                  m_h+ins.top+ins.bottom);
    public void paint(Graphics g) {
         g.setColor(getBackground());
         g.fillRect(0, 0, getWidth(), getHeight());
         g.drawImage(m_img, 0, 0, this);
         paintBorder(g);
    public void setScaledSize(int w, int h) {
         m_w = w;
         m_h = h;
         m_img = m_source.getScaledInstance(m_w, m_h,
         Image.SCALE_SMOOTH);
         repaint();

  • "insert" "section" causes unwanted blank page for numbering

    I have a section/page numbering problem.
    I want to start page numbering on the 5th page (Chapter One). But.. when I insert a Section Break between the end of the TOC and first Chapter (where I want re-numbering to start) it causes a blank page to be inserted after the TOC and before the section break...
    How do I insert a section break between TOC and Heading that's set to "start new page" without getting blank page?

    Thanks I've got your file and have fixed it. It had to do with the way you constructed it.
    This is how to do what I did after I deleted your existing T.O.C.:
    1 click at foot of Title page > Menu > Insert > Section Break
    2 Type "Table of Contents" return > Menu > Insert > Table of Contents
    3 Menu > Insert > Section Break
    If there is a return at the beginning of the Introduction page just delete it.
    I also tidied up your layout a bit and have emailed it back.
    Peter

  • Title of a page

    The name of a particular page is stored in the column 'component_attribute' of the object FLOWS_010500.wwv_flow_activity_log. Now, I would like to know where the 'Title' of the page is stored.
    The 'Name' and 'Title' of a page could be different. For example, the name of a page could be 'PG_HOME' while the title could be 'Home'.
    I need this information as my application tries to get the 'title' of each page of several different application.
    Am using version 1.5.1.00.12 of HTMLDB.

    Good luck!
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Johnny the boy" <[email protected]> wrote
    in message
    news:frbvkp$lb8$[email protected]..
    > figured it out using this post i found thx to Murray
    >
    >
    >
    > This always happens when you do not make your template
    properly.
    >
    > If you create a page, then use FILE | Save, browse to
    the Templates
    > folder,
    > and save the page with a dwt extension, you will get
    exactly what you
    > describe.
    >
    > What you should do is use FILE | Save as Template. In
    that case, DW puts
    > the editable region around the title tag, and in the
    head area, just like
    > it
    > should do.
    >
    > To fix this, create a new blank page. Use the proper
    method to save it as
    > a
    > template. Look at the code around the title tag and make
    your template's
    > title tag look like that by copy/paste. While you are at
    it, copy the
    > editable region in called "head" and paste that into
    your page's head,
    > too.
    >
    > --
    > Murray --- ICQ 71997575
    > Team Macromedia Volunteer for Dreamweaver
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    >

  • Add section title to header/footer? Using Pages 5.2 (or later)

    I couldn't find a way to automatically have the title of the current section in the header or footer of a document.
    Potentially I am missing something, I haven't tried to do this before, but it seems like a basic function of having a TOC in the first place.

    Add an image to any page in the section, then drag it where you want it to appear on each page.
    Reduce the opacity using the slider in the Style pane of the Format inspector to change the object’s transparency.
    Choose Arrange > Section Masters > Move Object to Section Master (from the Arrange menu at the top of your computer screen).

  • Insert a image or text at the bottom of each page.

    Hi,
    I'm VERY new to reports and I'm trying to add a image or a text block at the bottom of each page. How is it done??
    Help!!!,
    Larry

    Hi Kartracer
    1-Select main Section button on the tool bar wich have a little blue arrow,u will see the displayed hint that says
    2- Select the insert menu and then the image and define ur image path.
    Tell me then what's happened...
    Regards,
    Abdetu..

  • I'm having trouble formatting a book I'm writing using Pages. I need to put my name and book title in the upper left hand corner of EACH page- opposite the page number. How do I do this?

    I'm having trouble formatting a book I'm writing using Pages. I need to put my name and book title in the upper left hand corner of EACH page- opposite the page number. How do I do this?

    And if this is the new IOS Pages v2 (or the older IOS Pages 1.7.2), you click the wrench icon and then Document Setup. Tap the document header to edit it, and apply the same instructions that I gave previously for OS X Pages v5.
    The process for Pages ’09 v4.3 is slightly different. You click the Header, and enter your document title and your name as previously described. You will need Menu > View > Show Ruler. Click once in the ruler at the first or second mark after the 7 inch (roughly 18cm). This will set a tab. Now position the insertion mark behind your title and tab once to the mark you set. Now you can Menu > Insert > Auto Page Numbers ...

  • How to insert page number on each page for Cross-Tab report?

    Hi,
    I have created a Cross-Tab in the section Report Header via Crystal Reports 11.
    Now, I want to created more Cross-Tabs, and each page has one Cross-Tab.
    So, I insert Report Headers to contain Cross-Tabs. But, the report only shows the page number at the last page.
    How to insert page number on each page?
    Thanks in advance.

    Hi,
    Well, the easiest solution is to place the Cross-tab in the Report Footer, Of course, ONLY if the report contains this single object which I'm assuming is not the case.
    If you do not wish to place the cros-tab in the Report Footer, here's what you need to do:
    1) Create a formula;
    whilereadingrecords;
    2) Create a group on this formula. If the report already contains groups, move this formula to the top of the grouping list. It won't affect the other groups or records in any way.
    3) Move the Cross-tab from the Report Header to the Group Header1 and suppress Group Footer1
    4) Add the Page Number field to the Page Footer
    Let me know how this goes!
    -Abhilash

  • Repeat Group Header On Each Page with Underlay Following Sections

    How to overcome the following problem?
    1. I am using Crystal report 13.0.5.891
    2. I have designed the report with Group Header as [Underlay following section]
    3. I have checked the group to repeat on each page
    4. Number of lines in the group header may vary
    5. Number of lines in details may also vary
    My objective is to print the separator line placed in group footer, after the
    header lines or after the detail lines which one is taking the maximum lines.
    This is not happening, and I am getting the following output, which is not meeting my requirement
    Where the "LINE IN GROUP FOOTER" should appear after "Group 1 Header Line 6" in the second page
    as the report ends there, but in the output, the line is coming just after the end of detail record.
    like following
    As a result of this, the next record of the group is overlapping with the first record and creating a mesh
    ------------------------------------------------------------------------------------------------------------------------------------ PAGE 1 OF 2
    Column Heading 1                       Column Heading 2                      Column Heading 3
    Group 1 Header Line 1                 Detail Record 1 Line 1
    Group 1 Header Line 2                 Detail Record 1 Line 2
    Group 1 Header Line 3                 ----------------------------------------------------------------------------------
    Group 1 Header Line 4                 Detail Record 2 Line 1
    Group 1 Header Line 5                 Detail Record 2 Line 2
    Group 1 Header Line 6                 Detail Record 2 Line 3
                                                      Detail Record 2 Line 4
                                                      Detail Record 2 Line 5
    ======================LINE IN GROUP FOOTER========================
    PAGE BREAK
    ------------------------------------------------------------------------------------------------------------------------------------ PAGE 2 OF 2
    Column Heading 1                       Column Heading 2                      Column Heading 3
    Group 1 Header Line 1                    Detail Record 3 Line 1
    Group 1 Header Line 2                    Detail Record 3 Line 2
    Group 1 Header Line 3                    Detail Record 3 Line 3
    Group 1 Header Line 4                    Detail Record 3 Line 4
    ======================LINE IN GROUP FOOTER========================
    Group 1 Header Line 5
    Group 1 Header Line 6
    Thanks in advance.

    Thanks for you response.
    I have updated the crystal report to 13.0.13.1597.
    Still I am getting the same issue. I am generating the report in PortableDocFormat and exporting the byte array to download from the web browser. The application is developed in ASP.NET 2012 .net version 4.5.
    I am also uploading 2 images of the final pdf that I am getting, for your opinion.
    The report appeared in the first image is ok, where the first group has 2 child records and the second group has 1 child, but whenever I am changing the mapping in the database, where the first group has 1 child and second group has 2 child, my report is not working. as it is clear from the second image
    Also after installing the new version of CR, my existing codes are not working, and giving the following exception in the line where ExportToStream is written.
    Unable to cast object of type 'FileStreamDeleteOnClose' to type 'System.IO.MemoryStream'.
    I have modified the existing code to overcome this exception.

  • How to make the column title needs to be on each page?

    If a document has more than one page than a column title needs to be on each page,I can use Word fuction to do that. But If I Only use XML publisher, How to do it.
    Message was edited by:
    zhengr

    Hi
    If you mean how do you repeat the column titles on a table if the table extends over several pages then all you need do is:
    Highlight the table header row
    Right click and select table properties
    On the Row tab, specify that the header row should be repeated on every page
    Save your work
    XMLP will now respect the word setting and will repeat the header row on evey page the table needs.
    Regards, Tim

  • Multiple sections, each section different first/next page headers

    Hi,
    Ï'm developing a PO (purchase order)-document.
    This document has 2 sections.
    First sections contains PO-documents. Second section contains PO-copies.
    First section has different header for first page and next pages for each seperate PO. So multiple PO's are printed and page 1 of each PO has different header than page 2 of same PO. This works fine.
    For the copies I added a new section which is basically the same as the first except the fact that the first page and next page headers for the PO-copies contain the word "DUPLICAAT".
    Section 1 still works fine.
    However in section 2 all pages of each PO, including the first page, get the next-page header. The first page of a PO in section 2 does NOT get the different first page header.
    Just to get it working I created a very simple rtf with 2 sections and 2 pages for each section. For each section I appointed a different header for the first page and the second page. The rtf contains only fixed text, no xml-tags. In MS-Word the rtf-template looks fine, each page has the expected header. I loaded any XML-file and viewed the PDF-output. Result: first page of section 2 has the next-page header for section 2 instead of the first-page header.
    Is this a bug or am I doing things in the wrong way ?
    I can upload the testing template if necessary.
    Thanks in advance,
    Jan Blok

    Any suggestions, anyone ?

  • Someone said to add the title on each web page on the main text box. Which is that?

    I read in the discussion items that you should not bother with meta tags but just wirte the title in your main text box on each page with the word image in the beginning. Where in the main text box? The first one on the page? That has my web page title. Help. Judy

    iWeb uses the textbox in the Header layer of an iWeb page as the title in the browserwindow.
    Do not remove the original textbox, as you cannot replace it other than by selecting another theme and then change it back to the original theme again. Ruining the layout in the process.
    If the textbox in the Header is missing, iWeb uses a textbox down the page in the Content layer. If that textbox is also missing, it uses another textbox. If that fails it uses the pagename in the Sidebar.
    Sometimes you may want a different text in the titlebar and not display it on the page itself. Or not display it at all.
    So use that textbox in the Header layer. Type your text. Then select the textbox. In the Inspector choose T, click a color to open the color palette and drag the opacity slider to 0 (zero).
    Do Command-T to open the font palette and make the font smaller. (Or do Command--(minus)) Also use a font that doesn't change to an image. Arial is a good font. Perhaps do it first before making the text invisble.
    Resize the textbox. You may want to change the height of the Header layer.
    Do Command-Shift-B to move the textbox to the back, possibly behind other objects.
    Next add a optional second textbox to the Header layer and use that one to display text on the page.
    If you want to move the textbox to the front again to make changes, but can't remember the location on the page, drag the area with the mouse to select the objects.
    Deselect objects you do not want to move forward by Command-dragging the mouse over these objects.
    Next do Command-Shift-F to move the textbox to the front. Repeat the steps in reverse order to make the text visible.
    Practice.

  • HOW DO I STOP MY JSP PAGE FROM INSERTING DATA IN DATABASE EACH TIME REFRESH

    Hi,
    HOW DO I STOP MY JSP PAGE FROM INSERTING DATA IN DATABASE EACH TIME REFRESH?
    Thanks

    emekaco wrote:
    Hi,
    HOW DO I STOP MY JSP PAGE FROM INSERTING DATA IN DATABASE EACH TIME REFRESH?
    ThanksSTOP SHOUTING!
    now, while displaying the form generate some random number, or take the current time in millis or whatever. Put that number in a hidden field. Insert that unique number along with the real data into the database, but before you do check if the number already exists. If it does you can be pretty sure this is a resubmit of the same data, so don't allow it. This is one way of many to prevent resubmission of existing data.
    A good way to prevent a refresh from resubmitting altogether is to do a redirect to a result page right after you deal with the POST request. When the user presses refresh then, he/she will refresh the redirect and not the form submit.

  • Get each page's number(page_id) and its title automatically

    hi,
    i want to get each page's number(page_id) and its title in an APEX application automatically.how can i do it?????can anyone help me??????
    thanks a lot in advance!!!!!!!

    anonymous,
    We would appreciate your showing your first name (at least) in your profile and your changing your handle to something easier to read. Thanks.
    i want to get each page's number(page_id) and its title in an APEX application automatically.What you asked for is not possible.
    If, during an application page view, you would like to reference the page ID, use the bind variable :APP_PAGE_ID, the function call v('APP_PAGE_ID'), or the substitution string &APP_PAGE_ID., the use of each being particularly suited for different contexts as explained in the documentation.
    The page title can be obtained by querying the publicly accessible view apex_application_pages, qualifying such query with the application ID and page ID.
    Also, if you avoid non-standard punctuation, I believe your meaning will be more effectively conveyed.
    Scott

  • Gap on each page of resume (template)

    Pretty sure I started my resume using the elegant resume template on Pages. With that it created a large "header" for "company name" etc. with decorative line. I have this on my resume with my name above the line and address below the line and when you click on it it's all one moveable object (unlike in the template, I don't remember what I did to do that).
    Also note that this "header" is not actually within the document header section.
    Everything looks great but on each subsequent page there is a large gap as if the name/address object is there on each page even though it is not and I can't get rid of this gap.

    Using multiple returns is a very crude and amateurish way of laying out text.
    Firstly determine what should and should not be in the Headers and Footers. Company Name and Address should not be in the Header if they are only required once on the front page. They should be in a floating TextBox or part of the Initial Text.
    Headers and Footers should be reserved for what they are meant for, repeating elements like Chapter titles and page numbers.
    To maintain the necessary spacing to the text under use Space after paragraph.
    In Pages '09 you can do this more neatly with First Page is different and using a Layout Break to start the page lower.
    Peter

Maybe you are looking for

  • Executing Native SQL query for oracle

    Hi, I want to run following native sql query but it is giving me error ora:933, DATA: BEGIN OF WA,       TSP_NAME(255) TYPE C,       PER_USAGE(10) TYPE C,       END OF WA. EXEC SQL PERFORMING loop_output. select t.tablespace_name,'(' || TO_CHAR(ROUND

  • Itunes needs quick time? Instillation help please!

    My computer crashed and I took it to a friend a few days ago to get it cleaned off. He cleaned everything off and gave it back to me running like a brand new comp. So I was in the middle of downloading all of my things and I was downloading itunes ag

  • Help in controlling database online.

    Hi there, I'm very new to web application development, I'm in the process of testing dreamweaver cs3 and Developer toolbox, so far everything is very interesting, lots of good example everywhere but here is what I would like to accomplish and I don't

  • I want to learn developing apps, but I'm under 18.

    I'm currently taking computer programming classes in school which are geared towards Microsoft VB and I wanted to get into learning other languages and even start developing apps since those are widely popular. However, in order to gain access to the

  • Safari doesn't display site header on some sites

    Running Safari 7.1.2 on Mavericks on a mid-2009 MacBook Pro On some sites, such as Reddit, Trello, Huffington Post,  Safari does not display the site's header, making sign-in or search or certain navigation unavailable. Also on these sites, URLs in m