Controlling order/frequency of pages in multi page report.

I'm rewording my question and subject so hopefully it will draw in the right person to help me.
I have a PO report that needs to have a 'Terms and Conditions' page print after each PO number. That means if I print a one page PO or a five page PO, the 'Terms and Conditions' should print after the last page of each, before the next PO is generated. I don't remember how to control pages like this. I did a report once that would generate up to 9 different pages, depending on how many lines printed in different parts of the first page. I was using format triggers then, but unfortunately don't have a copy of that report to remind me how I did it. So how do I tell the reports, ok, you've come to the last page of this PO, generate the Terms page now before beginning the next PO.
Thanks for any help you may be able to give.
Kurt

Andrew,
That would work great except I need to maintain the margin around the main part of the report that tracks the totals. If I place the 'T&C' of the report in the frame, I'll end up with the page totals printing at the bottom of the 'T&C'. In other instances like this, I'd move the totals from the margin into the main part of the report. Due to the nature of this report, it would be a huge undertaking for me to try to reconfigure things. I know there are ways to force pages from other pages. Any other ideas come to mind?
Thanks.
Kurt

Similar Messages

  • In Mavericks Mail, how do you attach a PDF (single-page or multi-page) without the PDF being embedded in the message?

    In Mavericks Mail, how do you attach a PDF (single-page or multi-page) without the PDF being embedded in the message?

    I attached a .doc file to the message and it appeared as an icon, so I did not have to convert it. I attached a .jpg image — it appeared as a full image, but when I Command+clicked the image, the view as icon window did not appear on the screen. Likewise, I again checked the Mail Menu Bar, and did see 'View as icon.' Side note: I routinely use Mavericks Mail in Classic Mode, so I decided to try both modes. Same results in both modes. I checked my Mail Preferences, but couldn't find anything there, either. I'll continue to look around, but this has me stumped. Thanks for your assistance.  

  • Adobe only prints first page of multi-page PDF documents.

    On a military network,  ever since users have been upgraded to Adobe Pro 9,  only the first page of their multi-page documents will print from a particular network printer.
    The OS is Windows XP.
    Adobe Pro version is 9.1.2
    Network printer is a Xerox Phaser 3500PS.
    Can print other non-PDF documents to the same printer with no problems.
    Can print the same PDF documents to other printers in the area and all pages go through.
    No error messages on printer and no error message prints out.
    I have had the users change their Font and Resource Policy to "Send for each page"
    I have reloaded the Xerox Phaser 3500PS drivers.
    I have had the users remove and remap the network printer.
    I have had them try to print just two pages
    I am unable to implement Adobe's Postscript Printer Driver as this is a military network and I cannot install unapproved software on the network printer server.
    Any constructive suggestions would be appreciated.

    Figured it out.
    Adobe Acrobat/Reader is apparently very picky about printer drivers.
    I had to have the users delete their mapped network printers from their Printers & Faxes window.
    Then I opened the registry and went to:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Environments\Windows NT x86\Drivers\Version-3
    I deleted the drivers for the printer(s) the customer had mapped (e.g. Xerox 6360DN, .. etc.)
    I rebooted the computer
    I had the customer logon and remap their printer.
    That resolved the issue.

  • Acrobat Pro 9.0 printing to Canon ImageRunner 3220 prints only first page of multi-page documents?

    We just got the new CS4 and with the Acrobat Pro 9.0 install, we cannot seem to print multi-page documents.  Only the first page comes through, and the queue clears as though the document's been fully printed.
    We are running Windows XP Pro SP3, and the printer is the Canon ImageRunner irC3220.
    I do not want to use the "Print as Image" option, as I don't want to rasterize the file before sending it to the printer. It's an important document and it's imperative that it is printed at high quality.
    We had no problems printing with Acrobat 8.
    I've seen old posts regarding this issue, but couldn't find anything newer that might have had an updated solution.
    Thank you in advance!! any help would be sooo appreciated right now!

    Great! Many thanks
    Is there actually a kind of marketplace for Javascipts for Adobe Acrobat Pro somewhere? ...
    Really useful!

  • My C4180 will only print first page of multi page document.

    Hi, My C4180 printer will only print the first page of a multi page document - any ideas as to why?

    Hello @highsal51 ,
    Thank you for taking the time to post on the HP Forums today! Hope you enjoy the experience.
    So that I can get you the answer you are looking for, please answer the following questions.
    1. What Operating System are you using? Press the link to find out, in case you don't know already. http://whatsmyos.com/
    2. How is your printer connected to your computer?
    3. What software are you using to print?
    4. Do you experience this through printing with all programs?
    Look forward to hearing back from you. Have a great day!
    I worked for HP.

  • JAI - problem displaying additional pages from multi-page image

    Hi,
    I have 10 page multipage tiff images. And i would like to show the images one-by-one on a ScrollingImagePanel.
    I have a Main frame with two panels. Panel1 which shows the ScrollingImagePanel.
    And Panel2 has two buttons. LOAD Button show the 1st page on the ScrollingImagePanel.
    And NEXT button is suppose to show the 2nd page and continue until the end of the multipage images.
    I am having problem with the NEXT button. I wrote a program that show the page number and page height
    on the output screen. It shows the page# and different heights. But it would not show the images on the ScrollingImagePanel.
    It just shows the 1st page. I would appreciate if you can help me out with this problom.
    Please find the code which is written in JBuilder.
    // Main class
    package untitled1;
    import java.awt.*;
    import javax.swing.UIManager;
    import java.awt.*;
    import java.io.File;
    import java.io.IOException;
    import java.awt.Frame;
    import java.awt.image.RenderedImage;
    import javax.media.jai.widget.ScrollingImagePanel;
    import javax.media.jai.NullOpImage;
    import javax.media.jai.OpImage;
    import com.sun.media.jai.codec.SeekableStream;
    import com.sun.media.jai.codec.FileSeekableStream;
    import com.sun.media.jai.codec.TIFFDecodeParam;
    import com.sun.media.jai.codec.ImageDecoder;
    import com.sun.media.jai.codec.ImageCodec;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import java.awt.event.*;
    * <p>Title: </p>
    * <p>Description: </p>
    * <p>Copyright: Copyright (c) 2002</p>
    * <p>Company: </p>
    * @author unascribed
    * @version 1.0
    public class Application1 {
    boolean packFrame = false;
    //Construct the application
    public Application1() {
    Frame2 frame = new Frame2();
    frame.setSize(820,700);
    //Validate frames that have preset sizes
    //Pack frames that have useful preferred size info, e.g. from their layout
    if (packFrame) {
    frame.pack();
    else {
    frame.validate();
    //Center the window
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    Dimension frameSize = frame.getSize();
    if (frameSize.height > screenSize.height) {
    frameSize.height = screenSize.height;
    if (frameSize.width > screenSize.width) {
    frameSize.width = screenSize.width;
    frame.setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2);
    frame.setVisible(true);
    //Main method
    public static void main(String[] args) {
    new Application1();
    // Frame2 Class
    package untitled1;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.UIManager;
    import java.io.File;
    import java.io.IOException;
    import java.awt.Frame;
    import java.awt.image.RenderedImage;
    import javax.media.jai.widget.ScrollingImagePanel;
    import javax.media.jai.NullOpImage;
    import javax.media.jai.OpImage;
    import com.sun.media.jai.codec.SeekableStream;
    import com.sun.media.jai.codec.FileSeekableStream;
    import com.sun.media.jai.codec.TIFFDecodeParam;
    import com.sun.media.jai.codec.ImageDecoder;
    import com.sun.media.jai.codec.ImageCodec;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import java.awt.event.*;
    import java.awt.image.renderable.ParameterBlock;
    import javax.media.jai.*;
    import javax.media.jai.widget.*;
    import com.sun.media.jai.codec.*;
    import java.util.*;
    * <p>Title: </p>
    * <p>Description: </p>
    * <p>Copyright: Copyright (c) 2002</p>
    * <p>Company: </p>
    * @author unascribed
    * @version 1.0
    public class Frame2 extends Frame {
    JPanel jPanel1 = new JPanel();
    JPanel jPanel2 = new JPanel();
    JButton loadButton = new JButton();
    public static ScrollingImagePanel panel, panels;
    JButton nextButton = new JButton();
    public String filename= "144.tif";
    public File file;
    public SeekableStream s;
    public ImageDecoder dec;
    protected int imageWidth, imageHeight;
    public int nextpage = 1;
    public RenderedOp image2 = null;
    public RenderedImage op = null;
    //Frame Constructor
    public Frame2() {
    try {
    jbInit();
    catch(IOException e) {
    e.printStackTrace();
    private void jbInit() throws IOException {
    this.setLayout(null);
    this.addWindowListener(new java.awt.event.WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    this_windowClosing(e);
    jPanel1.setBackground(Color.white);
    jPanel1.setBorder(BorderFactory.createLineBorder(Color.black));
    jPanel1.setBounds(new Rectangle(1, 7, 816, 648));
    jPanel1.setLayout(null);
    jPanel2.setBackground(Color.lightGray);
    jPanel2.setBorder(BorderFactory.createLineBorder(Color.black));
    jPanel2.setBounds(new Rectangle(1, 657, 816, 42));
    loadButton.setText("Load");
    loadButton.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    try{                          
    loadButton_actionPerformed(e);
    catch(IOException IOE){
    System.out.println(IOE);
    nextButton.setText("Next");
    nextButton.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    try {
    nextButton_actionPerformed(e);
    catch(IOException IOE){
    System.out.println(IOE);
    this.setResizable(false);
    this.add(jPanel1, null);
    this.add(jPanel2, null);
    jPanel2.add(loadButton, null);
    jPanel2.add(nextButton, null);
    void this_windowClosing(WindowEvent e) {
    System.exit(0);
    //Load Image Button
    void loadButton_actionPerformed(ActionEvent e) throws IOException { 
    file = new File(filename);
    s = new FileSeekableStream(file);
    dec = ImageCodec.createImageDecoder("tiff", s, null);
    RenderedImage op =
    new NullOpImage(dec.decodeAsRenderedImage(),
    null,
    OpImage.OP_IO_BOUND,
    null);
    Interpolation interp = Interpolation.getInstance(Interpolation.INTERP_BILINEAR);
    ParameterBlock params = new ParameterBlock();
    params.addSource(op);
    params.add(0.55F); // x scale factor
    params.add(0.335F); // y scale factor
    params.add(0.00F); // x translate
    params.add(0.00F); // y translate
    params.add(interp); // interpolation method
    image2 = JAI.create("scale", params);
    int width = (int)(image2.getWidth() * .73);
    int height = (int)(image2.getHeight() * .73);
    panel = new ScrollingImagePanel(image2, 819, 648);
    jPanel1.add(panel);
    this.setVisible(true);
    //Next Image Button
    void nextButton_actionPerformed(ActionEvent e) throws IOException {
    TIFFDecodeParam param = null;
    file = new File(filename);
    s = new FileSeekableStream(file);
    dec = ImageCodec.createImageDecoder("tiff", s, param);
    nextpage++;
    System.out.println(nextpage);
    RenderedImage op1 =
    new NullOpImage(dec.decodeAsRenderedImage(nextpage),
    null,
    OpImage.OP_IO_BOUND,
    null);
    Interpolation interp = Interpolation.getInstance(Interpolation.INTERP_BILINEAR);
    ParameterBlock params = new ParameterBlock();
    params.addSource(op1);
    params.add(0.55F); // x scale factor
    params.add(0.335F); // y scale factor
    params.add(0.00F); // x translate
    params.add(0.00F); // y translate
    params.add(interp); // interpolation method
    image2 = JAI.create("scale", params);
    int width = (int)(image2.getWidth() * .73); //1.03);
    int height = (int)(image2.getHeight() * .73); //1.03);
    panels = new ScrollingImagePanel(image2, width, height);
    System.out.println(op1.getHeight());
    jPanel1.add(panels);
    this.setVisible(true);
    thanks in advance

    Take a look at this code.
    //Search the Policynumber
    void searchButton_actionPerformed(ActionEvent e) {
    try{
    nextButton.setEnabled(false);
    previousButton.setEnabled(false);
    String query = "SELECT * FROM PINFO WHERE POLICYNUMBER = '" +
    searchTextfield.getText().toUpperCase() + "'";
    ResultSet rs = Application1.stmt.executeQuery(query);
    while(rs.next()){
    pid = (rs.getInt("PID"));
    policynumber = rs.getString("POLICYNUMBER");
    firstName = rs.getString("FIRSTNAME");
    lastName = rs.getString("LASTNAME");
    jLabel2.setText(policynumber);
    jLabel3.setText(firstName);
    jLabel4.setText(lastName);
    catch(SQLException ex){
    System.err.println("SQLException: " + ex.getMessage());
    try{
    String query = "SELECT * FROM (UNMATCH U LEFT JOIN DOCUMENTTYPE D ON U.DOCUMENTTYPE=D.DOCNUMBER) WHERE PID = '" + pid + "' ORDER BY D.DOCUMENTCODE";
    ResultSet rs1 = Application1.stmt.executeQuery(query);
    clearJList();
    v.removeAllElements();
    jList1.setListData(v);
    v1.clear();
    while(rs1.next()){
    documentcode = rs1.getString("DOCUMENTCODE");
    uindex = rs1.getString("UINDEX");
    v.add(documentcode);
    v1.add(uindex);
    jList1.setListData(v);
    clearTextfield();
    catch(SQLException s){
    System.err.println("SQLException: " + s.getMessage());
    public void clearJList(){
    jList1.setListData(v);
    public void clearTextfield(){
    searchTextfield.setText("");
    // ****** Loads the selected Image
    void jList1_mouseClicked(MouseEvent e){
    try{
    vector.clear();
    nextpage = 1;
    currentpage = 1;
    nextButton.setEnabled(true);
    previousButton.setEnabled(false);
    if (spane != null)
    jPanel1.removeAll();
    seek = null;
    String query1 = "SELECT * FROM UNMATCH WHERE UINDEX = '" + v1.get(jList1.getSelectedIndex()).toString() + "'";
    rs2 = Application1.stmt.executeQuery(query1);
    while (rs2.next()){
    stream = rs2.getBinaryStream("IMAGE");
    seek = new MemoryCacheSeekableStream(stream);
    TIFFDecodeParam param = null;
    dec = ImageCodec.createImageDecoder("tiff", seek, param);
    try{
    totalPages = dec.getNumPages();
    jLabel1.setText("Page 1 of "+totalPages);
    if (nextpage==totalPages)
    nextButton.setEnabled(false);
    op1 =
    new NullOpImage(dec.decodeAsRenderedImage(nextpage-1),
    null,
    OpImage.OP_IO_BOUND,
    null);
    vector.addElement(op1);
    // ParameterBlock params = new ParameterBlock();
    // params.addSource(op1);
    // panel = new DisplayJAI(op1);
    panel = new DisplayJAI((RenderedImage)vector.elementAt(0));
    spane = new JScrollPane(panel);
    jPanel1.add(spane);
    jPanel1.validate();
    this.setVisible(true);
    catch(IOException dfs){
    } // while
    } // try
    catch(SQLException s){
    System.err.println("SQLException: " + s.getMessage());
    // Next Image
    void nextButton_actionPerformed(ActionEvent e) {
    try{
    if (spane != null)
    jPanel1.removeAll();
    ++nextpage;
    if (nextpage==totalPages)
    nextButton.setEnabled(false);
    previousButton.setEnabled(true);
    jLabel1.setText("Page " + nextpage +" of "+totalPages);
    TIFFDecodeParam param = null;
    dec = ImageCodec.createImageDecoder("tiff", seek, param);
    currentpage = nextpage;
    ParameterBlock paramblock = new ParameterBlock();
    paramblock.addSource(op1);
    vector.addElement(new NullOpImage(dec.decodeAsRenderedImage(nextpage-1),
    null,
    OpImage.OP_IO_BOUND,
    null));
    panel = new DisplayJAI((RenderedImage)vector.elementAt(currentpage-1));
    // panel = new DisplayJAI(op1);
    spane = new JScrollPane(panel);
    jPanel1.add(spane);
    setVisible(true);
    catch(IOException o){
    System.out.println(o);
    finally{
    // PreviousButton
    void previousButton_actionPerformed(ActionEvent e) {
    try{
    if (spane != null)
    jPanel1.removeAll();
    --nextpage;
    if (nextpage==1)
    previousButton.setEnabled(false);
    nextButton.setEnabled(true);
    jLabel1.setText("Page " + nextpage +" of "+totalPages);
    TIFFDecodeParam param = null;
    dec = ImageCodec.createImageDecoder("tiff", seek, param);
    currentpage = nextpage;
    vector.addElement(new NullOpImage(dec.decodeAsRenderedImage(nextpage-1),
    null,
    OpImage.OP_IO_BOUND,
    null));
    panel = new DisplayJAI((RenderedImage)vector.elementAt(currentpage-1));
    spane = new JScrollPane(panel);
    jPanel1.add(spane);
    setVisible(true);
    catch(IOException o){
    System.out.println(o);
    // Zoom ComboBox Item Select
    void jComboBox1_itemStateChanged(ItemEvent e) {
    if (e.getStateChange() == ItemEvent.DESELECTED)
    if (spane != null)
    jPanel1.removeAll();
    Interpolation interp = Interpolation.getInstance(Interpolation.INTERP_BICUBIC);
    ParameterBlock params = new ParameterBlock();
    params.addSource(op1);
    params.add(Float.valueOf(jComboBox1.getSelectedItem().toString()).floatValue()/100.0f);
    params.add(Float.valueOf(jComboBox1.getSelectedItem().toString()).floatValue()/100.0f);
    params.add(0.0F);
    params.add(0.0F);
    params.add(interp);
    // image2 = JAI.create("scale",params);
    vector.add(currentpage-1,JAI.create("scale",params));
    panel = new DisplayJAI((RenderedOp)vector.elementAt(currentpage-1));
    spane = new JScrollPane(panel);
    jPanel1.add(spane);
    jPanel1.validate();
    this.setVisible(true);
    repaint();
    // Rotate ComboBox Item Select
    void jComboBox2_itemStateChanged(ItemEvent e) {
    if (e.getStateChange() == ItemEvent.DESELECTED)
    if (spane != null)
    jPanel1.removeAll();
    type =null;
    type = transposeTypes[jComboBox2.getSelectedIndex()];
    ParameterBlock pb = new ParameterBlock();
    pb.addSource((RenderedImage)vector.elementAt(currentpage-1));
    pb.add(type);
    PlanarImage im2 = JAI.create("transpose", pb, renderHints);
    vector.add(currentpage-1,im2);
    panel = new DisplayJAI((RenderedOp)vector.elementAt(currentpage-1));
    spane = new JScrollPane(panel);
    jPanel1.add(spane);
    jPanel1.validate();
    this.setVisible(true);
    void printButton_actionPerformed(ActionEvent e) {
    print();
    protected void print() {
    PrinterJob pj = PrinterJob.getPrinterJob();
    pj.setPrintable(this);
    // PageFormat format = pj.pageDialog(pj.defaultPage());
    // Book bk = new Book();
    // bk.append(this,pj.defaultPage());
    // pj.setPageable(bk);
    if(pj.printDialog()){
    try{
    pj.print();
    catch(Exception e){
    System.out.println(e);
    else{
    System.out.println("Did Not Print Any Pages");
    public int print(Graphics g, PageFormat f, int pageIndex){
    if(pageIndex >= 1){
    return Printable.NO_SUCH_PAGE;
    Graphics2D g2d = (Graphics2D) g;
    g2d.translate(f.getImageableX(), f.getImageableY());
    if(op1 != null){
    double scales = Math.min(f.getImageableWidth()/ op1.getWidth(), f.getImageableHeight()/ op1.getHeight());
    g2d.scale(scales,scales);
    printImage(g2d, op1);
    return Printable.PAGE_EXISTS;
    else{
    return Printable.NO_SUCH_PAGE;
    public void printImage(Graphics2D g2d, RenderedImage image){
    if((image == null)|| (g2d == null)) return;
    int x = printLoc.x;
    int y = printLoc.y;
    AffineTransform at = new AffineTransform();
    at.translate(x,y);
    g2d.drawRenderedImage(image,at);
    public void setPrintLocation(Point d) {
    printLoc = d;
    public Point getPrintLocation() {
    return printLoc;

  • How to print an interactive page curl mult-page PDF

    I created a multi-page interactive page curl PDF and when I go to print it out, I am only able to print the first spread. How does one print the entire document?

    Hi,
    thanks for your reply. Initially the document should be open so that the user can input data into the form. But after the creater has finished his data input I would like to convert it to a static PDF so that the document can not be changed anymore. By converting it to a static document the document approvers will then also get the possibility to add comments.
    Regards, Michael

  • Error on first page of multi page print run

    When I select a number of drawings to print from a directory list, all at A3, the the first page always prints an enlarged section of part of the drawing all following pages print the full extent of the drawing as required. how can I fix this problem?

    I think the following SAP Note would help you
    [https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313335333133303330%7D.do]
    Regards,
    Raghavendra

  • Removal of page in multi page flow (Train)

    Hi all ,
    I have a series of pages (train) in which I have to remove / hide a page ( I mean end user should not see that page in the flow) . For exampe , if the flow is :
    Page A --> Page B --> Page C --> Page D . The requirement is to remove the Page C .
    Any suggestions / directions will be of great help .
    Thanks for your time & attention ...

    Hi Reetesh ,
    The personalization helps us in removing the visual train link at the top of the page . But not the actual page . Any pointers on how to remove the actual page in the flow (train) .
    Thanks for your time..
    Edited by: 786533 on Aug 30, 2010 2:45 PM

  • Multi page recordset output from ASP page on Spry Tabbed Panel Widget

    I am using a simple Spry Tabbed panel set on my asp page to show the output from different ASP pages, inside the tabbed panels. The tabbed panels on the page under consideration (destination page) display the output from different asp pages (source pages). The source asp pages generate multi page outputs which are paginated on the source page itself and pagination links are displayed on the source page itself.
    However, we dont want to display the source page outside of the tabbed panel, but instead the output content from the source asp pages should show inside the tabbeed panels only. The first page generated by the source asp page displays correctly inside the tabbed panel. However, when the user clicks on the links for the next page generated by the source asp page, but which is being displayed inside the destination page tabbed panel, they dont display the next page inside the tabbed panel. Instead the source asp page displays the output outside the tabbed panel destination  page.
    Please advise on how to ensure that the user can page through the recordset generated by the source asp page by clicking on the pagination links at the bottom of the records, while ensuring that the output displays within the tabbed panels on the destination asp page.
    I am enclosing the source code being used to generate the spry tabbed panel widget and also updating it with the output from the source asp page. In this case, the code given below is from the main page containing the widget and the source asp page is "sample.asp", which generates multi page output.
    Please note that I am not too keen on using xml data sets output from the source asp page, but would be more comfortable with directly using the asp pages to fill the tabbed panel content.
    Please help
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Untitled Document</title>
    <script language="javascript" src="/SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
    <script src="/SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="/SpryAssets/SpryData.js" type="text/javascript"></script>
    <link href="/SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <div id="TabbedPanels1" class="TabbedPanels">
      <ul class="TabbedPanelsTabGroup">
          <li class="TabbedPanelsTab" tabindex="0" onclick="Spry.Utils.updateContent('two','sample.asp?page=' <%=i%>); Spry.Data.initRegions();" >Tab 1</li>
           <li class="TabbedPanelsTab" tabindex="0">Tab 2</li>
      </ul>
      <div class="TabbedPanelsContentGroup">
        <div id=two class="TabbedPanelsContent">Content 1</div>
        <div class="TabbedPanelsContent">Content 2</div>
      </div>
    </div>
    <script type="text/javascript">
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
    </script>
    </body>

    I fully agree that the problem does not lie with tthe tabbed panels.
    The solution would probably be first required to be tried using ajax on any div tab.
    Then the same code would have to be used on Sprytabbed panel. Hence, the following may be advised:
    1. Sample code for server side pagination and displaying inside any div tag and refreshing it using ajax. the update link would also lie inside the div tag which would show the next/ previous page without reloading the page.
    2. Then adapting the refresh technique using ajax in the Spry Tabbed panel using the inbuilt updatecontent method of the Spry Tabbed panels.
    In order to achieve the above, I am getting the recordset output in the tab content as expected. The recordset is also getting the pagination links from server side asp as required.
    However, it is also generating the following error.
    Webpage error details
    Message: Unterminated string constant
    Line: 9
    Char: 56
    Code: 0
    URI: http://localhost/test/test5.asp
    The sourcecode is as given below. If you can help with the error indicated above, my problem would probably get solved.
    <html><head>
    <title>Untitled Document</title>
    <link href="/SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css">
    <script src="/SpryAssets/SpryURLUtils.js" type="text/javascript"></script>
    <script src="/SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
    <script src="/SpryAssets/SpryData.js" type="text/javascript"></script>
    <script src="/SpryAssets/xPath.js" type="text/javascript"></script>
    </head>
    <body>
    <div id="TabbedPanels1" class="TabbedPanels">
      <ul class="TabbedPanelsTabGroup">
        <li class="TabbedPanelsTab" tabindex="0" onclick="Spry.Utils.updateContent('one','untitled-5.asp');">Tab 1</li>
        <li class="TabbedPanelsTab" tabindex="0" >Tab 2</li>
      </ul>
      <div class="TabbedPanelsContentGroup">
        <div id=one class="TabbedPanelsContent">Content 1</div>
        <div id ="two" class="TabbedPanelsContent">Content 2</div>
      </div>
    </div>
    <script type="text/javascript">
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
    </script>
    </body>
    </html>

  • Multi page form id - sessions? cookies? url?

    i want to display display records just inserted into mysql database on a result page of multi page form.
    the page won't just display the record set.
    i get this error message.....
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
    here is my code....below:
    <?  session_start();?>
    <?php require_once('Connections/product.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $primaryKey = $_SESSION['form']['insertKey'];
    mysql_select_db($database_product, $product);
    $query_Recordset1 = "SELECT * FROM capital WHERE cap_id = $primaryKey";
    $Recordset1 = mysql_query($query_Recordset1, $product) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    ?>
    where did i go wrong?

    thanks for ur anser ....but i still get same error message
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
    after using this code as u sugested
    $primaryKey = $_SESSION['form']['insertKey'];
    mysql_select_db($database_product, $product);
    $query_Recordset1 = "SELECT * FROM capital WHERE cap_id = ".$primaryKey."";
    $Recordset1 = mysql_query($query_Recordset1, $product) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    pls what is wrong?
    thanks

  • How to make multi-page PDFs?

    A question on this in the Archives did not answer my problem. Until recently, I could easily make multipage PDFs from Pages on my iMac (10.8.4). Now suddenly it only makes a PDF of the first page of multi-page files. Cannot find anyplace to change that back. HOW do I make multi-page PDFs again?

    Check this portion of your code.
    if(rs.next())
       response.sendRedirect("02_dashboard_welcome.jsp");
    else
      out.println("Wrong username or password");Once the user is authenticated(valid username and password found), he is always redirected to a particular page no matter what kind of user he is. You need to add some if-conditional and redirect him to different pages based on his role.
    i have stored their login and password in different tablesI don't understand the need to create different tables for each kind of users. Rather i would do something like this.(Rough Schema)
    USER_ROLE(table)
    1. USER_ROLE_ID (Eg: 1:salesperson, 2:employees etc)
    2. DESC (Eg: salesperson, employees)
    USER TABLE
    1. USER_ID
    2. USER_NAME (Eg: AAA)
    3. PASSWORD (Eg: BBB)
    4. USER_ROLE_ID<Foreign Key, 1 if user is sales person, 2 if user is an employee etc>
    Please note that you will have to create a third table to assign role to an user if an user can have more than
    one role ie he can be salesperson and employees at the same time.
    Now use USER_ROLE_ID to redirect the user to different pages.
    Note: This is just an example(may be a worst one). please design your database and business logic as per your requirements.

  • Error with master page "insert current page number" when exporting book

    Using InDesign CS 5.5 for Windows
    Recently upgraded from InDesign CS (the really old one from 2003). I did save a copy of all my old version files and kept the old ID installed just in case (after reading all the horror stories on here).
    In my old version of ID, I created a book made up of about 70 documents. Some of these documents are one page, others have multiple pages. In the multiple page documents, I used the "insert ... current page number" character (or whatever the command was in the old version) on a master page, and formatted it to read, for example: Page 1 of 17, Page 2 of 17, Page 3 of 17, etc. When I exported my book to a pdf, it worked fine. (I do not want/have consecutive page numbers throughout the book, only in individual documents. By this I mean my entire book is about 280 pages, but not all of these 280 pages are numbered, just the groups of pages from these multi-page documents. It doesn't read page 1 through 280.)
    Got my upgrade to 5.5 a few months ago, added some documents to the book, and (if i remember right) when I saved the book it asked to convert every old version document to the new version, which I said okay. When I exported the book to a pdf, some documents that are longer than 2 pages are now numbered wrong; the numbers are now going like this: Page 1 of 17, Page 2 of 17, Page 2 of 17 (supposed to be page 3), Page 2 of 17 (supposed to be page 4), etc. Every page but page 1 is now page 2 of whatever.
    If I open the individual document and export it to pdf, the page numbers work fine. It's only when the document is exported with the book that the page numbers mess up. And it's not all the documents in my book; this error starts at a particular document and continues from that point throughout the rest of the book, affecting any document longer than 2 pages. Multi-page documents before this point in the book export with the correct page numbers.
    I create new documents by doing a "save as" with a previously created document and cut and paste as needed, so I'm not having to reformat or set up page numbers on each new document. I don't use layers or styles (I'm sure there's a better way to do what I need, but I've only had time learn the basics, just enough to be functional.)
    My attempts to fix this so far (using version 5.5), testing with the first document where the error appears: (1) I've removed the document from the book, deleted the insert current page number character, re-entered the insert current page number character, saved, exported the individual document to pdf and it worked fine. Put it back in the book, save, export, and it's wrong. (2) I took the document out of the book again, exported the document to .idml, saved as new .indd with new name, exported to pdf and it worked fine. Put it back in the book, save, export, and it's wrong. (3) I started up my old ID version, opened the old version of this document, exported to .inx, closed, opened .inx in ID 5.5, saved as new .indd with new name, exported to pdf and it worked fine. Put it back in the book, save, export, and it's wrong. (4) I moved the document up in the book order, putting it above a document that has correctly numbered pages, saved, exported to pdf, and this document was still wrong, but the one that has been numbered correctly all along is still correct. (5) I've compared settings for this document to others that number correctly and cannot find any difference.
    It's like the page numbers get hung on "2" when I export the book, but only in the last two-thirds of the book. Sorry it's so lengthy, but I hope this description of my problem is understandable. Any advice, other than going back to my old version documents and starting over?
    Thanks for your time and for all the awesome information this forum provides!
    alice

    Mr. Spier
    Right after I posted my question, I saw a post from last year where somebody had similar problems. (I cringed because I spent almost 3 days researching this problem and never ran across that post; thanks for not scolding me for posting a semi re-run.) I decided to try one of the easier solutions: I opened the problem document from the book panel, went to the master page and deleted the text box containing the page number, copied the page number box from a document that worked correctly, and pasted it into the problem document. Saved that doc, closed, saved book, exported to pdf, and it worked!! The page number problem was fixed. I went back and did the same thing for the other problem documents and they all number correctly now. 
    Probably not the best way, but for now this will fix it; I may have to do it again next time I add to the book. Although I didn't follow your instructions, I'll mark this as answered since it's working now. If it keeps giving me problems, I'll try the .inx export/new book route.
    thanks for your time
    alice

  • Buttons order in multi page document

    Hi There, I have a multipage presentation document in CS6 with on each page 2 buttons: 1 for page forward and 1 for page back. I first started with 2 master pages with the buttons for forward and back. Later on I changed the order of the pages but hey, the buttons have the action for page forward and page back. When testing pdf in presentation mode in Acrobat X only the forward buttons work. If changing the order would affect the order then the forward buttons should be affected too. I've tried to override the master page setting on each page and rename all the buttons but to no avail. How can I fix this? TIA

    Thanks Bob. I've tried that but it's not working for me. I was in a hurry so in the mean time I've exported the document as an interactive pdf and send that off. Is there something like a story editor for buttons as well? Otherwise I have to strip all buttons from the document and paste in or recreate new buttons on every page. Not something I look forward to.

  • Save each page of a multi-page document as a separate file using spawned file names with javascript

    Hello
    We are currently changing our hard-copy personnel files and converting them to pdf files.  We have scanned the entire file into one multi-page document.
    I am wanting to save each page (or groups of pages) as separate files.
    In order to facilitate this, I have duplicated field names--such as FirstName, LastName, EmpNo on each page.  This information should be static for the entire file.
    However--I also need information that will change for each individual "page" or document--such as TypeOfDoc, Date, etc.  I have used the Spawn fields using the overlay method on each of the pages in the document.  Then I went in and filled in the information for each page of the document--such as TypeOfDoc, DateOfDoc.
    Now I want to save each page of the document as a separate file using the field names as the file name.
    I first created an action that would split all the pages into separate files and save them into a folder.
    Then I want to save each file as a specific file name based on the information in the fields.
    My problem is obtaining the name of the spawned field name.  The rest of the field names I am not having a problem with.
    This is what I have so far to name the file.
    // Get the field value
    var oPage = this.pageNum;
    var fn = getField("P" + oPage + ".TEMPLATE.DateOfDoc").valueAsString + getField("FirstName").valueAsString + "-" + getField("LastName").valueAsString;
    // Specify the folder
    var fldr = "/n/Personnel/ScannedDocuments/NAMEDPAAS/";
    // Determine the full path
    var fp = fldr + fn +".pdf";
    // Save the file
    myTrustedSpecialTaskFunc(this, fp);
    This code is also accompanied with folder level scripts.
    My problem is obtaining the name of the spawned fields using javascript.  Each document has several pages--so I would like to obtain the field name through script.
    I receive the following error.
    TypeError: getField("P" + oPage + ".TEMPLATE.DATE") is null
    I think this is due to the fact that I have extracted all the pages as individual files.
    If I were to do the above, but not extract the pages first--I do not know how to just save one page at a time.
    Please help.  This is a massive project, and if we have to save each file individually, it will take a lot of time.
    I am a beginner, so any assistance is appreciated.
    Thank you

    I am not understanding exactly where to put the curly brackets.  I have tried two different ways, and still get the same error.
    This is one way
    var oPage = this.pageNum;
    // Specify the folder
    var fldr = "/n/Personnel/ScannedDocuments/NAMEDPAAS/";
    // Determine the full path
    var fp = fldr + fn +".pdf";
    for (var i = 0; i < this.numPages; i++) 
    var fn = getField("P" + oPage + ".template.DateOfDoc").valueAsString + getField("FirstName").valueAsString + "-" + getField("LastName").valueAsString;
    {this.extractPages({  
    nStart: i,  
    cPath : fldr + fn + ".pdf"
    The other is this
    var oPage = this.pageNum;
    // Specify the folder
    var fldr = "/n/Personnel/ScannedDocuments/NAMEDPAAS/";
    // Determine the full path
    var fp = fldr + fn +".pdf";
    for (var i = 0; i < this.numPages; i++) 
    var fn = getField("P" + oPage + ".template.DateOfDoc").valueAsString + getField("FirstName").valueAsString + "-" + getField("LastName").valueAsString;
    this.extractPages({  
    nStart: i,  
    cPath : fldr + fn + ".pdf"
    Thank you for your help.

Maybe you are looking for

  • I have just downloaded the latest update for Pages on my iPad and now it can no longer open up documents in iCloud and then just shuts down. What The.

    i have just downloaded the latest update for Pages on my iPad and now it can no longer open up documents in iCloud and then just shuts down. What The.

  • Video Overlay with the TV

    I am trying to get my macbook to play video out to my TV through the Video Composite adapter. I can make it clone the desktop fine but that is not what I am trying to do. With my matrox G400 card on my PC I have been able to play full screen video ou

  • FIOS NYC FIOS 1 Update and others ?? October 2009 Update

    Any one know about if FIOS1 will have a channel in NYC ? Im tiold the end of the year , anyone have an update ? I hear FIOS Digital Voice will launch in NY on Sept 30 . Awaiting also news on MSG HD and MSG + HD and whether or not it will be on FIOS a

  • Go Network

    I've been having problems with opening the network panel from the GO menu. It opens fine from a Finder window, but the GO menu won't open the Finder window for Network (shift-cmd-K won't work either). I called apple and they had me trash com.apple.fi

  • ASPX Bad Variant Type

    This code is simply to prove my connection to SAP is working.  So far, I'm unable to get it to work without getting the "Bad Variant Type" error. <%@ Page Language="VB" Debug="true" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "h