How to display a region in the center of the page

Hi,
I am trying to position a region in the center of the page and I am using the following in the region attributes field
style="width:70%; region = "center";"
but the region is positioned to the left only. Is there any other method to do this work.
Please help me out.
Thanks,
Rik
Edited by: Rik281 on Nov 17, 2010 7:31 AM

Before posting, please TRY and do a search on the forum, you MIGHT find your question already asked and ANSWERED..: place a reports region on center of the page
Thank you,
Tony Miller
Webster, TX
On the road of life...There are 'windshields', and there are 'bugs'
(splat!)
"Squeegees Wanted"

Similar Messages

  • How do you fix an LCD screen ripple dot in the center of the display (Macbook pro 13 inch late 2011

    There is a small dot that ripples in the center of the screen. I have an Early 2011 macbook pro 13 inch and it should not have any problems with it. Does anyone have suggestions?

    it should not have any problems with it.
    No, it shouldn't, but technology is not perfect.  Sh*t happens.

  • How to print the JFrame In The Center Of The Page?

    hi there in the following code iam trying to print a JFrame
    but the frame appear in the printed page at the top left
    and i want it to appear in the top center of the page
    how to do that?
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.awt.print.*;
    class PrintUIWindow implements Printable, ActionListener {
        JFrame frameToPrint;
        public int print(Graphics g, PageFormat pf, int page) throws
                                                            PrinterException {
            if (page > 0) {
                return NO_SUCH_PAGE;
            Graphics2D g2d = (Graphics2D)g;
            g2d.translate(pf.getImageableX(), pf.getImageableY()-55);
            frameToPrint.print(g);
            return PAGE_EXISTS;
        public void actionPerformed(ActionEvent e) {
             PrinterJob job = PrinterJob.getPrinterJob();
             job.setPrintable(this);
             boolean ok = job.printDialog();
             if (ok) {
                 try {
                      job.print();
                 } catch (PrinterException ex) {
        public PrintUIWindow(JFrame f) {
            frameToPrint = f;
        public static void main(String args[]) {
            UIManager.put("swing.boldMetal", Boolean.FALSE);
            JFrame f = new JFrame("Print UI Example");
            f.addWindowListener(new WindowAdapter() {
               public void windowClosing(WindowEvent e) {System.exit(0);}
            JLabel label1=new JLabel("Selling Bill",JLabel.CENTER);
            JLabel label2=new JLabel("Customer Name :Mahmoud Saleh       ",JLabel.LEFT);
            JLabel label3=new JLabel("Buying Date :29/8/2008             ",JLabel.LEFT);
            JLabel label4=new JLabel("Book Buyed :Java Printing          ",JLabel.LEFT);
            JLabel label5=new JLabel("Number : 6 Copies                  ",JLabel.LEFT);
            JLabel label6=new JLabel("Total Price :600 $                 ",JLabel.LEFT);
            label1.setFont(new Font("Courier New", Font.BOLD, 13));
            label2.setFont(new Font("Courier New", Font.BOLD, 13));
            label3.setFont(new Font("Courier New", Font.BOLD, 13));
            label4.setFont(new Font("Courier New", Font.BOLD, 13));
            label5.setFont(new Font("Courier New", Font.BOLD, 13));
            label6.setFont(new Font("Courier New", Font.BOLD, 13));
            JButton printButton = new JButton("Print This Window");
            printButton.addActionListener(new PrintUIWindow(f));               
            JPanel panel=new JPanel();
            panel.setLayout(new GridLayout(6,1));
            panel.add(label1);
            panel.add(label2);
            panel.add(label3);
            panel.add(label4);
            panel.add(label5);
            panel.add(label6);
            f.setSize(300,300);       
            f.setLocationRelativeTo(null);       
            f.add(panel,BorderLayout.CENTER);
            f.add(printButton,BorderLayout.SOUTH);
            panel.setBackground(Color.WHITE);
            f.setResizable(false);
            f.setVisible(true);
    }

    First_knight wrote:
    please tell me am i thinking right
    about this method: setImageableArea(.....)
    public void setImageableArea(double x, double y,  double width, double height);
    like I said, I've tried this method and it doesn't seem to do anything.
    the width=the JFrame Width,the height=the JFrame Height right?actually, when printing, 72 points (printing version of pixels) = 1 inch, so to do WYSIWYG, you need width = JFrameWidth * 72.0 / Toolkit.getToolkit().getScreenResolution. Ditto with height
    upper left beginningx(0)---------------------------200--------------------------------600-----------------------------------y(1000)upper right beginningyou need to do something like PageSetup.getImageableX and do Graphics.translate(x,y);
    also, if your page width = 720, that = 10 inches - that's a wide page (unless its in landscape)
    so if i want the JFrame To Be In The Center Of The Page I Would Choose From x=200 ,y=600 depending that frame width is 400Actually, it would be 300 - 700 in your example
    Because when i tried to use:setImageableArea(200, 600,  400, 200);like the above code
    no changes occurs in the printed paperYes. You need to offset the Graphics object

  • How to attach a text in the center of the Ellipse using JXML ?

    How to attach a text in the center of the Ellipse using JXML ? Can we use labelFor="$topEllipse" ?
    <StackPane fx:controller="myfxml.ArchiveLogsController" id="Login" xmlns:fx="http://javafx.com/fxml">
    <children>
    <AnchorPane>
    <!-- Prevent AnchorPane so that it's max = pref. This causes it to center in StackPane -->
    <maxWidth><Double fx:value="-Infinity"/></maxWidth>
    <maxHeight><Double fx:value="-Infinity"/></maxHeight>
    <children>
    <Ellipse fx:id="topEllipse" centerX="100" centerY="100" radiusX="50" radiusY="10" strokeWidth="2" stroke="#FF0000" style="-fx-fill: linear-gradient(to right, white 0%, red 100%);"/>
    *<Label fx:id="ArchLogs_lb" text="My Ellipse Label" />*
    </children>
    <properties>
    <backgroundColor>
    <Color blue="1.0" green="1.0" red="1.0" />
    </backgroundColor>
    <elementLockSel>
    <Boolean fx:value="true" />
    </elementLockSel>
    </properties>
    </AnchorPane>
    </children>
    </StackPane>

    I'd suggest putting the Ellipse and the Label in a StackPane.
    I wonder why so many people call it JXML?
    It is so strange - I guess the JXML name just seems more natural to some people, though I don't know why.
    I think Greg is right and that labelFor is not what you want:
    http://docs.oracle.com/javafx/2.0/api/javafx/scene/control/Label.html
    "Labels also are useful in that they can have mnemonics which, if used, will send focus to the Control listed as the target of the labelFor property . . . A Label can act as a label for a different Control or Node. This is used for Mnemonics and Accelerator parsing. This allows setting of the target Node."

  • My MacBookPro has a white screen with a grey file folder in the center of the screen with a white question mark blinking in it. What does this mean?  And how can I get my computer back up and running normal?

    My MacBookPro has a white screen with a grey file folder in the center of the screen with a white question mark blinking in it. What does this mean?  And how can I get my computer back up and running normal?

    Start up in Safe Mode.
    http://support.apple.com/kb/PH14204?viewlocale=en_US
    Repair Disk.
    http://support.apple.com/kb/PH5836
    Reset PRAM.
       http://support.apple.com/kb/PH14222

  • ALV: how to display only subtotals and total rows in the output

    ALV: how to display only subtotals and total rows in the output
    i am getting output
    i am getting subtotals for respective fields
    but i want to display only subtotals and totals rows in the output
    i have tried the
    totals_only   parameter in slis_layout_alv
    but it is not working.

    hi,
    For TOTAL
    For the amount field / quantity field in the field catalog give DO_SUM = 'X'    for WHOLE total
    For SUBTOTAL
    For subtotal you will have to create an internal table sort..Let's say you want to do subtotal for each customer..
    DATA: lt_sort type SLIS_T_SORTINFO_ALV,
    ls_sort type slis_sortinfo_alv.
    CLEAR ls_sort.
    ls_sort-spos = 1.
    ls_sort-fieldname = 'Give the field name that you do the sum'.
    ls_sort-up = 'X'.
    ls_sort-subtot = 'X'.
    APPEND ls_sort TO lt_sort.
    fieldcatalog-do_dum = 'X'.
    for subtotals
    WA_SORT-FIELDNAME = 'ERSDA'.
    WA_SORT-SPOS = '2'.
    WA_SORT-UP = 'X'.
    WA_SORT-SUBTOTAL = 'X'.
    APPEND WA_SORT TO IT_SORT.
    Refer
    http://help.sap.com/saphelp_erp2004/helpdata/en/ee/c8e056d52611d2b468006094192fe3/content.htm
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/doesnt-function-event-subtotal_text-in-alv-713787
    regards,
    Prabhu
    reward if it is helpful

  • How can I find the center of the current view

    How can I find the center of the current view

    Oracle permitted renaming the snapshot in the earlier versions of 8i. However, it does not permit renaming the materialized view in 9i or 10g.
    SQL> rename mymatview to mymatview2;
    rename mymatview to mymatview2
    ERROR at line 1:
    ORA-32318: cannot rename a materialized view
    SQL> disconnect
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - 64bit Production
    With the Partitioning, Oracle Label Security, OLAP and Data Mining options
    SQL> rename mymatview to mymatview2;
    rename mymatview to mymatview2
    ERROR at line 1:
    ORA-32318: cannot rename a materialized view
    SQL> disconnect
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.3.0 - 64bit Production
    With the Partitioning option
    JServer Release 9.2.0.3.0 - Production

  • How do I get a Dialog to appear in the center of the screen?

    How do I get a Dialog to appear in the center of the screen?

    You can get the screen size by using Dimension java.awt.Toolkit.getScreenSize().
    Once you get the Dimension, Before using API setVisible(true), You have to do the calculations to put your dialog in the center.

  • How do I put page number at the center of the bottom of page one and the rest of the page numbers at top right corner?

    How do I put page number at the center of the bottom of page one and the rest of the page numbers at top right corner?

    Put a section break at the bottom of page 1
    Then insert your page number in the footer of page 1.
    Go to page 2 and click in the body of the text;
    Inspector > Layout > Section > uncheck Use Previous Headers & Footers > click in Header on page > insert > Page Number
    Peter

  • Somehow I turned off the crosshair in the center of the Liquify tool. How does one turn this on/off?

    In PS CS 6, I somehow turned off the crosshair that used to be in the center of the Liquify tool. I'd like to get it back. How does one turn this on/off?

    The newest version of GPU Liquify now obeys the Photoshop preference "Show crosshair in brush tip" under cursors. Check this on in your prefs and you should be good to go.Non-GPU mode always has the crosshairs.
    The cursor ring was also improved to be thinner and less jagged. Also the crosshair size was reduced. Red rubylith was added to see the drag changes in density on vertical drags. Enjoy.

  • I opened my brand new MacBook Pro the other day and noticed a straight green line from top to bottom near the center of the screen. What is it from and how do I get rid of it????

    I am having a problem with my brand new MacBook Pro. After opening my laptop the other day I noticed a straight green line from top to bottom near the center of the screen. What is this from and how do I get rid of it? It is most annoying. Please Help!

    "What is this from and how do I get rid of it?"
    Such symptoms bode serious hardware issues and you shouldn't think about fixing it yourself when you are still in waranty. Get to an Apple Store, like the other poster suggests.

  • How to make a Quicktime 7 video open in the center of the screen. Answered!

    I open a Quicktime video and then noticed that the video didn't open in the top left top corner of the screen, like they usually do. So I placed the video in the center of the screen and did a SAVE, then closed the video. When I the video opened again it open to where I placed the video, the center. Then I placed the video on my second screen, center. Did a save and then close the video. When I reopened the video it open on the second screen centered....................! I don't know if this happens because of my OS (10.5.8) or Quicktime 7.6.4. But it works!!! People have been asking for years how to open a Quicktime video in the center of the screen. But there hasn't been an answer or a fix on how to do this, until now...! If you do a SAVE AS you can't over write the video you need to rename the video.
    Footnote: If you do a SAVE to Quicktime video. The video will lose the FAST START feature. If you need the fast start feature you need to do a SAVE AS. SAVE AS places the fast start feature back into the video. Fast start is used for videos that are posted on the internet.
    Message was edited by: David M Brewer

    Hi there
    What version of Captivate?
    Typically there is an option to click just to the right of where you type the URL.
    Below is an image of the version 5 properties.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • How do I stop Preview printing things in the center of the paper?

    Preview always insists on printing things in the center of the paper, which is handy when I'm printing, say, a paper-page document, but when I'm printing images or PDF's less than the full paper size, the result is a big waste of paper, especially when I have to print out multiple documents. The only workaround to my knowledge is to throw all my documents into Pages and arrange and print them from there, but come on—that isn't an acceptable solution. This is a problem I would expect to find in Windows. Anyone know how to change this?

    One action that you can follow is to open an image in Preview and set to show the Thumbnails. You can then drag some other images that you want to print into the Thumbnail bar. If you then select to print and with the Show Details view selected, choose the Layout menu and set the Pages Per Sheet menu to 2 or 4 or 6 (depending on the number of images you have to print) then this will print all of these images on a single page.

  • There is a dead area in the center of the display.  Display is normal on both sides.  Cursor will cross it but disappears when going through it.  Has anyone seen this?

    I have a dead area in the center of the display in the form of a vertical line about 1/2 inch wide.  The cursor disappears when passing through it but is visible on both sides.  Display is normal on both sides.  Anyone seen this before?

    Might want  to run the Apple Hardware Test just in case.
    Intel-based Macs: Using Apple Hardware Test

  • HT4085 I have the Sound Effect logo keeps appearing on my Ipad in the center of the screen, how do I get it off?

    When I turned on my Ipad to use, the sound effects logo appearned in the center of my page, how do I remove it?

    Try,
    Settings > General > Accessibility > Assistive Touch > then switch this to Off it is on.
    If this is not on, then please go through all the Accesssibility controls and make sure that they are all set to Off. From you description, I would guess that one of them is on.

Maybe you are looking for

  • Video issue- 1/3 screen is banded after water spill

    My daughter spilled water on the keyboard of the PB, and now the the bottom third of the screen is just a series of broad vertical bands, colored depending on the picture/icons on the screen. The banding developed over several minutes (she didn't tur

  • SOAP Adapter Content-Type

    Hi, we move a Interface from BC to XI and now the problem come up that the content type isn't correct anymore. With BC we Post a request with Content Type <b>application/x-sap.idoc</b> to a specific url. With XI i use the SOAP Adapter for sending the

  • Screwed up the "fixed" font, and X wont start with

    Hello everyone. Somehow, after installing a font package (xserver-terminus-fonts), I somehow deleted the default font in X - "fixed", and now, X wont start. I've tried to locate the file(s), but I haven't figured out where it is, what name it has, an

  • Programmatically change settings for "Button mode" in actions palette

    Hi, I am making an addon installer for Adobe Photoshop for Mac. After installing, I need to open a ".atn" file, and from the action palette , set it to "Button mode". How can I set the mode programmatically? Is there a plist or xml or setting file th

  • BOFC 10 Installation - Can't activate datasource

    Hello gurus, I need to install a complex landscape with Oracle/BOFC/BOFIM/DS/IC/CMS and more. During the installation of the BOFC component I didn't face any kind of issues, but I'm not able to activate a datasource. I receive the following error mes