Printable Panel...

I have a panel which implements Printable interface. There panel included a method named Print(), which is called whenever suppose to print(printer) the data hold by this panel.
The question is how can i easily send this data to a text file(local system file) instead of printer. or better if i can some how provide the choose to user to select either file or printer.
Please advice.

In the other words: The print method in the printable class, instantiates a Graphics object to send data to printer. Any way to send this Graphics object to a text or Microsoft word format instead of printer?

Similar Messages

  • Print in format A3

    Hi everyone,
    actually I make an intership in a society and it's my last week. And durinf more than 4 weeks, I hardly tried to print a Jpanel in A3 format.
    So I explain more : my JPanel has 3 parts : one with textarea, JLabel, JTextfield... and the two other with imageIcon. Actually, I have no problem to print this in A4 format with a landscape orientation. But when I try to print in A3, my JPanel keep the A4 dimension!!!
    So I have a question : How can I print this in A3 format?
    I have tried to use iText, but I can't give my JPanel in parameter.
    Let's have a look at my source :
    class LeftPage extends JPanel {
       public ImageIcon img1;
       public LeftPage(){
         img1 = new ImageIcon("page1.jpg");
       public void paint(Graphics g) {
         Graphics2D graphics2D2 = (Graphics2D) g;
         graphics2D2.drawImage(img1.getImage(), 0, 0, getWidth(), getHeight(), this);
    class RightPage extends JPanel {
      public ImageIcon img2;
      public RightPage(){
        img2 = new ImageIcon("page2.jpg");
      public void paint(Graphics g) {
        Graphics2D graphics2D2 = (Graphics2D) g;
        graphics2D2.drawImage(img2.getImage(), 0, 0, getWidth(), getHeight(), this);
    public class PageA3 extends JPanel implements Printable{
      //Panels
      public JPanel panPage1 = new JPanel();//contient panEntete et PageGauche
      public JPanel panPage2 = new JPanel();
      public JPanel panEntete = new JPanel();
      PageDroite panRight = new PageDroite();
      PageGauche panLeft = new PageGauche();
    //others graphics elements like JLabel, JTextfiels, JTextarea ..
    //Constructor
    public PageA3() {
        this.setLayout(new GridLayout(1,2));
       public void imprimer() {
         PrinterJob printJob = PrinterJob.getPrinterJob(); //pr obtenir un objet de type PrinterJob
         printJob.setPrintable(PageA3.this);
         boolean choix = printJob.printDialog();
         if (choix) {
           try {
             printJob.print();
           catch (Exception PrintException) {}
       * print
       * @param graphics Graphics
       * @param pageFormat PageFormat
       * @param pageIndex int
       * @return int
      public int print(Graphics g, PageFormat pageFormat, int pageIndex) {
        Graphics2D g2 = (Graphics2D)g;
       if (pageIndex >= 1)
       { return Printable.NO_SUCH_PAGE;
        g2.rotate(Math.PI /2);
       //g2.rotate(1.57);
       g2.scale(72.0/100, 72.0/100);
       g2.translate(pageFormat.getImageableX(), pageFormat.getImageableY());
       paint(g2);
       return(PAGE_EXISTS);
    }Have you an idee, it's very urgent. Thanks a lot and best regards.

    Hi,
    I look the java.awt.print.Paper 's Class. And I have added this to my source :
         PageFormat pf = printJob.defaultPage();
         Paper papier = new Paper();
         papier.setSize(16.5*72, 11.69*72); //A3 dimension, I think
         papier.setImageableArea(0.0, 0.0, papier.getWidth(), papier.getHeight());
         pf.setPaper(papier);But now , I have 2 problems :
    - first : my Y coordinate isn't exactly on the the upper left hand corner of my paper.
    - second : it keep the A4 's width!! Why??? I don't understand, I have exactly precise papier.setSize(16.5*72, 11.69*72); //A3 dimension, I thinkI'm going a little bit crazy, please.
    Best Regard.

  • Printing black background on paper, instead of actual image

    hi,
    i am having a JPanel with some photos drawn on it using g.drawImage(..) method, for printing. while running the program the panel is showing fine on the screen. since in my room as i dont have a printer, i am printing with adobe printer in which the content to be printed will be saved as pdf file.
    Even the created pdf file while printing is showing perfectly what is supposed to be printed. but when i tried the same program and asked to print on real printer, strangely only a large full black background is printed on paper instead of the image.
    plz explain why such thing is happening.
    thanx.

    Here is sample code based on your description. Maybe you find some hints in it to help you.
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.print.*;
    import javax.swing.*;
    public class PrintPanel extends JFrame {
        public PrintPanel() {
            initComponents();
        private void initComponents() {
            toolBar = new JToolBar();
            printB = new JButton();
            panel = new MyPanel();
            setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
            setTitle("Print Panel");
            toolBar.setFloatable(false);
            printB.setText("Print");
            printB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent evt) {
                    printBActionPerformed(evt);
            toolBar.add(printB);
            getContentPane().add(toolBar, BorderLayout.NORTH);
            getContentPane().add(panel, BorderLayout.CENTER);
            Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
            setBounds((screenSize.width-375)/2, (screenSize.height-480)/2, 375, 480);
        private void printBActionPerformed(ActionEvent evt) {
            PrinterJob pj=PrinterJob.getPrinterJob();
            pj.setPrintable((Printable)panel);
            try{
                pj.print();
            }catch (PrinterException ex) {
                ex.printStackTrace();
        public static void main(String args[]) {new PrintPanel().setVisible(true);}
        private JButton printB;
        private JToolBar toolBar;
        private JPanel panel;
        class MyPanel extends JPanel implements Printable{
            MyPanel() {
                Toolkit T=this.getToolkit();
                img=T.getImage("c:\\javalogo.gif");
                MediaTracker mediaTracker = new MediaTracker(this);
                mediaTracker.addImage(img, 0);
                try {
                    mediaTracker.waitForID(0);
                } catch (InterruptedException ex) {
                    System.err.println(ex);
            public void paint(Graphics g) {
                g.drawImage(img, 150, 150, this);
            public int print(Graphics g, PageFormat pageFormat,
                    int pageIndex) throws PrinterException {
                if(pageIndex>0) {
                    return NO_SUCH_PAGE;
                paint(g);
                return Printable.PAGE_EXISTS;
            private Image img=null;
    }

  • Printing a jpanel

    is it possible to print a jpanel i can print individual components but i want to do a printout that contains many components. any advice

    You make the JPanel implement the Printable interface. Here's a small code sample that I recently created when I tried to make a printable panel. Note that I've made it so that the buttons don't print:
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.GridLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.print.PageFormat;
    import java.awt.print.Printable;
    import java.awt.print.PrinterException;
    import java.awt.print.PrinterJob;
    import javax.swing.BorderFactory;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    import javax.swing.SwingUtilities;
    public class PrintFrame extends JPanel implements Printable
        private static final int TF_SIZE = 20;
        private JFrame mainFrame = null;
        private NoPrintButton insertData = new NoPrintButton("Insert Data");
        private NoPrintButton printFrame = new NoPrintButton("Print");
        private String[] labelNames =
                "Name", "Age", "Phone Number", "Sex"
        private String[] textValues =
                "John Smith", "55", "555-555-5555", "male"
        private JTextField[] dataFieldArr = new JTextField[labelNames.length];
        public PrintFrame(JFrame mainFrame) {
            super();
            this.mainFrame = mainFrame;
            final int BS = 10;
            setBorder(BorderFactory.createEmptyBorder(BS, BS, BS, BS));
            setLayout(new BorderLayout());
            add(createTextPane(), BorderLayout.CENTER);
            add(createButtonPane(), BorderLayout.SOUTH);
        private JPanel createButtonPane()
            JPanel btnPane = new JPanel();
            btnPane.add(insertData);
            btnPane.add(printFrame);
            insertData.addActionListener(new ButtonListener());
            printFrame.addActionListener(new ButtonListener());
            return btnPane;
        private JPanel createTextPane()
            int labelLength = 100;
            int labelHeight = 20;
            JPanel textPane = new JPanel();
            textPane.setLayout(new GridLayout(0, 1));
            for (int i = 0; i < dataFieldArr.length; i++)
                JPanel rowPane = new JPanel();
                JLabel myLabel = new JLabel(labelNames);
    myLabel.setPreferredSize(new Dimension(labelLength, labelHeight));
    rowPane.add(myLabel);
    dataFieldArr[i] = new JTextField(TF_SIZE);
    rowPane.add(dataFieldArr[i]);
    textPane.add(rowPane);
    return textPane;
    private void printPanel()
    PrinterJob printJob = PrinterJob.getPrinterJob();
    boolean doPrint = printJob.printDialog();
    if (doPrint)
    printJob.setPrintable(this);
    try
    printJob.print();
    catch (PrinterException pe)
    pe.printStackTrace();
    public int print(Graphics g, PageFormat pf, int page)
    throws PrinterException
    if (page > 0)
    return NO_SUCH_PAGE;
    * User (0,0) is typically outside the imageable area, so we must
    * translate by the X and Y values in the PageFormat to avoid clipping
    Graphics2D g2d = (Graphics2D) g;
    g2d.translate(pf.getImageableX() + 30, pf.getImageableY() + 50);
    mainFrame.printAll(g); // if you want to print the JPanel only, then delete "mainFrame." here
    return PAGE_EXISTS;
    private class ButtonListener implements ActionListener
    public void actionPerformed(ActionEvent ae)
    NoPrintButton myBtn = (NoPrintButton) ae.getSource();
    if (myBtn == insertData)
    for (int i = 0; i < dataFieldArr.length; i++)
    dataFieldArr[i].setText(textValues[i]);
    else if (myBtn == printFrame)
    printPanel();
    * This is nothing but a plain JButton with the print method overridden by
    * a method that does nothing. This will prevent the button from being printed but
    * leaves a blank space in the output where the button used to be.
    * @author Pete
    private class NoPrintButton extends JButton
    public NoPrintButton(String text) {
    super(text);
    @Override
    public void print(Graphics g)
    // override print method with blank method
    private static void createAndShowGUI()
    JFrame frame = new JFrame("Print Frame Application");
    frame.getContentPane().add(new PrintFrame(frame));
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.pack();
    frame.setVisible(true);
    public static void main(String[] args)
    SwingUtilities.invokeLater(new Runnable()
    public void run()
    createAndShowGUI();
    Edited by: petes1234 on Sep 17, 2007 5:36 PM

  • Problem in setting the printer

    Hi,
    I am new to swings and am trying to print my table using PrintJob class. In this I will get the printer name. So I have to set that as a printer to do the job.
    I am able to print by selecting the printer in printDialog but I want to give my printer and I dont want that printDialog box. Plz tell me solution.
    As from the docs, i came to know that if we remove printdialog(), it wont show you the dialog box, but its talking the default one, my case is it should take the user input.
    Here is my code and working fine.
    public void print(String printer){
    // In this I have to set printer as the printer to do the job by suppresing the print dialog.
    PrinterJob pj = PrinterJob.getPrinterJob();
    PageFormat pf = pj.defaultPage();
    pj.setPrintable(this, pf);
    if (pj.printDialog()) {
    try {
         pj.print();
    } catch (Exception e) {
    Thanks in advance..
    Raj.

    import java.awt.*;
    import java.awt.event.*;
    import java.awt.print.*;
    import java.io.*;
    import java.util.*;
    import javax.print.*;
    import javax.swing.*;
    public class Print_Demo extends JFrame {
        public Print_Demo() {
            initComponents();
        private void initComponents() {
            toolBar = new JToolBar();
            printB = new JButton();
            printerField = new JTextField("Win32 Printer : HP DeskJet 610C");
            panel = new MyPanel();
            setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
            setTitle("Print Demo");
            toolBar.setFloatable(false);
            printB.setText("Print");
            printB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent evt) {
                    printBActionPerformed(evt);
            toolBar.add(printB);
            toolBar.add(printerField);
            getContentPane().add(toolBar, BorderLayout.NORTH);
            getContentPane().add(panel, BorderLayout.CENTER);
            Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
            setBounds((screenSize.width-500)/2, (screenSize.height-500)/2, 500, 500);
        private void printBActionPerformed(ActionEvent evt) {
            PrinterJob pj=PrinterJob.getPrinterJob();
            pj.setPrintable((Printable)panel);
            PrintService[] services = pj.lookupPrintServices();
            boolean ok = false;
            for( int i=0; i < services.length; i++ ){
                System.out.println("Available PrintService: '"+services[i]+"'");
                if(services.toString().equalsIgnoreCase( printerField.getText() ) ){
    try{
    pj.setPrintService(services[i]);
    ok=true;
    }catch(PrinterException ex){
    System.out.println(ex.getMessage());
    if(ok){
    try{
    pj.print();
    }catch (PrinterException ex) {
    ex.printStackTrace();
    }else{
    JOptionPane.showMessageDialog(this,"Printer not available");
    public static void main(String args[]) {
    new Print_Demo().setVisible(true);
    private JButton printB;
    private JToolBar toolBar;
    private JPanel panel;
    private JTextField printerField;
    class MyPanel extends JPanel implements Printable{
    public void paint(Graphics g) {
    g.drawRect(100,100, 100,100);
    public int print(Graphics g, PageFormat pageFormat,
    int pageIndex) throws PrinterException {
    if(pageIndex>0) {
    return NO_SUCH_PAGE;
    paint(g);
    return Printable.PAGE_EXISTS;

  • URGENT ! Help to printing contents of a panel (Plz Help me)

    hi guys,
    i developed a application which consists of lot of information on a panel, i am using print utilities and printing the panel but its printing only the visible part of the panel and its printing a single page. is there any way i can print the whole contents of the panel
    i really appreciate if anyone can help me out.
    import java.awt.*;
    import javax.swing.*;
    import java.awt.print.*;
    public class PrintUtilities implements Printable
    private Component componentToBePrinted;
    public static void printComponent(Component c)
    new PrintUtilities(c).print();
    public PrintUtilities(Component componentToBePrinted)
    this.componentToBePrinted = componentToBePrinted;
    public void print() {
    PrinterJob printJob = PrinterJob.getPrinterJob();
    printJob.setPrintable(this);
    if (printJob.printDialog())
    try
    printJob.print();
    } catch(PrinterException pe) {
    System.out.println("Error printing: " + pe);
    public int print(Graphics g, PageFormat pageFormat, int pageIndex)
    if (pageIndex > 0)
    return(NO_SUCH_PAGE);
    else
    Graphics2D g2d = (Graphics2D)g;
    g2d.translate(pageFormat.getImageableX(), pageFormat.getImageableY());
    disableDoubleBuffering(componentToBePrinted);
    componentToBePrinted.paint(g2d);
    enableDoubleBuffering(componentToBePrinted);
    return(PAGE_EXISTS);
    /** The speed and quality of printing suffers dramatically if
    * any of the containers have double buffering turned on.
    * So this turns if off globally.
    * @see enableDoubleBuffering
    public static void disableDoubleBuffering(Component c) {
    RepaintManager currentManager = RepaintManager.currentManager(c);
    currentManager.setDoubleBufferingEnabled(false);
    /** Re-enables double buffering globally. */
    public static void enableDoubleBuffering(Component c) {
    RepaintManager currentManager = RepaintManager.currentManager(c);
    currentManager.setDoubleBufferingEnabled(true);

    not exactly so...
    implementing Pageable means imlpementing methods that return the number of pages, PageFormat object, and Printable object for each page... look in the API for this interface. It's actually quite a lot of work to do, as you have to divide your panel programmatically on "good" - suitable for your purposes rectangles of the page size, then cretae printale object for each ... but that can be done.
    I'm not that familiar with java printing, perhaps there is a much easier way to do it. Anyway, when I had to print one component on several pages, that's what I did - so it works.

  • Cannot connect to HP Printable apps. Photosmart 7520e printer.

    I cannot access or manage printable apps on my HP 7520e printer. I get “cannot connect to server, check internet connection” error message. My printer is connected to my WIFI with 100% signal. It has a static IP. I can print with HP ePrint while on the same network as well as remotely. I have 100% remote access to all printer functions. I checked for updates using the printers update function and I have the latest firmware and updates on my printer. I have also put in the manual DNS server entries 8.8.8.8 and 8.8.4.4 and I have followed all the threads in an attempt to solve this issue. I also get server certificate errors on the HP connected WEB site preventing access. This happens using a Windows PC or using Safari. This is a different issue, but I was attempting to print the pintable apps that are on my printer from the HP Connected WEB site.
    This question was solved.
    View Solution.

    Problem fixed!
    I decided to reset my printer back to factory defaults and perform another setup. That worked! All my printable apps work! Be aware if you decide to take this route, you will also need to go online to hpconnected.com and add your printer again. Just follow the printer setup instructions that printout during setup. You will also lose the printer email name that was previously assigned and you will need to create a different one or use the new one that automatically gets created. Also as a user friendly benefit, I didn’t need to configure my printer with a static IP address or manually set any DNS addresses. After I selected the factory default, and selected WIFI as my connection, my printer connected to my router immediately. Note: I don’t use security on my router. I also installed FireFox on my Mac computer and can now navigate hpconnected.com without issues.
    Press the wrench Icon on your control panel and navigate to “restore factory defaults” and select.
    Power cycle your printer.
    Perform setup.
    Optional if you have a Mac instead of a windows PC: Install FireFox to navigate hpconnected.com as Safari has issues with this site.

  • Unexpected problem with this printable

    Started by trying to stop the printing of the "Samples" printable that was acquired accidentally.  Tried directions found in the forums to no avail.  Tried through the HP Go manageprint route and never saw the minus sign in the printable header as described.  Trying on the control panel of the printer, I get to the "Select activity" option and select the "Schedule it" icon.  Loading....then error message:  "There was an unexpected problem with this printable.  Please try again later."  I also had problems previously connecting to web services when I tried to scan a document to my email address (which I have done many time previously successfully). Performed wireless network test and all results were good.  Something is screwed up.  Any assistance is appreciated. 

     I suspect the whole setup is "not quite right" and that is not your fault -- it is a multi-step process and if it does go well the first time around, it can seem like the size 14 is a solution to fit the need. I do not have an answer - know that.  The print App is stuck, no doubt about that. I will try and help you straighten out the setup; understand I am not a Printer Expert.  Not.  This may make it worse. You might want to call Cloud Services if you can do so...  SideBar:At the least, the Snapfish bits may be just one more worm in the bucket of troubles - at this point, you might as well Click Reset Snapfish -- frankly, while used to understand what Snapfish is and why it might be on the printer panel, I have never heard of Snapfish Country.  Final note about Snapfish -- if you ever get into some sort of evil loop about logging into (creating) your HP Connected Account and it is offing something about Snapfish account -- saying you have to have the Snapfish account or you can just die and never be able to log into your HP Connected Account:  Give the program what it wants --- it is a bug.  Create the Snapfish account and you will be able to get in.  I did not write the program.  I did not create the bug.  I may have done some stupid things when I wrote code in my life -- this one is not mine.  Smiling. You can "reset" at least the "web services" by simply disabling Web Services on the printer front panel.  This is perhaps a good plan all things considered; you might read first and then decide. The one thing I have noted is that I have never had had any luck resetting, redoing, or entering much of anything from a printer panel.  I lack the patience to type on tiny panels. I do know the Printable / Print App has to be "scheduled", that is, active before it can be cancelled.  So, if it is in some sort of zombie state of half-life, you may want log in to your HP Connected account and make sure the Print App is "active" -- then try to kill it. Also -- see the note below about the Safari browser -- there may be other browsers (Chrome??) that do not handle the HP Connected account management page setup.  There are several parts to the whole "ePrint" business.   The following might be useful to help you make sure you have your setup in place.-----------------------------------------------------------------------------------------Reference:Add Device to Printer See Section:Computer gets Full Feature Software (Printer Software)If you are printing from a mobile device on the same (home) network, then you probably have a home computer in the mix (on that same network).  On that home computer, you would want to have installed the Full Feature Software for the Printer. -----------------------------------------------------------------------------------------ePrint SetupThe ePrint setup on ePrint capable printers involves the setting of the printer's own email address and the switching on of the ePrint service on the printer.  The ePrint email address is the email address to which you send your print jobs from your mobile device(s).  Note that a mobile device can also include your notebook computer.  "If you can send an email, you can use ePrint." -----------------------------------------------------------------------------------------The HP Connected AccountThe HP Connected Account (still called ePrint account in some countrys) is the account you use to manage your ePrint setup.  You can customize your ePrint email address, add / remove your ePrint printer from the HP Connected account, check your ePrint job log, and -- when things are working as intended -- manage your Print Apps (formally Printables). For example,If you have had to Reset Web Services, you may need to log into your HP Connected Account > Settings > and Add your printer. If you have had to Reset Web Services, you must change your Custom ePrint email address. If you gave your ePrint address to someone you no longer "like", you can change the address or remove that person from the "Allowed Senders" list. There are a couple of oddities having to do with the managing of the HP Connected Account.  For all that it is intended to be fully functional under most circumstances, some Browsers do not seem to be able to handle the code in which the WebPage is written.  Safari is notorious for not handling the Print Apps section of the HP Connected setup.   If you have trouble managing the features in  your HP Connected Account, try a different Browser. -----------------------------------------------------------------------------------------Mobile Device / iPad gets an App Once everything else is set up, mobile device(s) can be added to the ePrint setup.  The type of Application used to support the mobile device depends on the device. For example, iPhone and other Apple flavored products typically use those products found in the Apply Store.  Android has its own download, etc. Most devices and printers that can be connected with ePrint or some sort of Cloud or Web services print service are mentioned and / or covered in the Mobile Printing Link in the document. -----------------------------------------------------------------------------------------Troubleshooting and Additional HelpTips, Suggestions, lists, and extra "bits".   When you see a Post that helps you,Inspires you, provides fresh insight,Or teaches you something new,Click the "Thumbs Up" on that Post. Click my Answer Accept as Solution to help others find Answers.

  • Print jTable with a header and footer panel

    Hi Folks,
    I'm currently at a sticking point in a project I'm playing around with. I have a data set of around 300 objects that i'd like printed out in a table. Now, I've gotten the display part down without a hitch but printing the data as well as a header panel and footer panel has been eluding me. I'd basically like something like this...
    Name: some name Order date: some date
    Address: some address Shipped To: some address
    somewhere Some city, some state, etc
    in some city
    Date | Title | Etc | Etc | Etc
    date1 title1 5 $3.00 $15.00
    date1 title1 5 $3.00 $15.00
    date2 title1 5 $3.00 $15.00
    date2 title1 5 $3.00 $15.00
    Total purchases: $60.00
    Total Items: 20
    # of Orders: 2
    Am I barking up the wrong tree by making the first and third sections panels and the second section a table? If not, how the heck do I accomplish this? Most of the time the table has been multiple pages as well - I only need section one on the first page and section three on the last page, but whatever is easiest really.
    My current approach has been basically to make a custom printables, print the first section, figure out how high it was, print the second section and hope for the best, but the third would never show up because it'd never go over two pages.
    Any help would be very much appreciated.
    Thanks,
    Stephen
    Edited by: stephenliberty on May 7, 2009 9:11 AM - more specific subject

    I suppose as a quick update, this is as far as I've gotten and will likely get-
    public class PrintForm extends JFrame implements Printable{
        JComponent headerPanelForPrint;
        JComponent footerPanelForPrint;
        JTable dataTableForPrint;
        public void setPieces(JComponent header, JTable table, JComponent footer){
            this.headerPanelForPrint = header;
            this.footerPanelForPrint = footer;
            this.dataTableForPrint = table;
        public int print(Graphics graphics, PageFormat pageFormat, int pageIndex) throws PrinterException {
            graphics.translate((int)pageFormat.getImageableX(), (int)pageFormat.getImageableY());
            TableFormat tableFormat;
            if(pageIndex>0){
                tableFormat = new TableFormat(0, footerPanelForPrint.getHeight());
            } else {
                headerPanelForPrint.printAll(graphics);
                tableFormat = new TableFormat(headerPanelForPrint.getHeight(), footerPanelForPrint.getHeight());
            MessageFormat footer = new MessageFormat("Page - {0}");
            Printable table = dataTableForPrint.getPrintable(PrintMode.FIT_WIDTH, null, footer);
            int printme = table.print(graphics, tableFormat, pageIndex);
            if(printme == table.NO_SUCH_PAGE){ return table.NO_SUCH_PAGE; }
            return Printable.PAGE_EXISTS;
    class TableFormat extends PageFormat {
        double footerHeight;
        double headerHeight;
        public TableFormat(double headerHeight, double footerHeight){
            this.headerHeight = headerHeight;
            this.footerHeight = footerHeight;
        @Override
        public double getImageableHeight() {
            return super.getImageableHeight() - ( this.footerHeight + this.headerHeight );
        @Override
        public double getHeight() {
            return super.getImageableHeight() - ( this.footerHeight + this.headerHeight);
        @Override
        public double getImageableX() {
            return 0;
        @Override
        public double getImageableY() {
            return this.headerHeight;
    }It works very well with just a header and the table, but I still have not been able to get a footer to show up in the appropriate spot or (preferably) on the last page.
    Edited by: stephenliberty on May 8, 2009 12:29 PM

  • Cascading LOV in a Query panel (af:query)

    Hi
    I have a requirement to implement few Cascading LOV's in a Query panel. I have created the VO's for the LOV's with bind variable and view criteria and linked them. It works for the BC viewer. But to enable in the ADF UI, the partial trigger needs to be enabled on individual field. And the af:query encapsulates the fields and they are not exposed. Can someone help me with a solution or a pointer
    Many thanks

    Thanks for the pointer
    Well I followed the the steps, and implemented the same for two LOV's. I'm getting "Server Exception during PPR, #1". Would be able to identify where I'm going wrong please.
    FYI: I'm using a UI template that is stripped won from Oracles Dynamic tab template
    1. parent LOV
    <?xml version="1.0" encoding="windows-1252" ?>
    <!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
    <!---->
    <ViewObject
    xmlns="http://xmlns.oracle.com/bc4j"
    Name="QcChiptypeVViewRO"
    Version="11.1.1.56.60"
    BindingStyle="OracleName"
    CustomQuery="true"
    RowClass="com.qualcomm.qdt.fwk.model.QdtViewRowImpl"
    ComponentClass="com.qualcomm.qdt.fwk.model.QdtViewObjectImpl"
    DefClass="com.qualcomm.qdt.fwk.model.QdtViewDefImpl"
    PageIterMode="Full"
    UseGlueCode="false">
    <DesignTime>
    <Attr Name="_codeGenFlag2" Value="Access|VarAccess"/>
    <Attr Name="_isExpertMode" Value="true"/>
    </DesignTime>
    <SQLQuery>
    <![CDATA[SELECT QcChiptypeV.CHIPTYPE
    FROM QC_CHIPTYPE_V QcChiptypeV]]>
    </SQLQuery>
    <ViewAttribute
    Name="Chiptype"
    IsUpdateable="false"
    IsPersistent="false"
    PrecisionRule="true"
    Precision="42"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    AliasName="CHIPTYPE"
    Expression="CHIPTYPE"
    SQLType="VARCHAR">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="42"/>
    </DesignTime>
    </ViewAttribute>
    </ViewObject>
    2. Child LOV
    <?xml version="1.0" encoding="windows-1252" ?>
    <!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
    <!---->
    <ViewObject
    xmlns="http://xmlns.oracle.com/bc4j"
    Name="QcMcnVViewRO"
    Version="11.1.1.56.60"
    BindingStyle="OracleName"
    CustomQuery="true"
    RowClass="com.qualcomm.qdt.fwk.model.QdtViewRowImpl"
    ComponentClass="com.qualcomm.qdt.fwk.model.QdtViewObjectImpl"
    DefClass="com.qualcomm.qdt.fwk.model.QdtViewDefImpl"
    PageIterMode="Full"
    UseGlueCode="false">
    <DesignTime>
    <Attr Name="_codeGenFlag2" Value="Access|VarAccess"/>
    <Attr Name="_isExpertMode" Value="true"/>
    </DesignTime>
    <Variable
    Name="chiptype"
    Kind="viewcriteria"
    Type="java.lang.String"/>
    <ViewAccessor
    Name="QcChiptypeVViewRO1"
    ViewObjectName="com.qualcomm.qdt.model.lov.QcChiptypeVViewRO"
    RowLevelBinds="true"/>
    <SQLQuery>
    <![CDATA[SELECT QcMcnV.MCN,
    QcMcnV.CHIPTYPE
    FROM QC_MCN_V QcMcnV]]>
    </SQLQuery>
    <ViewAttribute
    Name="Mcn"
    IsUpdateable="false"
    IsPersistent="false"
    PrecisionRule="true"
    Precision="20"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    AliasName="MCN"
    Expression="MCN"
    SQLType="VARCHAR">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="20"/>
    </DesignTime>
    <Dependencies>
    <Item
    Value="Chiptype"/>
    </Dependencies>
    </ViewAttribute>
    <ViewAttribute
    Name="Chiptype"
    IsUpdateable="false"
    IsPersistent="false"
    PrecisionRule="true"
    Precision="42"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    AliasName="CHIPTYPE"
    Expression="CHIPTYPE"
    SQLType="VARCHAR">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="42"/>
    </DesignTime>
    </ViewAttribute>
    <ViewCriteria
    Name="QcMcnVViewROCriteriaChiptype"
    ViewObjectName="com.qualcomm.qdt.model.lov.QcMcnVViewRO"
    Conjunction="AND">
    <Properties>
    <CustomProperties>
    <Property
    Name="displayOperators"
    Value="InAdvancedMode"/>
    <Property
    Name="autoExecute"
    Value="true"/>
    <Property
    Name="allowConjunctionOverride"
    Value="true"/>
    <Property
    Name="showInList"
    Value="true"/>
    <Property
    Name="mode"
    Value="Basic"/>
    </CustomProperties>
    </Properties>
    <ViewCriteriaRow
    Name="vcrow5"
    UpperColumns="1">
    <ViewCriteriaItem
    Name="QcMcnVViewROCriteria_vcrow5_Chiptype"
    ViewAttribute="Chiptype"
    Operator="="
    Conjunction="AND"
    Value=":chiptype"
    IsBindVarValue="true"
    Required="Optional"/>
    </ViewCriteriaRow>
    </ViewCriteria>
    </ViewObject>
    3. JSF page
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1">
    <af:messages id="m1"/>
    <af:form id="f1">
    <af:pageTemplate viewId="/oracle/ui/pattern/dynamicShell/dynamicTabShell.jspx"
    value="#{bindings.pageTemplateBinding}" id="pt1">
    <f:facet name="copyright">
    <af:outputText value="2010 Qualcomm Inc. All Rights Reserved."
    id="ot10"/>
    </f:facet>
    <f:facet name="about">
    <af:navigationPane id="np3" hint="buttons">
    <af:commandNavigationItem text="About" id="cni5"/>
    <af:commandNavigationItem text="Privacy" id="cni6"/>
    </af:navigationPane>
    </f:facet>
    <f:facet name="navigation">
    <af:panelAccordion id="pa1">
    <af:showDetailItem text=" Asset Details" id="sdi1">
    <af:panelGroupLayout layout="vertical" id="pgl1">
    <af:panelHeader text=" " id="ph1">
    <af:query id="qryId1"
    headerText="Search Criteria (Use % as wildcard)" disclosed="true"
    value="#{bindings.ImplicitViewCriteriaQuery.queryDescriptor}"
    model="#{bindings.ImplicitViewCriteriaQuery.queryModel}"
    queryListener="#{bindings.ImplicitViewCriteriaQuery.processQuery}"
    queryOperationListener="#{bindings.ImplicitViewCriteriaQuery.processQueryOperation}"
    saveQueryMode="hidden"/>
    </af:panelHeader>
    </af:panelGroupLayout>
    </af:showDetailItem>
    <af:showDetailItem text="More Info" id="sdi2"/>
    </af:panelAccordion>
    </f:facet>
    <f:facet name="globalLinks">
    <af:navigationPane id="np2" hint="buttons"
    inlineStyle="text-align:right;">
    <af:commandNavigationItem text="Help" id="cni4" action="noop"/>
    <af:commandNavigationItem text="Sign out"
    id="commandNavigationItem1"
    action="noop"/>
    </af:navigationPane>
    </f:facet>
    <f:facet name="status"/>
    <f:facet name="globalToolbar"/>
    <f:facet name="globalSearch"/>
    <f:facet name="globalTabs">
    <af:navigationPane id="np1">
    <af:commandNavigationItem text="Device Query/Update" id="cni1"
    selected="true" partialSubmit="false"/>
    <af:commandNavigationItem text="Asset Return" id="cni3"
    action="dummy" rendered="false"/>
    </af:navigationPane>
    </f:facet>
    <f:facet name="welcome">
    <af:panelSplitter id="ps1" orientation="vertical">
    <f:facet name="first">
    <af:panelCollection id="pc1" defaultToolbarItemDisplay="icon">
    <f:facet name="menus">
    <af:menu text="Options" id="m2" rendered="false">
    <af:commandMenuItem text="Printable Page" id="cmi2">
    <af:showPrintablePageBehavior/>
    </af:commandMenuItem>
    <af:commandMenuItem text="Download" id="commandMenuItem1">
    <af:exportCollectionActionListener exportedId="t2"
    type="excelHTML"
    title="Asset Details"/>
    </af:commandMenuItem>
    </af:menu>
    </f:facet>
    <f:facet name="toolbar">
    <af:toolbar id="t1">
    <af:commandToolbarButton id="ctb1"
    hoverIcon="/images/view_image.gif"
    text="Export to Excel">
    <af:exportCollectionActionListener exportedId="t2"
    type="excelHTML"
    title="Asset Details"/>
    </af:commandToolbarButton>
    </af:toolbar>
    </f:facet>
    <f:facet name="statusbar"/>
    <af:table value="#{bindings.QcDeviceTrackingVO1.collectionModel}"
    var="row"
    rows="#{bindings.QcDeviceTrackingVO1.rangeSize}"
    emptyText="#{bindings.QcDeviceTrackingVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.QcDeviceTrackingVO1.rangeSize}"
    rowBandingInterval="0"
    filterModel="#{bindings.ImplicitViewCriteriaQuery.queryDescriptor}"
    queryListener="#{bindings.ImplicitViewCriteriaQuery.processQuery}"
    filterVisible="true" varStatus="vs"
    selectedRowKeys="#{bindings.QcDeviceTrackingVO1.collectionModel.selectedRow}"
    selectionListener="#{bindings.QcDeviceTrackingVO1.collectionModel.makeCurrent}"
    rowSelection="single" id="t2"
    columnSelection="single"
    partialTriggers=":::ph1 :::qryId1">
    <af:column sortProperty="Serialnum" filterable="true"
    sortable="true"
    headerText="#{bindings.QcDeviceTrackingVO1.hints.Serialnum.label}"
    id="c28" width="103">
    <af:outputText value="#{row.Serialnum}" id="ot17"/>
    </af:column>
    <af:column sortProperty="Assettag" filterable="true"
    sortable="true"
    headerText="#{bindings.QcDeviceTrackingVO1.hints.Assettag.label}"
    id="c7" width="107">
    <af:outputText value="#{row.Assettag}" id="ot24"/>
    </af:column>
    <af:column sortProperty="Chiptype" filterable="true"
    sortable="true"
    headerText="#{bindings.QcDeviceTrackingVO1.hints.Chiptype.label}"
    id="c18" width="26">
    <af:outputText value="#{row.Chiptype}" id="ot27"/>
    </af:column>
    <af:column sortProperty="Mcn" filterable="true"
    sortable="true"
    headerText="#{bindings.QcDeviceTrackingVO1.hints.Mcn.label}"
    id="c11">
    <af:outputText value="#{row.Mcn}" id="ot13"/>
    </af:column>
    <af:column sortProperty="Mcnrev" filterable="true"
    sortable="true"
    headerText="#{bindings.QcDeviceTrackingVO1.hints.Mcnrev.label}"
    id="c8">
    <af:outputText value="#{row.Mcnrev}" id="ot3"/>
    </af:column>
    <af:column sortProperty="Assignedto" filterable="true"
    sortable="true"
    headerText="#{bindings.QcDeviceTrackingVO1.hints.Assignedto.label}"
    id="c15">
    <af:outputText value="#{row.Assignedto}" id="ot32"/>
    </af:column>
    <af:column sortProperty="Location" filterable="true"
    sortable="true"
    headerText="#{bindings.QcDeviceTrackingVO1.hints.Location.label}"
    id="c24">
    <af:outputText value="#{row.Location}" id="ot19"/>
    </af:column>
    <af:column sortProperty="Locationfullname" filterable="true"
    sortable="true"
    headerText="#{bindings.QcDeviceTrackingVO1.hints.Locationfullname.label}"
    id="c14">
    <af:outputText value="#{row.Locationfullname}" id="ot26"/>
    </af:column>
    <af:column sortProperty="Locationtype" filterable="true"
    sortable="true"
    headerText="#{bindings.QcDeviceTrackingVO1.hints.Locationtype.label}"
    id="c13">
    <af:outputText value="#{row.Locationtype}" id="ot28"/>
    </af:column>
    <af:column sortProperty="Description" sortable="true"
    headerText="#{bindings.QcDeviceTrackingVO1.hints.Description.label}"
    id="c21">
    <af:outputText value="#{row.Description}" id="ot22"/>
    </af:column>
    <af:column sortProperty="Assignment" sortable="true"
    headerText="#{bindings.QcDeviceTrackingVO1.hints.Assignment.label}"
    id="c30">
    <af:outputText value="#{row.Assignment}" id="ot34">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.QcDeviceTrackingVO1.hints.Assignment.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="Createddate" sortable="true"
    headerText="#{bindings.QcDeviceTrackingVO1.hints.Createddate.label}"
    id="c1">
    <af:outputText value="#{row.Createddate}" id="ot15">
    <af:convertDateTime pattern="#{bindings.QcDeviceTrackingVO1.hints.Createddate.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="Lastid" sortable="true"
    headerText="#{bindings.QcDeviceTrackingVO1.hints.Lastid.label}"
    id="c33">
    <af:outputText value="#{row.Lastid}" id="ot9">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.QcDeviceTrackingVO1.hints.Lastid.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="Lportfolioitemid" sortable="true"
    headerText="#{bindings.QcDeviceTrackingVO1.hints.Lportfolioitemid.label}"
    id="c23">
    <af:outputText value="#{row.Lportfolioitemid}" id="ot23">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.QcDeviceTrackingVO1.hints.Lportfolioitemid.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="Lkeycontactid" sortable="true"
    headerText="#{bindings.QcDeviceTrackingVO1.hints.Lkeycontactid.label}"
    id="c4">
    <af:outputText value="#{row.Lkeycontactid}" id="ot11">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.QcDeviceTrackingVO1.hints.Lkeycontactid.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="Fullname" sortable="true"
    headerText="#{bindings.QcDeviceTrackingVO1.hints.Fullname.label}"
    id="c22">
    <af:outputText value="#{row.Fullname}" id="ot6"/>
    </af:column>
    <af:column sortProperty="Status" sortable="true"
    headerText="#{bindings.QcDeviceTrackingVO1.hints.Status.label}"
    id="c16">
    <af:outputText value="#{row.Status}" id="ot21"/>
    </af:column>
    <af:column sortProperty="Qcemployeenumber" sortable="true"
    headerText="#{bindings.QcDeviceTrackingVO1.hints.Qcemployeenumber.label}"
    id="c6">
    <af:outputText value="#{row.Qcemployeenumber}" id="ot33">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.QcDeviceTrackingVO1.hints.Qcemployeenumber.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="Field3" sortable="true"
    headerText="#{bindings.QcDeviceTrackingVO1.hints.Field3.label}"
    id="c12">
    <af:outputText value="#{row.Field3}" id="ot18"/>
    </af:column>
    <af:column sortProperty="Empdeptfullname" sortable="true"
    headerText="#{bindings.QcDeviceTrackingVO1.hints.Empdeptfullname.label}"
    id="c27">
    <af:outputText value="#{row.Empdeptfullname}" id="ot4"/>
    </af:column>
    <af:column sortProperty="Comments" sortable="true"
    headerText="#{bindings.QcDeviceTrackingVO1.hints.Comments.label}"
    id="c10">
    <af:outputText value="#{row.Comments}" id="ot16"/>
    </af:column>
    <af:column sortProperty="Builtby" sortable="true"
    headerText="#{bindings.QcDeviceTrackingVO1.hints.Builtby.label}"
    id="c19">
    <af:outputText value="#{row.Builtby}" id="ot20"/>
    </af:column>
    <af:column sortProperty="Mesbuild" sortable="true"
    headerText="#{bindings.QcDeviceTrackingVO1.hints.Mesbuild.label}"
    id="c31">
    <af:outputText value="#{row.Mesbuild}" id="ot2"/>
    </af:column>
    <af:column sortProperty="Esn" sortable="true"
    headerText="#{bindings.QcDeviceTrackingVO1.hints.Esn.label}"
    id="c26">
    <af:outputText value="#{row.Esn}" id="ot31"/>
    </af:column>
    <af:column sortProperty="Imei" sortable="true"
    headerText="#{bindings.QcDeviceTrackingVO1.hints.Imei.label}"
    id="c17">
    <af:outputText value="#{row.Imei}" id="ot29"/>
    </af:column>
    <af:column sortProperty="Macaddress" sortable="true"
    headerText="#{bindings.QcDeviceTrackingVO1.hints.Macaddress.label}"
    id="c32">
    <af:outputText value="#{row.Macaddress}" id="ot1"/>
    </af:column>
    <af:column sortProperty="Brf" sortable="true"
    headerText="#{bindings.QcDeviceTrackingVO1.hints.Brf.label}"
    id="c25">
    <af:outputText value="#{row.Brf}" id="ot8"/>
    </af:column>
    <af:column sortProperty="Brfrev" sortable="true"
    headerText="#{bindings.QcDeviceTrackingVO1.hints.Brfrev.label}"
    id="c3">
    <af:outputText value="#{row.Brfrev}" id="ot25"/>
    </af:column>
    <af:column sortProperty="Dacquisition" sortable="true"
    headerText="#{bindings.QcDeviceTrackingVO1.hints.Dacquisition.label}"
    id="c29">
    <af:outputText value="#{row.Dacquisition}" id="ot7">
    <af:convertDateTime pattern="#{bindings.QcDeviceTrackingVO1.hints.Dacquisition.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="Datqcmainttermdate" sortable="true"
    headerText="#{bindings.QcDeviceTrackingVO1.hints.Datqcmainttermdate.label}"
    id="c2">
    <af:outputText value="#{row.Datqcmainttermdate}"
    id="ot30">
    <af:convertDateTime pattern="#{bindings.QcDeviceTrackingVO1.hints.Datqcmainttermdate.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="Datqcissueddate" sortable="true"
    headerText="#{bindings.QcDeviceTrackingVO1.hints.Datqcissueddate.label}"
    id="c5">
    <af:outputText value="#{row.Datqcissueddate}" id="ot5">
    <af:convertDateTime pattern="#{bindings.QcDeviceTrackingVO1.hints.Datqcissueddate.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="Itlqciteclass" sortable="true"
    headerText="#{bindings.QcDeviceTrackingVO1.hints.Itlqciteclass.label}"
    id="c20">
    <af:outputText value="#{row.Itlqciteclass}" id="ot14"/>
    </af:column>
    <af:column sortProperty="RowID" sortable="true"
    headerText="#{bindings.QcDeviceTrackingVO1.hints.RowID.label}"
    id="c9">
    <af:outputText value="#{row.RowID}" id="ot12"/>
    </af:column>
    </af:table>
    </af:panelCollection>
    </f:facet>
    <f:facet name="second">
    <af:panelTabbed id="pt2">
    <af:showDetailItem text="Update Attributes" id="sdi3"
    stretchChildren="first"/>
    </af:panelTabbed>
    </f:facet>
    </af:panelSplitter>
    </f:facet>
    <f:facet name="innerToolbar"/>
    <f:attribute name="brandingTitle" value="ITE Device Tracking System"/>
    <f:attribute name="navSplitterPosition" value="450"/>
    </af:pageTemplate>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>

  • How to set a pageBreak for a panel which is scrolling vertically ?

    HI,
    my swing application has a panel which 'll scroll vertically dynamically according to the input.It has to get printed.I used panel.printAll(g) in the printable interface.But the problem is, it is printing only that is visible in the panel.The remaining image/data is not printing.Help me to set the page Break and print the whole panel.

    Quit double and triple posting a questions: [http://forums.sun.com/thread.jspa?threadID=5365422&tstart=0]
    Learn how to use the forum properly. There is an "edit" icon on the top right of you posting that allows yous to edit your question.
    I'm not going to bother to answser your questions until you bother to learn how to use the forum properly.

  • Printable page table rows incorrect on showPrintablePageBehavior

    I'm using 11.1.1.3.
    My page has a table that shows rows returned from the database. I also have a command button with a showPrintablePageBehavior tag.
    The table fetchSize and autoHeightRows are set to the rangeSize. Let's say the result set is 100 rows and the table displays 10 rows at a time. If I click the printable button and don't scroll the table the printable page displays fine. As I scroll down the table fetches the next batch of 10 rows.
    When I then click the printable button the rows that are displayed are different that what was on the original page. It shows the first 10 rows and the the row count indicates rows 1-20.
    No matter what row I scroll to, the printable page goes to the beginning of the Iterator's cached rows. The VO Access Mode is set to Scrollable. No other modes seem to work.
    The issue happens even on the demo apps that go to the HR database.
    I've spent considerable time researching this to no avail. That's why I'm finally asking the forum.
    Any guidance would be appreciated. Thanks.

    Sorry, another thought...
    Basically I want the user to be able to print what they see. If the user scrolls down to row 43 I need the printable page to actually show rows 43 -53 and indicate that they are seeing "Rows 43-53 of 100". That doesn't seem to ever happen UNLESS the user has not scrolled at all.
    I know that the user could just click the browser Print button on the original page. However, with panel splitters, flash dvt graphs and other buttons on the page it really doesn't look right.
    Thanks again!

  • Printing a panel on a panel

    I have two panels on the screen - one a graph drawn without layout manager, the other placed South of the graph containing a set of checkboxes.
    The graph panel implements printable and, when printing, the idea is to pass the check box panel to the graph panel class and print it at the bottom of page by doing a 'this.add(checkboxPanel)' with bounds having been set.
    This works fine EXCEPT that as soon as a print occurs, the checkboxPanel disappears from the screen.
    Any ideas gratefully received.
    Thomas

    Hi,
    Your checkbox disappear because it can only be in one place at a time. First it's on the screen, but as soon as you print, it goes in the printable (the graph panel) and is automatically removed from the screen.
    So you have to make a copy of the checkbox to pass it to your graph, or after printing, add again the checkbox to the main frame.

  • Spry tabbed panel in editable region will not allow editing

    Yesterday I was building a spry tabbed panel onto an existing template I created in an editable region, the whole right column is editable.  Today, I get a no editing stop sign instead of a cursor in the whole tabbed panel except the tabs.  However, my tabs are labeled correctly, but the panels need additional information added to them.  Here is the source code:<!-- InstanceBeginEditable name="right_column" -->
        <h2>Hewescraft
        </h2>
        <div id="Hewescraft_boats" class="TabbedPanels">
          <ul class="TabbedPanelsTabGroup">
            <li class="TabbedPanelsTab" tabindex="0">Sportsman</li>
            <li class="TabbedPanelsTab" tabindex="0">Pro V</li>
            <li class="TabbedPanelsTab" tabindex="0">Sea Runner</li>
            <li class="TabbedPanelsTab" tabindex="0">Ocean Pro</li>
            <li class="TabbedPanelsTab" tabindex="0">Alaskan</li>
            <li class="TabbedPanelsTab" tabindex="0">Pacific Cruiser</li>
          </ul>
          <div class="TabbedPanelsContentGroup">
            <div class="TabbedPanelsContent">
              <h3>Sportsman Series</h3>
              <p><img src="imageswebsite/Hewescraft/sportsmancanvasstop.jpg" width="602" height="276" alt="hewescraft sportsman" /></p>
              <p>Insert Text</p>
              <p>Click <a href="Links/HewesCraft_Sportsman[1].pdf">Here</a> for a Printable Brochure.</p>
              <p><img src="imageswebsite/untitled.jpg" width="612" height="792" alt="hewescraft sportsman features and options" /></p>
            </div>
            <div class="TabbedPanelsContent">
              <h3>Pro V Series</h3>
              <p><img src="imageswebsite/Hewescraft/prov.jpg" width="602" height="276" alt="hewescraft pro v" /></p>
              <p>Insert Text</p>
              <p>Clicke <a href="Links/HewesCraft_ProV.pdf">Here</a> for a Printable Brochure.</p>
              <p><img src="imageswebsite/Hewescraft/provfeaturesandoptions.jpg" width="612" height="792" /></p>
            </div>
            <div class="TabbedPanelsContent">
              <h3>Sea Runner Series</h3>
              <p><img src="imageswebsite/Hewescraft/searunnernomotor.jpg" width="602" height="276" alt="hewescraft searunner" /></p>
              <p>Insert Text</p>
              <p>Click<a href="Links/HewesCraft_SeaRunner.pdf"> Here</a> for a Printable Brochure.</p>
              <p><img src="imageswebsite/Hewescraft/searunnerfeaturesandoptions.jpg" width="612" height="792" alt="hewescraft searunner features and options" /></p>
            </div>
            <div class="TabbedPanelsContent">
              <h3>Ocean Pro Series</h3>
              <p><img src="imageswebsite/Hewescraft/hewesoceanpro.jpg" width="602" height="276" alt="hewescraft ocean pro" /></p>
              <p>Insert Text</p>
              <p>Click <a href="Links/HewesCraft_OceanPro.pdf">Here</a> for a Printable Brochure.</p>
              <p><img src="imageswebsite/Hewescraft/oceanprofeaturesandoptions.jpg" width="612" height="792" alt="hewescraft ocean pro features and options" /></p>
            </div>
            <div class="TabbedPanelsContent">Content 5</div>
            <div class="TabbedPanelsContent">Content 6</div>
          </div>
        </div>
        <p> </p>
        <div id="p"> </div>
        <script type="text/javascript">
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("Hewescraft_boats");
        </script>
      <!-- InstanceEndEditable --></div>
    </div>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("rockys_menu", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar2 = new Spry.Widget.MenuBar("side_menu", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    <!-- InstanceEnd --></html>
    Any ideas?

    There is nothing wrong with the code that you have shown.
    I do not use templates, in fact I hate them. I use serverside includes which allows me to update any portion of the site without having to re-upload multiple documents.
    You will be better off placing your problem on the DW forum http://forums.adobe.com/community/dreamweaver/dreamweaver_general
    Gramps

  • Hp printables unable to connect

    I am having a problem with the hp printables.  A couple of them work fine (Highlights and Disney) but for the rest of the categories I get the message "There was a problem connecting to the server.  Retry to connect again, or OK to exit."  The printer is connected wirelessly and I am able to print from the pc and the ipad.  It is just connecting to the HP printables that I am having problems with.

    Hi @joesmom33
    Thank you for taking the time to update me.
    I have included your User Guide. On page 6 it explains the icons found on the front panel of your printer and where the ePrint icon is located so you can finish following the instructions.
    If for some reason the front panel of your printer doesn’t closely resemble the front panel shown in the User Guide, please call our technical support at 800-474-6836. If you live outside the US/Canada Region, please click the link below to get the support number for your region. http://www8.hp.com/us/en/contact-hp/ww-phone-assist.html
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

Maybe you are looking for

  • Change favicon in Robohelp HTML 8

    Hello everyone, I need your help! I want to change the default favicon that is generated and replace it with my own. I created one with the same dimensions (48x48) and saved it as whstart.ico replacing the original in my project's folder. I also trie

  • Center channel is

    So the problem is, I have X-Fi ExtremeGamer Fatalty and my center channel is very quite - barely hearable. I've done pretty anything - reinstalled drivers, reinstalled console launcher (now installed those beta drivers and console), gone through vari

  • Can we create items dynamically in forms 6i??

    Dear All, Is it possible to create items,i.e. Text items,display items etc. dynamically? Suppose I select Table name EMP,then it must get all columns from database and place it on form.Now I change table name from EMP to DEPT,now it should get all co

  • Opening a file from File Explorer does not open in Office 2013, Windows 7

    When opening a DOCX from file explorer, Office Word will open but it will not load the file unless you open it from Office Word.

  • Vertical Lines or Guides in Code View

    Hello: Am I missing a setting in DW or did they just not include this. I am used to seeing vertical lines in code view to note where the beging of a tag originated. For example if I put a <TD> tag somwhere in the document and move on down the code li