How to have dotted box in Smartform

I wish to create a dotted box something like
     |_ _ _ _ _|    this in Smartform Any ideas how to go about
Message was edited by:
        gagan kasana

hi gagan,
u can create a dotted line...since u had used a template...
in text before displaying that text use the code SY-uline for horizontal line
SY-VLINE for vertical line...
this will give u a dotted line...
hope this will help u out,
please reward points in case usefull
regards,
Prashant

Similar Messages

  • How to print Check Box in smartform

    HI,
      How to print check box in smartforms. I am using Include Sap Symbol but in the print it is coming as #. Do we need to do any setting like we do for barcode?
    Thanks
    Raghavendra

    hi,
    u can print a check box in different ways.. by inserting symbols and making window as check box..
    once go through the thread u will get to k now differnt ways
    putting checkboxes in smartform?
    Please Close this thread.. when u r problem is solved. Reward all Helpful answers
    Regards
    Naresh Reddy K

  • How to have a box layout on a JDialog, with an image set as background

    Hi,
    I need to have a JDialog in which there is a background image set (I already did this part, but only with the default layout). I further need to add text to the lower part of the JDialog. (For this, I guess I need to have a box layout.). I am not able to do so, because if I do so, I wont be able to set image background to the entire JDialog. Please help me out with how to solve this issue?
    Thanks,
    Joby

    Hi jduprez,
    Thanks for the reply. I checked Rob Camick's blog. It gives a nice way to add an image to a panel (*master panel*) and to use it.
    I still have my problem open. The above solution gives panel that I can add to my JDialog. But on the bottom half of the image (as you said, BorderLayout.South), I need to add another structured set of components using a Border Layout again.!, ie, one more panel with a BorderLayout. So when I add
    this panel, to the master panel containing the image, then the image gets cut off, at that point. I tried using component.setOpaque(false) on my sub-panel, still it does not work. Any idea, how to achieve this...?
    Following is the code I have adapted.
    public class BackgroundPanel extends JPanel
         public static final int SCALED = 0;
         public static final int TILED = 1;
         public static final int ACTUAL = 2;
         private Paint painter;
         private Image image;
         private int style = SCALED;
         private float alignmentX = 0.5f;
         private float alignmentY = 0.5f;
         private boolean isTransparentAdd = true;
         public static void main(String[] args) {
              Image img = getImage("D:/imgs/Snowdrop.jpg");
              BackgroundPanel panel = new BackgroundPanel(img);
              JDialog dlg = new JDialog();
              dlg.setLayout(new BorderLayout());
              dlg.add(panel);
              panel.setTransparentAdd(true);
              Panel nPanel = new Panel();
              nPanel.setLayout(new BorderLayout());
              JLabel label = new JLabel();
              //label.set
              label.setText("<html>HI<br>This is another line<br><br><br><br><br><br><br><br><br><br></html>");
              nPanel.add(label, BorderLayout.NORTH);
              panel.add(nPanel/*label*/,BorderLayout.SOUTH);
              dlg.setSize(600, 500);
              dlg.setVisible(true);
         private static Image getImage(String fileName){
              File file = new File(fileName);
             Image image = null;
             try{
                  image = ImageIO.read(file);     
             catch(IOException ioe){
                  /*JOptionPane.showMessageDialog(dlg, "Error in loading image file",
                            "Error", JOptionPane.ERROR_MESSAGE, null);*/
             return image;
          *  Set image as the background with the SCALED style
         public BackgroundPanel(Image image)
              this(image, SCALED);
          *  Set image as the background with the specified style
         public BackgroundPanel(Image image, int style)
              this(image,style,-1,-1);
          *  Set image as the backround with the specified style and alignment
         public BackgroundPanel(Image image, int style, float alignmentX, float alignmentY)
              setImage( image );
              setStyle( style );
              if (alignmentX  > 0){
                   setImageAlignmentX( alignmentX );     
              if (alignmentY  > 0){
                   setImageAlignmentY( alignmentY );     
              setLayout( new BorderLayout() );
          *  Use the Paint interface to paint a background
         public BackgroundPanel(Paint painter)
              setPaint( painter );
              setLayout( new BorderLayout() );
          *     Set the image used as the background
         public void setImage(Image image)
              this.image = image;
              repaint();
          *     Set the style used to paint the background image
         public void setStyle(int style)
              this.style = style;
              repaint();
          *     Set the Paint object used to paint the background
         public void setPaint(Paint painter)
              this.painter = painter;
              repaint();
          *  Specify the horizontal alignment of the image when using ACTUAL style
         public void setImageAlignmentX(float alignmentX)
              this.alignmentX = alignmentX > 1.0f ? 1.0f : alignmentX < 0.0f ? 0.0f : alignmentX;
              repaint();
          *  Specify the horizontal alignment of the image when using ACTUAL style
         public void setImageAlignmentY(float alignmentY)
              this.alignmentY = alignmentY > 1.0f ? 1.0f : alignmentY < 0.0f ? 0.0f : alignmentY;
              repaint();
          *  Override method so we can make the component transparent
         public void add(JComponent component)
              add(component, null);
          *  Override method so we can make the component transparent
         public void add(JComponent component, Object constraints)
              if (isTransparentAdd)
                   makeComponentTransparent(component);
              super.add(component, constraints);
          *  Controls whether components added to this panel should automatically
          *  be made transparent. That is, setOpaque(false) will be invoked.
          *  The default is set to true.
         public void setTransparentAdd(boolean isTransparentAdd)
              this.isTransparentAdd = isTransparentAdd;
          *     Try to make the component transparent.
          *  For components that use renderers, like JTable, you will also need to
          *  change the renderer to be transparent. An easy way to do this it to
          *  set the background of the table to a Color using an alpha value of 0.
         private void makeComponentTransparent(JComponent component)
              component.setOpaque( false );
              if (component instanceof JScrollPane)
                   JScrollPane scrollPane = (JScrollPane)component;
                   JViewport viewport = scrollPane.getViewport();
                   viewport.setOpaque( false );
                   Component c = viewport.getView();
                   if (c instanceof JComponent)
                        ((JComponent)c).setOpaque( false );
          *  Add custom painting
         protected void paintComponent(Graphics g)
              super.paintComponent(g);
              //  Invoke the painter for the background
              if (painter != null)
                   Dimension d = getSize();
                   Graphics2D g2 = (Graphics2D) g;
                   g2.setPaint(painter);
                   g2.fill( new Rectangle(0, 0, d.width, d.height) );
              //  Draw the image
              if (image == null ) return;
              switch (style)
                   case SCALED :
                        drawScaled(g);
                        break;
                   case TILED  :
                        drawTiled(g);
                        break;
                   case ACTUAL :
                        drawActual(g);
                        break;
                   default:
                     drawScaled(g);
          *  Custom painting code for drawing a SCALED image as the background
         private void drawScaled(Graphics g)
              Dimension d = getSize();
              g.drawImage(image, 0, 0, d.width, d.height, null);
          *  Custom painting code for drawing TILED images as the background
         private void drawTiled(Graphics g)
                 Dimension d = getSize();
                 int width = image.getWidth( null );
                 int height = image.getHeight( null );
                 for (int x = 0; x < d.width; x += width)
                      for (int y = 0; y < d.height; y += height)
                           g.drawImage( image, x, y, null, null );
          *  Custom painting code for drawing the ACTUAL image as the background.
          *  The image is positioned in the panel based on the horizontal and
          *  vertical alignments specified.
         private void drawActual(Graphics g)
              Dimension d = getSize();
              Insets insets = getInsets();
              int width = d.width - insets.left - insets.right;
              int height = d.height - insets.top - insets.left;
              float x = (width - image.getWidth(null)) * alignmentX;
              float y = (height - image.getHeight(null)) * alignmentY;
              g.drawImage(image, (int)x + insets.left, (int)y + insets.top, this);
    }Thanks,
    Joby

  • How to print check box from smartform

    Hi friends,
    Any body help me ???
    How can we print a check box in a layout from smartform.....

    Hi Shashi,
    You can't directly print a checkbox as such in a smartform. But, there is a workaround.
    Create two GraphicElements (for checked / unchecked). Assigned images to (for tick and untick) them.
    In the conditions tab of GraphicElement enter conditions -
    1. for checked - field = 'X'
    2. for unchecked - field = ' '
    To add images of tick and untick to system, Use transaction SO73.
    Regards,
    Manish Joshi

  • When I open Iphoto, I see all my photos for a second and then they disappear and only a white dotted box appears.  Then I click on it and for photos is a triangle with an exclamation point.  It doesn't happen to all but quite a lot. how to I get them back

    When I open Iphoto, I see all my photos for a second and then they disappear and only a white dotted box appears.  Then I click on it and for photos is a triangle with an exclamation point.  It doesn't happen to all but quite a lot. how to I get them back

    Have you recently deleted photos using the finder or run clean up software?  Is so restore your backup
    If not the backup your iPhoto Library and launch iPhoto while depressing the option and command keys. Rebuild your database
    LN

  • I have a box of dvds, and i would like to transfer them onto my computer on itunes and then onto my iPad. Does any know how to do this in a step by step process?

    I have a box of dvds, which I would like to transfer to my intunes account on my laptop. I then what to transfer the dvds to my ipad. Does anyone know how to do this in a step by step process?

    If you have an iPod Touch running iOS 4.3.3 or later, you can download the songs in the purchased tab of iTunes on the iPod.
    http://support.apple.com/kb/ht2519

  • I have a problem with mail.  the spelling and grammer check box before sending the messege is no longer there.  I did everything but cannot get it back.  is ther anyone who knows how to get the box with spelling and grammer checks before sending

    i have a problem with mail.  the spelling and grammer check box before sending the messege is no longer there.  I did everything but cannot get it back.  is ther anyone who knows how to get the box with spelling and grammer checks before sending the mail.
    Also the mail is acting very funny by not getting the rules work in a proper method.  Is ther a software to repair mail.

    i did both of them, but still the while sending the mail the diolog box is not showing up and also the spelling and grammer does not do the spelling check. 
    This problem just started for about 3 to 4 days now.  earlier it was working normally.

  • How to put Check Boxes and Radio button in Smartforms

    Hi all,
    How to put check Box and radio button in Smartforms ............ from web properties there is an option to use. But How to use.     
    regards,
    Mohsin

    u can declare the checkboxes or radiobuttons whatever in driver program and pass the same to ur form...

  • How to have a selection screen in the smartform

    Hi,
    <i><b>How to have a selection screen in the smartform. <u>Could anybody share with the example of driver program and the smart forms</u> . Please send me ASAP</b></i>
    Thanks
    Shiva shekar

    Hi,
    Refer to this
    http://www.****************/Tutorials/Smartforms/SFMain.htm
    Thanks,
    Anitha

  • I have a 7D but the serial stiker its gone and i need the SN how can i get it (i dont have the box)

    i have a 7D but the serial stiker its gone and i need the SN how can i get it (i dont have the box) is there a way to find it on the camera menu?
    Solved!
    Go to Solution.

    The serial number is in the EXIF.  Any EXIF reader will display it.
    EOS 1Ds Mk III, EOS 1D Mk IV EF 50mm f1.2 L, EF 24-70mm f2.8 L,
    EF 70-200mm f2.8 L IS II, Sigma 120-300mm f2.8 EX APO
    Photoshop CS6, ACR 8.7, Lightroom 5.7

  • HT1349 Actually, my iphone was hanged and its screen was not working at all .So, I updated its software from market but for reactivation it require icloud account but i didn't know how exactly it is and i was caught in big trouble . But i have its box and

    Actually, my iphone was hanged and its screen was not working at all .So, I updated its software from market but for reactivation it require icloud account but i didn't know how exactly it is and i was caught in big trouble . But i have its box and all other accessories .So , kindly help me as early as possible .Thankyou    and tell me about its solution
    <Email Edited by Host>

    Basic troubleshooting steps outline in the manual are restart, reset, restore from backup, restore as new.  Try each of these in order until the problem is resolved.  If you've been through all these steps and the trouble persists, you'll need to bring your phone to Apple for evaluation.  Be sure to make an appointment first at the Genius Bar so you won't have a long wait.
    Best
    GDG

  • HT1349 how to deactivate my iphone if it is stolen ? but i do not know the serial number neither do i have the box.

    how to deactivate my iphone if it is stolen ? but i do not know the serial number neither do i have the box.

    I also suggest, if you have enabled geo-localization and have associated an iCloud account to your iPhone, to localize your iPhone through a map on http://www.icloud.com. You may also block your iPhone, send a message to the iPhone and erase all your data.

  • My backlit keyboard will not go off automaticaly i have the box checked but it still doesn't turn on and off. i am having to do it using the f5 and f6 keys. anyone know how to make it work automatically in low light?

    i am having a problem with my back lit keyboard on my 13in mac book pro. i have the box checked in the keyboard setting for auto so the keyboard should turn on and off in low light conditions but it doesnt. anyone know how i can getit to work properly?

    I have taken it back to the Apple store genius bar, but they say they don't see anything wrong. Well unless you use it all day and experience the problems when they happen, you wont see anything wrong. But there are lots wrong with it. But this would be the same store as I purchased the phone. And they backed up my old Iphone 4, but were not able to get anything to load back onto my new phone. So, I lost pretty much everything. But over time, some of my contacts have started showing up, although i am still missing over 800 of them.

  • Since I downloaded latest version of iTunes yesterday, most pictures and documents have blue boxes covering most of thumbnails. How do I get rid of them, I hate it.

    Since I downloaded latest version of iTunes on my Windows 7 PC, most pictures and documents have blue boxes covering a big portion of the thumbnail images. I hate it, how do I get rid of them?

    this is total bullshit. so frustrated with this nonsense.

  • I erg my final cut express with apple, my computer is askingfor final cut ssn number after a year, i don't have the box. how do I get it from apple me

    How do i get my ssn number from apple for my final cut express, I installed it almost a year ago.  now its asking for the ssn and I don't have the box.
    Koby

    Read this: http://support.apple.com/kb/HT1861

Maybe you are looking for