How to print x to the power of y in a script.

hi,
How to print x to the power of y in a script.
thanks,
amit

Hi
It is possible in scripts as well.
First create a character format(assume c1); in that for Superscript click the ON then in you text you can just
PF X <c1> Y < /> (hey, here i'm unable write the slash... i hope you know how to close it in any script).
It is x to the power of y.
Regards
Surya.

Similar Messages

  • How to print envelopes on the HP OfificeJet Pro 8600,

    Hi there folks; 
    Recently I ran into several folks asking on how to print envelopes in the same printer The HP Officejet 8600
    Do to this I decided to provide both the instructions in this document as well as the links of the article where I refer to for the information. This way folks that want to have it quick and to the point can accomplish this by reading and following this article and any folk that want to dig deeper perhaps the article will provide more in depth information
    This is how to load the envelopes;
    I will provide the link of the Article where this information have been gathered from;
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02890475&cc=us&dlc=en&lc=en&product=4323648&tmp...
    Here the steps for loading the envelopes on the Officejet pro 8600.
    Grasp the handle on the front of the input tray, and then pull the tray towards you to open it.
    Figure 12: Pull out the input tray
    Slide the paper width guides out as far as possible.
    NOTE:If you are loading larger-sized paper, pull out the tray extension to lengthen the tray.
    Figure 13: Input tray extension
    Insert the envelopes into the center of the tray with the envelope flap on the left and facing up. If the flap is on the short end of the envelope, insert the envelope into the center of the tray with the flap toward the product and facing up.
    Figure 14: Load envelopes
    Slide the paper width guides in to rest against the edges of the envelope. Make sure that the envelope is centered in the tray.
    Push the tray into the product until it clicks into place.
    Figure 15: Push in the input tray
    Pull out the tray extender on the output tray.
    Figure 16: Pull out the tray extender
    This is the explanation on how to load envelopes into the 8600. Hope is helpful
    Now let’s make sure that the envelopes use are supported by the printer,
    This article will also provide you with envelopes support by this printers;
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02858465&cc=us&dlc=en&lc=en&product=4323648&tmp...
    Is an important to properly load the envelopes as to use only envelopes supported by the printer.
    you might spend countless hours trying to figure what is the problem without realizing that the issue is  the  envelope you are actually using is not supported.
    Here is a list of the envelopes supported by the Officejet 8600
    Paper type
    Paper size
    U.S. 10 envelope
    105 x 241 mm (4.1 x 9.5 inches)
    A2 envelope
    111 x 146 mm (4.4 x 5.8 inches)
    DL envelope
    110 x 220 mm (4.3 x 8.7 inches)
    C5 envelope
    162 x 229 mm ( 6.4 x 9.0 inches)
    C6 envelope
    114 x 162 mm (4.5 x 6.4 inches)
    Monarch envelope
    98 x 191 mm (3.9 x 7.5 inches)
    Card envelope
    111 x 152 mm (4.4 x 6.0 inches)
    Chou #3 envelope
    120 x 235 mm (4.7 x 9.3 inches)
    Chou #4 envelope
    90 x 205 mm (3.5 x 8.1 inches)
    Hope this is helpful.  
    I welcome any comments and questions;
    RobertoR 

    You can say THANKS by clicking the KUDOS STAR. If my suggestion resolves your issue Mark as a "SOLUTION" this way others can benefit Thanks in Advance!
    This question was solved.
    View Solution.

    On my OJ Pro 8600, When I go to print a # 10 envelope, it feeds the envelope through and then prints the address on a letter page.  I was forced to set the printer preferences to #10 envelope, and within Word, set the paper type to # 10 envelope, set Word up for center feed, and then put everything back to print normally.  ON my 6500 all I had to do was hit print.  There must be a way to print single envelopes without jumping through all these hoops!!

  • How to print/list all the groups/users present in Weblogic using Java code

    Hi,
    Weblogic version : 11.1.1.5
    How to print/list all the groups/users present in Weblogic using Java code
    I want to make a remote connection to Weblogic server and print all the users/groups present in it.
    I have gone through the below mentioned site, but I cannot use the same approach since most of the API' are deprecated for example "weblogic.management.MBeanHome;"
    http://weblogic-wonders.com/weblogic/2010/11/10/list-users-and-groups-in-weblogic-using-jmx/
    Thanks in advance,
    Edited by: 984107 on 05-Feb-2013 05:26
    Edited by: 984107 on 05-Feb-2013 22:59

    see this http://www.techpaste.com/2012/06/managing-user-groups-wlst-scripts-weblogic/
    Hope this helps.

  • How do I turn off the Power button Lockout on my HPw1858 monitor?

    How do I turn off the Power button lockout on my HPw1858 monitor?
    This question was solved.
    View Solution.

    Hi,
    Power Button Lockout is displayed.
    The monitor's Power Button Lockout function is enabled.
    Press and hold the Power button for 10 seconds to unlock the Power button function.
    If the above doesn't work then try a monitor reset.  Unplug the monitor’s power cord and hold down the monitor’s power button for 30-60 seconds. Plug the monitor back in and power it up.
    HP DV9700, t9300, Nvidia 8600, 4GB, Crucial C300 128GB SSD
    HP Photosmart Premium C309G, HP Photosmart 6520
    HP Touchpad, HP Chromebook 11
    Custom i7-4770k,Z-87, 8GB, Vertex 3 SSD, Samsung EVO SSD, Corsair HX650,GTX 760
    Custom i7-4790k,Z-97, 16GB, Vertex 3 SSD, Plextor M.2 SSD, Samsung EVO SSD, Corsair HX650, GTX 660TI
    Windows 7/8 UEFI/Legacy mode, MBR/GPT

  • How to print items in the MAIN window of the NEXT page (smartform)?

    Dear forumers,
    There are two pages (FIRST and NEXT) in my smartform with the same MAIN windows in each of the pages. Whatever that are changed in FIRST-MAIN window will also be seen in NEXT-MAIN window.
    I will need to control the printing of table TABLE3 contents (already contained in the MAIN window) such that if a variable V_MAT_PRINT is 'X', the TABLE3 contents will only be printed in NEXT page and not printed in FIRST page at all.
    How may I achieve this? Please help.
    Thank you.

    >
    Mohammed Ahasanullah Mulla wrote:
    > Hi Deborah,
    >
    > I had also faced a similar situation,in my case it was three pages..However i will try to tell you for 2 pages..After the second table .Add a program lines and force a page break only if V_MAT_PRINT is 'X'. After the program lines add a command and make the go to new page as second page.This will solve your problem.I have done the same and its working fine .If you have any questions do ask.
    >
    > Thanks,
    > Ahsan
    Hi Ahsan,
    Here's my case.
    If V_MAT_PRINT is 'X', print the following:-
    FIRST page, MAIN window
    - TABLE1
    - TABLE2
    - TABLE4
    - TABLE5
    NEXT page, MAIN window
    - TABLE3
    If V_MAT_PRINT is not 'X', print the following (no additional controls / changes are needed, everything remains unchanged):-
    MAIN window
    - TABLE1
    - TABLE2
    - TABLE3
    - TABLE4
    - TABLE5
    In this case, is a page break suitable? I doubt it as TABLE4 and TABLE5 will still need to be printed back on the FIRST page regardless of the V_MAT_PRINT value.
    Please advise further. Thanks.

  • How to Print Text in the PLD when we select Type : Text

    Hi All
    I designed a PLD for Purchase Order which is working well but
    whenever we select type: Text and we enter some text in the row level for each item. when we see the PLD priview
    Items are displaying but the text below the items are not displaying
    it displays an empty row after each item
    How should i print text in the PLD
    I required in this following Format
    ITEMCODE  DESCRIPTION      QTY
    001              XYZ                      20
    this is capital Good Item
    002             PQR                        30 
    this is Raw Material
    In this above format
    I didnt get the text below the Items
    Can any one suggest the correct answer

    Thanks for your reply
    I already select the linetext field from table POR10 and kept it  in the PLD
    but i didnt get my required format
    after giving that line text field  iam getting
    in this way
    S.No.        ITEMCODE   DESCRIPTION  QTY
       1               001               XYZ                 20
    this is Capital Goods
      2                                                                 
    this is Capital Goods
    the text is repeating twice
    I Put the ItemDescription field  in POR1 and Line Text Field in POR10 in the same repetitve area

  • How to Print File as the same as picture/fax viewer ?

    Hallo :
    I wrote a program which can let the specified png file to be printed. (png file is about 17xx * 11xx, output to A4 paper)
    The goal is the print result as the same as the windows built-in picture/fax viewer (by Full Page Fax Print Mode)
    And I don't want the printer dialog to be appeared. So I tried to use java print service to achieve this goal.
    Now I can print the file by printer.
    But comparing to the result which is printed by the windows built-in picture fax viewer(use Full Page Fax Print Mode), my result looks like zoom in, not full page.
    I tried some classes of javax.print.attribute.standard package, but no one worked.
    So I tried to transform the image by myself. And I found a resource : [http://java.sun.com/products/java-media/2D/reference/faqs/index.html#Q_How_do_I_scale_an_image_to_fit]
    It looks like what I wanted. But when I implemented the functionality according to that reference. The result is still the same, still zoom in...
    I must said I am unfamiliar with java 2D. But this is a problem I must solve.
    If the problem can be solved by only setting some classes of javax.print.attribute.standard, it's better.
    But if can't be solved by that way, the transformation method is ok, too.
    So does anyone can help me to solve this problem or pointed where I was wrong ? Thank you very much.
    import java.io.*;
    import java.net.*;
    import java.text.DecimalFormat;
    import java.awt.*;
    import java.awt.geom.*;
    import java.awt.image.ImageObserver;
    import java.awt.print.*;
    import javax.print.*;
    import javax.print.attribute.*;
    import javax.print.attribute.standard.*;
    public class TestImage{
       private void testPrint2() {
         Image img = Toolkit.getDefaultToolkit().getImage(A); // A is png file path
         PrintRequestAttributeSet requestAttributeSet = new HashPrintRequestAttributeSet();
         requestAttributeSet.add(new Copies(1));
         requestAttributeSet.add(MediaSizeName.ISO_A4);
         requestAttributeSet.add(OrientationRequested.PORTRAIT);
         requestAttributeSet.add(MediaTray.MANUAL);
         PrintService[] services = PrintServiceLookup.lookupPrintServices(null, requestAttributeSet);
         if(services.length > 0){
              DocPrintJob job = services[0].createPrintJob();
              try {
                   job.print(new SimpleDoc(new TestPrint(img), DocFlavor.SERVICE_FORMATTED.PRINTABLE , null), requestAttributeSet);
              } catch (PrintException pe) {
                 pe.getStackTrace();
       class TestPrint implements Printable {
         private Image image;
         public TestPrint(Image image) {
              this.image = image;
         public int print(Graphics graphics, PageFormat pageFormat, int pageIndex) throws PrinterException {
              if(pageIndex > 0) {
                  return Printable.NO_SUCH_PAGE;
              Graphics2D g2d = (Graphics2D) graphics;
              //Set us to the upper left corner
              g2d.translate(pageFormat.getImageableX(), pageFormat.getImageableY());
              AffineTransform at = new AffineTransform();
              g2d.translate(0, 0);               
              //We need to scale the image properly so that it fits on one page.
              double xScale = pageFormat.getImageableWidth() / image.getWidth(null);
              double yScale = pageFormat.getImageableHeight() / image.getHeight(null);
              // Maintain the aspect ratio by taking the min of those 2 factors and using it to scale both dimensions.
              double aspectScale = Math.min(xScale, yScale);
              //g2d.drawRenderedImage(image, at);
              g2d.drawImage(image, at, (ImageObserver) this);
              return Printable.PAGE_EXISTS;               
       public static void main(String[] args) {
         new TestImage().testPrint2();
    }Edited by: oppstp on Aug 3, 2010 10:14 AM
    Edited by: oppstp on Aug 3, 2010 10:18 AM

    Thanks for the reply.
    Now my algorithm which I used is when the height of image is smaller than the height of A4 paper and the width of image
    is larger than the width of A4 paper, I will rotate 90 degree of the image first, then I will scale the image.
    Then I can get the approaching result when the width and height of the image are larger than the width and height of A4 paper.
    But there was an additional error. That is when the width of image is larger than the width of A4 paper and
    the height of image is smaller than the height of A4 paper. (like 17xx * 2xx).
    Although the print result template is approaching the picture/fax viewer. But the print quality is so bad.
    The texts are discontinue. I can see the white blank within the text. (the white line are the zone which printer doesn't print)
    First I thought this problem might be DPI issue. But I don't know how to keep the DPI when rotating ?
    (I dumped the rotate image, it rotates, but didn't keep the DPI value)
    Does anyone know how to solve this strange problem ? Thanks a lot.
    Below is my test code (the initial value of transX & transY and 875 are my experiment result)
    import java.io.*;
    import java.awt.*;
    import java.awt.geom.*;
    import java.awt.image.*;
    import java.awt.print.*;
    import javax.imageio.*;
    import javax.print.*;
    import javax.print.attribute.*;
    import javax.print.attribute.standard.*;
    public class TestCol{ 
       private void testPrint2() throws Exception {
          BufferedImage bSrc = ImageIO.read(new File(A)); // A is png file path
          PrintRequestAttributeSet requestAttributeSet = new HashPrintRequestAttributeSet();
          requestAttributeSet.add(new Copies(1));
          requestAttributeSet.add(MediaSizeName.ISO_A4);
          requestAttributeSet.add(OrientationRequested.PORTRAIT);
          PrintService[] services = PrintServiceLookup.lookupPrintServices(null, requestAttributeSet);
          if (services.length > 0) {
             DocPrintJob job = services[0].createPrintJob();
             try {
                job.print(new SimpleDoc(new TestPrint(bSrc), DocFlavor.SERVICE_FORMATTED.PRINTABLE , null), requestAttributeSet);
             } catch (PrintException pe) {
                pe.getStackTrace();
       class TestPrint implements Printable {
          private BufferedImage image;
          public TestPrint(BufferedImage image) {
             this.image = image;
          public int print(Graphics graphics, PageFormat pageFormat, int pageIndex) throws PrinterException {
             if(pageIndex > 0) {
                return Printable.NO_SUCH_PAGE;
             int transX = 10;
             int transY = 35;
             int imgWidth = image.getWidth();
             int imgHeight = image.getHeight();
             Graphics2D g2d = (Graphics2D) graphics;
             //Set us to the upper left corner
             AffineTransform at = new AffineTransform();
             double xScale = 0.0;
             double yScale = 0.0;
             if((double)imgWidth > pageFormat.getImageableWidth()) {
                if(imgHeight > 785) {         
                   // X:image larger, Y:image larger -> scale all > 1, no rotate
                   xScale = pageFormat.getImageableWidth() / imgWidth;
                   yScale = (double)785 / imgHeight;
                } else {       
                   // X:image larger, Y:image smaller -> rotate right 90 degree than scale X
                   // rotate right 90 degree
                   at.translate(imgHeight/2.0, imgWidth/2.0);
                   at.rotate(Math.toRadians(90.0));
                   at.translate(-0.5*imgWidth, -0.5*imgHeight);
                   //at.preConcatenate(g2d.getTransform()); // if add this line, the result is zoom out many times, and the result is  not one page
                   try {
                      // output rotating image for debug
                      BufferedImage bDest = new BufferedImage(imgHeight, imgWidth, BufferedImage.TYPE_INT_RGB);
                      Graphics2D g = bDest.createGraphics();
                      g.drawRenderedImage(image, at);
                      ImageIO.write(bDest, "PNG", new File(B)); // B is output png file path
                   } catch (Exception ex) {
                       ex.printStackTrace();
                   transX = (int)((pageFormat.getImageableWidth() - imgHeight)/2);         
                   xScale = 1.0;
                   yScale = (double)785 / imgWidth;
             } else {
                if(imgHeight > 785) {       
                   // X:image smaller, Y:image larger -> no rotate, scale Y
                   xScale = 1.0;
                   yScale = (double)785 / imgHeight;
                } else {         
                   // X:image smaller , Y:image smaller -> no scale, no rotate
                   xScale = 1.0;
                   yScale = 1.0;
            g2d.translate(transX, transY);
            g2d.scale(xScale, yScale);
            g2d.drawRenderedImage(image, at);
            return Printable.PAGE_EXISTS;     
       public static void main(String[] args) {
          try {
             new TestCol().testPrint2();
          } catch (Exception ex) {
             ex.printStackTrace();
    }Edited by: oppstp on Aug 4, 2010 10:46 AM

  • How to print based on the logic that it is the last page of the report

    HI
    I want to print something on the last page.For example,I have to print a image(signature) file on the last page.How can I have the logic that it is the last page or any counter or variable to find that it is the last page of the report??
    Thanks in advance.

    Is there an example of this posted somewhere that actually works?
    I have used this exact syntax in everyway, every location possible and it either locks my MSWORD window on preview or throws a Java error.
    I am using the most current BIP template builder v10.1.3.2.1
    Thanks,
    Scott
    Sample files below:
    <?start:body?><?for-each:G_TEST?>
    <?TEST1?> <?TEST2?>
    <?TEST3?>
    THIS SHOULD PRINT ON ALL PAGES
    <?start@last-page:body?> PRINT ONLY ON THE LAST PAGE<?end body?>
    <?end for-each?><?end body?>
    <?xml version="1.0" encoding="WINDOWS-1252"?>
    <TEST>
    <LIST_G_TEST>
    <G_TEST>
    <TEST1>TEST Data Line Number One</TEST1>
    <TEST2>Test Data Line 2</TEST2>
    <TEST3>33 Test Data Line 3</TEST3>
    </G_TEST>
    <G_TEST>
    <TEST1>TEST Data Line Number One</TEST1>
    <TEST2>Test Data Line 2</TEST2>
    <TEST3>33 Test Data Line 3</TEST3>
    </G_TEST>
    <G_TEST>
    <TEST1>TEST Data Line Number One</TEST1>
    <TEST2>Test Data Line 2</TEST2>
    <TEST3>33 Test Data Line 3</TEST3>
    </G_TEST>
    <G_TEST>
    <TEST1>TEST Data Line Number One</TEST1>
    <TEST2>Test Data Line 2</TEST2>
    <TEST3>33 Test Data Line 3</TEST3>
    </G_TEST>
    <G_TEST>
    <TEST1>TEST Data Line Number One</TEST1>
    <TEST2>Test Data Line 2</TEST2>
    <TEST3>33 Test Data Line 3</TEST3>
    </G_TEST>
    </LIST_G_TEST>
    </TEST>

  • HT201150 How do I configure what the Power Button does?

    How do I configure my power button so hitting it does not automatically put it to sleep?
    Because it is right by the delete key I am hitting it accidentally all the time.  Also my cat is constantly putting my computer to sleep when I am working.  Is there a config file or a hack I can use to force a dialog (Restart/Sleep/Shutdown/Cancel)?

    See the 'More Like This' threads… (right sidebar)
    Power button behaviour
    Power button behaviourRe: after installing maverick power button does not provide options to sleep, shut-down
    The first one is resolved but I can't see how. 10.9's pmset command didn't have the 'power button' setting when I looked recently, it looks like this feature was deleted to me.

  • How to print off of the nook hd pluse to a HP envy wirelesz printer

    How do I get the hp app for the nook hd pluse???

    Hi @ember78,
    Welcome to the HP Support Forums.  I see that you would like to learn how to print from your Nook HD+ to your HP Envy printer.
    I am presuming that you have already connected your HP Envy printer to your wireless network and setup the ePrint feature of the printer.  To print from the Nook please download and install the HP ePrint app which can be found on Google’s Play Store.  I have included the HP ePrint Mobile App FAQs document for your reference.
    Please let me know if you have any additional questions.
    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

  • No power to my HP 4470c Scanner, how can i conf. its the power cord?

    The scanner had been working fine up until there was a format and reinstall of Windows XP.  How can I confirm that it is the power cable?  I have tried other outlets in the house and still the scanning bed will not light up.  Does anyone know if these power cords can just suddenly stop like that?

    Power output can drop when it is under a load like charging or when the notbook is booted up and running, or both.

  • HT3964 how do I check if the power supply is faulty?

    My daughter's iMac 24" has failed to restart after a power outage at her apartment. It's plugged in and the power button pressed but - nothing. Once before when a similar thing happened to me I vaguely remember having the back of the achine off and powering it up. There was an internal button to be pressed and a series of lights - LEDs - lit up on a board in the back of the computer. Depending on which ones lit up - and which ones didn't - you have a quick diagnosis of the probable fault. I've forgtten the process.
    Does any one know what I'm talking about?

    i do not know about what your description sounds to be a sort of reset button, but I will sugest you unplug everything from the computer, and everything that was connected to your computer from the power strip for ten minutes.
    Connect the computer to power, connect the router to power connect computer to router, and power up and come back telling us what happens then.
    One by one, plug things back into power then the computer if you have othe peripherals...
    Does anything change as one of them is connected?
    Did you remember to unplug the power strip and replug it and TURN IT On?

  • How do I know if the Power Supply is shot?

    Hi, I have G5 with a dual processor, purchased in 2003. I recently bought a new iMac and wanted to give the old G5 to a family member. The G5 just went dead, I think it took it personally.... I have done the resetting of the PMU, I have replaced the lithium battery. Nothing. Is there any way to test the other things to know what's dead? Is the power supply the next logical culprit? I know this computer isn't worth much but I'd like to have it limp along for another year. Any hints or ideas would be appreciated. I have been a huge fan of Discussions but this is my first post. Thank you.

    WrightBrayne wrote:
    I recently bought a new iMac and wanted to give the old G5 to a family member. The G5 just went dead, I think it took it personally....
    Many moons ago, my previously trouble-free Mac IISI died less than a week after my Power Mac 7600 arrived. Spooky, ain't it?
    Hope you were able to resuscitate your G5.

  • How does one tone down the power pack connect 'beep'

    When my S10 Netbook is already powered on (battery operation) and I connect the power pack, it emits a beep that's loud enough to wake the dead. Is there a way to tone it down?
    Thanks.
    Solved!
    Go to Solution.

    Follow the arrow > on the right, after Mic Volume, there is the option PC Beep.
    Regards,
    Ana

  • How to print photos from the MacBook Pro on the HP4580 printer

    I cannot seem to print photos in iPhotos on my MacBook Pro on my HP4580 all-in-one printer?

    Make sure you've cropped your photo in iPhoto to the same size as the paper size selected if you want a borderless print and have selected the same print size.
    Have you searched the HP website for drivers for the HP4580 printer or installed the latest HP printer drivers offered by Apple? HP Printer Drivers v. 2.13 for OS X

Maybe you are looking for