Purpose of "align" in DDIF_NAMETAB_GET

Dear friends,
                    I am using this function module to get info of a particular table. But for some table x030l_wa-align gives 02 or 04.
                    So can anyone plz let me know the meaning of 02 or 04. What exactly could be the issue with the particular tables.
Thank you.

Hi
The value of align depends upon the data type of the fields in table.
02 - CHAR, INT2
04 - INT4
You can refer FM DD_TYPDEP_ALIGN_GET to get the alignment of each data type.
~~~Ganesh Kumar K.

Similar Messages

  • Aligning graphics - small offset I cannot get rid of

    For a graphic design I try to align a filled circle with a rectangle so the rectangle is a tangent to the circle - therby creating a rectangle with rounded corners.
    However I do it, there is always a small offset: I tried entering coordinates in the inspector, use the align function, and moving it with the arrow keys.
    It is only slight but noticeable when printing (also on screen at higher magnifications). How can I position the circle more precisely? Or is it a bug?
    The line width on the objects' borders is the same.
    Thanks in advance
    12" PB G4/1.2GHz- Mac Book Pro 17" - 12" iB G3/500 MHz - Mac mini G4 as server   Mac OS X (10.4.8)  

    Thank you both, Tulsa and Peggy. I did learn something new, reshaping predefined shapes.
    Unfortunately the purpose is recreating a logo for stationery (I have it in FrameMaker, but Adobe killed it by never producing a Mac OS X version of it, and on my Intel MBP Classic is gone.) I need a precise radius on one corner of the rectangle, and sharp corners at the other 3 locations.
    I can create somthing that looks almost right, but distracting.
    It seems that Pages has a bug preventing using for this purpose. Aligning seems not to be precise to 1200 dpi which is a pity as the tools otherwise are good for the purpose.
    Is this the reason why the maximum zoom factor is 400% only instead of eg 1600% (so you almost miss the small alignment error)?
    To give precise measures: using A4 paper, cm as units:
    rectangle 1.12 cm wide, 4.25 cm high at position 17 cm, 6 cm;
    rectangle 0.67 cm wide, .46 cm high at 17.46 cm, 10.27 cm;
    circle 0.91 cm/0.91 cm, at position 17 cm, 9.81 cm.
    all shapes have line set to none, filled with dark blue.
    This gives almost the shape I am trying to create except for small kinks between circle, small and large rectangle. With no movement with the mouse or through the inspector (entering numbers like 10.275 cm for Y position in the inspector) will they disappear.
    Should I file a bug report with apple (http://www.apple.com/feedback/pages.html)?

  • How can I automatically align the bottoms of two-page spreads in a long novel in CS3?

    I'm laying out a long novel in InDesign CS3. I've set the text to align to the baseline grid and have the keep options set to prevent widows and orphans. Because of these keep settings, often one page is a line shorter than the one facing it. Is there some way to set things up so that the longer page in a 2-page spread automatically breaks a line sooner, so as to match the shorter facing page -- or do I have to introduce page breaks manually, spread by spread?

    If you're the author, you might want to consider rewriting the annoying paragraphs. Perhaps changing a contraction to full words, or replacing full words with a contraction, for example. Yes, it's hard not to change meaning, so it's your call. If you have a good relationship with the author, you could consider suggesting the same thing.
    Other possibiliies that may not be acceptable options in your situation include experimenting with applying the single-line paragraph composer instead of the default multi-line composer, adjusting type and leading heights, and/or text frame size, uniformly all across the book, to see if a tiny tweak resolves all or most of the annoyances.
    The Auto-Size text frame feature just introduced in InDesign CS6 might work by setting it to a maximum and minimum height that differ by one line, "grow down from the bottom."
    Here's the dialog box:
    Search Google for terms like "InDesign CS6 auto-size text frame feature" without quotes for more info.
    [EDIT] Ooops, I just learned from Anne-Marie Conception's excellent free sample Lynda.com video tutorial that came up in the Google search I suggested above, that Auto-Size can't set a maximum frame height. So it might be tricky or impossible to find the right combination of keep lines together and other settings for your purpose of compensating for only one line of difference.[/EDIT]
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices
    JWKewet wrote:
    I'm laying out a long novel in InDesign CS3. I've set the text to align to the baseline grid and have the keep options set to prevent widows and orphans. Because of these keep settings, often one page is a line shorter than the one facing it. Is there some way to set things up so that the longer page in a 2-page spread automatically breaks a line sooner, so as to match the shorter facing page -- or do I have to introduce page breaks manually, spread by spread?
    Message was edited by: peter at knowhowpro

  • Function "DDIF_NAMETAB_GET"

    Hi,
    I am reading a database table's attributed using DDIF_NAMETAB_GET function. My code is:
    DATA: IO_TABLE_NAME TYPE tabname,
      it_dfies TYPE TABLE OF dfies,
      is_dfies TYPE dfies.
    DATA: is_x030l  TYPE x030l.
    *IO_TABLE_NAME is getting from user
    CALL FUNCTION 'DDIF_NAMETAB_GET'
               EXPORTING
                    tabname   = IO_TABLE_NAME
               IMPORTING
                    x030l_wa  = is_x030l
               TABLES
                    dfies_tab = it_dfies
               EXCEPTIONS
                    OTHERS    = 1.
    LOOP AT it_dfies INTO is_dfies.
    ENDLOOP.
    Above, When I watching the is_dfies, there are some informations as:
    "ZCALISAN      ID      0002000004     AKCNT"
    I know that ZCALISAN is the name of database table, ID is the attribute of this table, AKCNT is the field type of this attribute.
    Now,
    1. I don't know 0002000004 mean? Or how to interpret this value?
    2. I want to learn this table's primary key(s). But the table "it_dfies" includes only attribute information. How can I read primary keys? Is it possible to read primary keys using  FUNCTION 'DDIF_NAMETAB_GET'?
    3. I want to see the field type AKCNT or another field type's Data Type. Is it char? If char what is long? Or is it Decimal? How can I do this operation?
    4. The purpose of all of these operations copying one database table. For this purpose, I will read table's information then using EXEC SQL I will create the copied table. Using EXEC SQL can I define DECIMAL like in SAP, or all other types like in SAP? Is there any restriction?

    Hi,
    There are two problems that I need to solve:
    1. In my program I want SRC_TABL and TGT_TABL from user. Then when I called Function 'RS_DD_COPY_OBJ'
    CALL FUNCTION 'RS_DD_COPY_OBJ'
      EXPORTING
        SOURCE_NAME              = SRC_TABL
        TARGET_NAME              = TGT_TABL
        OBJTYPE                  = OBJECT_TYPE
      EXCEPTIONS
        NOT_EXECUTED             = 1
        PERMISSION_FAILURE       = 2
        OTHERS                   = 3.
    This function has another screen that wants Source Table and Target Table. If user enters Source Table and/or Target Table different from at the beginnig of the program that user entered, I need to learn what user entered. Because, I also need to activate copied table. And also, I will copy all entries of Source Table to Target Table. Because of these, I need to learn what user entered for table names while FUNCTION 'RS_DD_COPY_OBJ' is running
    2. As I mentioned above, I need to copy the source table's entries to target table. But source table's and target table's names are defined by user. So, I can not write this:
    SELECT * FROM SOURCE_TABLE INTO TABLE ITAB.
    INSERT DEST_TABLE FROM TABLE ITAB.
    Program gives error about SOURCE_TABLE and DEST_TABLE.
    Also, I can not define ITAB because of I do not know which table I will use before starting program.
    How can I implement this copy operation? Is there any way? Is there any function that copies source table's entries to target table?
    Thanks.
    Message was edited by: Huseyin Akturk -- DEU

  • How to Align Text in the TextArea

    How to Align text in the TextArea. My purpose is that I want to post the records after retrieving from database. All the records in each fields should keep aligned like Oracle WorkSheet.
    I want this way
    Code Name Place City
    a01 nilopher swiss street japan
    a02 rozina lovely street aus
    a03 benazir king's camp pitsburg
    and the out put should not look like this :-
    Code Name Place City
    a01 nilopher swiss street japan
    a02 rozina lovely street aus
    a03 benazir king's camp pitsburg
    here place and city records are getting disturbed accordingly the length of name.

    Well, first off (if it's not default, that is) you must set a monospaced font on the TextArea, unless you want to count pixelwidth of each and every string and then do an estimate on how many fill blanks you want...
    If you have the each string as a line, you use a StringTokenizer on it, extract each token, put all the tokens for that line into an array of strings.
    When every line is done, you compare the length of the nth String of each array and save the highest numbers.
    Then you reassemble each line from the arrays and pad in spaces where the tokens are too short.
    HTH,
    Fredrik

  • JDeveloper 10.1.3.4: text-align for table column has no effect

    Hi,
    I am using JDeveloper 10.1.3.4. In a tabe I have a column that displays numbers, which are left-aligned by default:
    Applied
    $50.00
    $2,160.00
    $50.00
    $2,260.00I want to have them aligned to the right to look neater:
    Applied
             $50.00
          $2,160.00
             $50.00
          $2,260.00Or better still, have the cell with the longest string aligned to the center, and all the other cells align to it by the decimal point:
        Applied
          $50.00
       $2,160.00
          $50.00
       $2,260.00I looked in the property inspector and the only thing that looks closest to the purpose is text-align. I set this attribute to right (text-align:right) for the column, and for the outputText, but neither has effect. Everything is still flush to the left. How to get it right?
    Thanks!
    Newman

    Hi, Branislav,
    Nice meeting you again.
    Last time the question was about formatting the total amount returned from the method, from String to Number, Re: JDeveloper does not handle expert SQL, cannot add query clause in view link, which can also format the number as currency.
    This time, your answer again solved my problem. I was looking in the inline styling section, and did not notice this property in the General section. Thank you so much for your help!
    Newman

  • Funny align problem....

    Link to online page : http://www.episodesoft.com/demo/index_fr.html
    Hello.
    I have a funny probleme dealing with alignment when you must have a webpage that can resize itself depending of the screen resolution. i know i am not a pro, but this is kindra funny...
    The basic setting is 1024x768, up to 1920x1080. my probleme is that i want the content (text) to always fit with the logo "logiciel episode" and currently it is working only with the 1024x768. The arm of the lady is cut on purpose in this format.
    I've try to put a margin-left in the CSS here, but when you do that, it fix the log/content fitting, but the text itself go over the lady ( yes the lady and the content are separate file for futur edition purpose). Now because the arm of the lady appear only when you are in a higher resolution that 1024x768, the table itself is larger than what is require by the 1024x768 size, thus messing thing.
    I cannot modifie the header either because the header as you see is not a single color that you can put in backgroup in the CSS. i had to make a file of 2000 pixelx95 for that.
    Does anyone know a way to fix or force the content and the lady something about 30-40 px from the left border of the cell in the table ?... when i try to type that directly in the code, nothing happen at all.
    Also please take note that the actual content will be in html, and not a Jpg ( however the background of the table will be a png ). this is still a demo.
    i am a little puzzled here.
    Since you cannot open the file, i copy here the whole code ( there is some part that are desactivated, dont mind it )
    Any help will be welcome.
    Thanks
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Logiciel Épisode</title>
    <style type="text/css">
    <!--
    #bottom {
    background-color: #FFFFFF;
    background-repeat:no-repeat;
    background-position: bottom;
    background-image: url(images/barre_bottom.png);
    height: 5px;
    #headinner  {
    background-position: center top;
    margin-top: 0px;
    margin-bottom: 0px;
    background-color: #F5F6F7;
    background-repeat: no-repeat;
    height: 95px;
    background-image: url(images/HeaderFR.png);
    body {
    background-color: #ffffff;
    margin-top: auto;
    margin-right: auto;
    margin-bottom: auto;
    margin-left: auto;
    background-image: url(images/fond.png);
    text-align: center;
    background-position: center;
    #Copyright {
    text-align: center;
    margin-bottom: 1px;
    margin-top: 1px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10pt;
    #layer2 #Layer2 tr td p {
    text-align: center;
    font-size: 36px;
    <!-- margin-left: 30px;
    -->}
    -->
    </style>
    <script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
    </head>
    <body>
    <div id="headinner">
    </div>
    <!--<div id="layer1" style="position:absolute; left:50%; margin-left:-475px; top:70px; width:950px; height:580px; z-index:2">
    <table width="950" border="0" align="center" >
      <tr>
        <td align="center" valign="middle">
        <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="950" height="580">
          <param name="movie" value="Video/Menu.swf" />
          <param name="wmode" value="transparent">
          <param name="quality" value="high" />
          <param name="wmode" value="transparent" />
          <param name="swfversion" value="6.0.65.0" />
          <param name="expressinstall" value="Scripts/expressInstall.swf" />
          <param name="embed" value="wmode=&quot;transparent&quot;" />
          <param name="selectable" value="false" />
          <param name="border" value="0" />
          <param name="embed" value="border=&quot;0&quot;" />
         <object type="application/x-shockwave-flash" data="Video/Menu.swf" width="950" height="580">
            <param name="quality" value="high" />
            <param name="wmode" value="transparent" />
            <param name="swfversion" value="6.0.65.0" />
            <param name="expressinstall" value="Scripts/expressInstall.swf" />
            <param name="embed" value="wmode=&quot;transparent&quot;" />
            <param name="selectable" value="false" />
            <param name="border" value="0" />
            <param name="embed" value="border=&quot;0&quot;" />
            <div>
              <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
              <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
            </div>
          </object>
          </object>
        </td>
      </tr>
    </table>
    </div> -->
    <div id="layer2">
    <table border="0" align="center" id="Layer2" name="Layer2">
      <tr>
        <td background="images/accueil_fond.png" width="1035" height="485" aling="right" ><img src="images/accueil2_3.png" width="950" height="485" align="left" valign="middle"/></a></td>
      </tr>
    </table>
    </div>
    <div id="bottom">
    </div>
    <p id="Copyright">© 2010 - Logiciel Episode Inc.</p>
    <table width="10" border="0" align="center">
      <tr>
        <td align="center" valign="middle"><a href="index_us.html" target="_self">English</a></td>
        <td align="center" valign="middle"><a href="index_fr.html" target="_self">Francais</a></td>
    <!--
        <td align="center" valign="middle"><p><a href="index_us.html" target="_self"><img src="images/Drapeau_US.png" width="25" height="15" border="0" align="absmiddle" /></a></p></td>
        <td align="center" valign="middle"><a href="index_fr.html" target="_self"><img src="images/Drapeau_fr.png" width="25" height="15" border="0" align="absmiddle" /></a></td>
    -->  </tr>
    </table>
    <script type="text/javascript">
    <!--
    swfobject.registerObject("FlashID");
    //-->
    </script>
    </body>
    </html>

    Building a "liquid" page layout for sizes rranging from 1024 to 1920 is going to give you problems if you expect your container's text content to remain fixed as the page (and the container) expands to fit the screen, in order to match a background picture.
    It's a little like building a house with movable walls but expecting the flooring and furniture and plumbing and wiring and windows to change sizes and location exaclty right every time you decide to slide a wall in or out.
    It can theoretically be done, but it's waaaaaaaaaayyyyyyyyyy more work than anyone would reasonably want to do.
    Better off to build a fixed container with a background image that fits.
    If you really want a fluid container, stick to adding text directly to a header image and leave that in a fixed position at the top of the page so no matter how big a visitor's screen is it will always look right, even if the page expands to 2048 X 1536 or larger.

  • Align JUSTIFIED, firstLineIdent, lineSpacing solution

    Align Justified, First line ident, line spacing features don't work correct.
    So i can suggest solution for these things.
    I implemented my ParagraphView class for this purpose.
    Hope it helps for somebody.
    best regards
    Stas
    This is the source code of example.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.text.*;
    import java.util.*;
    * Represents extension for Paragraph view.
    * @author     Stanislav Lapitsky
    class Main {
    JEditorPane pane;
    int ALIGNMENT=StyleConstants.ALIGN_JUSTIFIED;
    float LINE_SPACING=2;
    float FIRST_LINE_IDENT=50;
    public Main() {
    JFrame mainFrame=new JFrame("Advanced paragraph features support...");
    mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    pane=new JEditorPane();
    pane.setEditorKit(new StyledEditorKit_());
    JScrollPane sp=new JScrollPane(pane);
    mainFrame.getContentPane().setLayout(new BorderLayout());
    mainFrame.getContentPane().add(sp,BorderLayout.CENTER);
    StyledDocument doc=(StyledDocument)pane.getDocument();
    try {
    doc.insertString(0,"Advanced paragraph view implements following features: First line ident support, line spacing support, alignment justified support. Implemented by Stanislav Lapitsky. ",null);
    catch (Exception ex) {
    MutableAttributeSet attr=new SimpleAttributeSet();
    StyleConstants.setFirstLineIndent(attr,FIRST_LINE_IDENT);
    StyleConstants.setLineSpacing(attr,LINE_SPACING);
    StyleConstants.setAlignment(attr,ALIGNMENT);
    doc.setParagraphAttributes(0,doc.getLength()-1,attr,false);
    mainFrame.setBounds(100,100,330,200);
    mainFrame.show();
    public static void main(String[] args) {
    new Main();
    class StyledEditorKit_ extends StyledEditorKit {
    public ViewFactory getViewFactory() {
    return new StyledViewFactory_();
    class StyledViewFactory_ implements ViewFactory {
    public View create(Element elem) {
    String kind = elem.getName();
    if (kind != null) {
    if (kind.equals(AbstractDocument.ContentElementName)) {
    return new LabelView(elem);
    } else if (kind.equals(AbstractDocument.ParagraphElementName)) {
    // return new ParagraphView(elem);
    return new AdvancedParagraphView(elem);
    } else if (kind.equals(AbstractDocument.SectionElementName)) {
    return new BoxView(elem, View.Y_AXIS);
    } else if (kind.equals(StyleConstants.ComponentElementName)) {
    return new ComponentView(elem);
    } else if (kind.equals(StyleConstants.IconElementName)) {
    return new IconView(elem);
    // default to text display
    return new LabelView(elem);
    * Represents extension for Paragraph view.
    * @author     Stanislav Lapitsky
    class AdvancedParagraphView extends ParagraphView {
    public AdvancedParagraphView(Element elem) {
    super(elem);
    strategy=new AdvancedFlowStrategy();
    protected View createRow() {
    Element elem = getElement();
    return new AdvancedRow(elem);
    protected static int getSpaceCount(String content) {
    int result=0;
    int index=content.indexOf(' ');
    while (index>=0) {
    result++;
    index=content.indexOf(' ',index+1);
    return result;
    protected static int[] getSpaceIndexes(String content,int shift) {
    int cnt=getSpaceCount(content);
    int[] result=new int[cnt];
    int counter=0;
    int index=content.indexOf(' ');
    while (index>=0) {
    result[counter]=index+shift;
    counter++;
    index=content.indexOf(' ',index+1);
    return result;
    public static class AdvancedFlowStrategy extends FlowStrategy {
    public void layout(FlowView fv) {
    super.layout(fv);
    AttributeSet attr=fv.getElement().getAttributes();
    float lineSpacing=StyleConstants.getLineSpacing(attr);
    boolean justifiedAlignment=(StyleConstants.getAlignment(attr)==StyleConstants.ALIGN_JUSTIFIED);
    if (!(justifiedAlignment || (lineSpacing > 1)) ){
    return;
    int cnt=fv.getViewCount();
    for (int i=0; i<cnt-1; i++) {
    AdvancedRow row=(AdvancedRow)fv.getView(i);
    if(lineSpacing > 1) {
    float height = row.getMinimumSpan(View.Y_AXIS);
    float addition = (height * lineSpacing) - height;
    if(addition > 0) {
    row.setInsets(row.getTopInset(), row.getLeftInset(),
    (short) addition, row.getRightInset());
    if (justifiedAlignment) {
    restructureRow(row,i);
    row.setRowNumber(i+1);
    protected void restructureRow(View row,int rowNum) {
    int rowStartOffset=row.getStartOffset();
    int rowEndOffset=row.getEndOffset();
    String rowContent="";
    try {
    rowContent=row.getDocument().getText(rowStartOffset,rowEndOffset-rowStartOffset);
    if (rowNum==0) {
    int index=0;
    while (rowContent.charAt(0)==' ') {
    rowContent=rowContent.substring(1);
    if (rowContent.length()==0)
    break;
    catch (Exception e) {
    e.printStackTrace();
    int rowSpaceCount=getSpaceCount(rowContent);
    if (rowSpaceCount<1)
    return;
    int[] rowSpaceIndexes=getSpaceIndexes(rowContent,row.getStartOffset());
    int currentSpaceIndex=0;
    for (int i=0; i<row.getViewCount(); i++) {
    View child=row.getView(i);
    if ((child.getStartOffset()<rowSpaceIndexes[currentSpaceIndex]) &&
    (child.getEndOffset()>rowSpaceIndexes[currentSpaceIndex])) {
    //split view
    View first=child.createFragment(child.getStartOffset(),rowSpaceIndexes[currentSpaceIndex]);
    View second=child.createFragment(rowSpaceIndexes[currentSpaceIndex],child.getEndOffset());
    View[] repl=new View[2];
    repl[0]=first;
    repl[1]=second;
    row.replace(i,1,repl);
    currentSpaceIndex++;
    if (currentSpaceIndex>=rowSpaceIndexes.length)
    break;
    int childCnt=row.getViewCount();
    class AdvancedRow extends BoxView {
    private int rowNumber=0;
    AdvancedRow(Element elem) {
    super(elem, View.X_AXIS);
    protected void loadChildren(ViewFactory f) {
    public AttributeSet getAttributes() {
    View p = getParent();
    return (p != null) ? p.getAttributes() : null;
    public float getAlignment(int axis) {
    if (axis == View.X_AXIS) {
    AttributeSet attr=getAttributes();
    int justification=StyleConstants.getAlignment(attr);
    switch (justification) {
    case StyleConstants.ALIGN_LEFT:
    case StyleConstants.ALIGN_JUSTIFIED:
    return 0;
    case StyleConstants.ALIGN_RIGHT:
    return 1;
    case StyleConstants.ALIGN_CENTER:
    return 0.5f;
    return super.getAlignment(axis);
    public Shape modelToView(int pos, Shape a, Position.Bias b) throws BadLocationException {
    Rectangle r = a.getBounds();
    View v = getViewAtPosition(pos, r);
    if ((v != null) && (!v.getElement().isLeaf())) {
    // Don't adjust the height if the view represents a branch.
    return super.modelToView(pos, a, b);
    r = a.getBounds();
    int height = r.height;
    int y = r.y;
    Shape loc = super.modelToView(pos, a, b);
    r = loc.getBounds();
    r.height = height;
    r.y = y;
    return r;
    public int getStartOffset() {
    int offs = Integer.MAX_VALUE;
    int n = getViewCount();
    for (int i = 0; i < n; i++) {
    View v = getView(i);
    offs = Math.min(offs, v.getStartOffset());
    return offs;
    public int getEndOffset() {
    int offs = 0;
    int n = getViewCount();
    for (int i = 0; i < n; i++) {
    View v = getView(i);
    offs = Math.max(offs, v.getEndOffset());
    return offs;
    protected void layoutMinorAxis(int targetSpan, int axis, int[] offsets, int[] spans) {
    baselineLayout(targetSpan, axis, offsets, spans);
    protected SizeRequirements calculateMinorAxisRequirements(int axis, SizeRequirements r) {
    return baselineRequirements(axis, r);
    protected int getViewIndexAtPosition(int pos) {
    // This is expensive, but are views are not necessarily layed
    // out in model order.
    if(pos < getStartOffset() || pos >= getEndOffset())
    return -1;
    for(int counter = getViewCount() - 1; counter >= 0; counter--) {
    View v = getView(counter);
    if(pos >= v.getStartOffset() &&
    pos < v.getEndOffset()) {
    return counter;
    return -1;
    public short getTopInset() {
    return super.getTopInset();
    public short getLeftInset() {
    return super.getLeftInset();
    public short getRightInset() {
    return super.getRightInset();
    public void setInsets(short topInset,short leftInset, short bottomInset, short rightInset) {
    super.setInsets(topInset,leftInset,bottomInset,rightInset);
    protected void layoutMajorAxis(int targetSpan, int axis, int[] offsets, int[] spans) {
    super.layoutMajorAxis(targetSpan,axis,offsets,spans);
    AttributeSet attr=getAttributes();
    if ((StyleConstants.getAlignment(attr)!=StyleConstants.ALIGN_JUSTIFIED) && (axis!=View.X_AXIS)){
    return;
    int cnt=offsets.length;
    int span=0;
    for (int i=0; i<cnt; i++) {
    span+=spans;
    if (getRowNumber()==0)
    return;
    int startOffset=getStartOffset();
    int len=getEndOffset()-startOffset;
    String context="";
    try {
    context=getElement().getDocument().getText(startOffset,len);
    catch (Exception e) {
    e.printStackTrace();
    int spaceCount=getSpaceCount(context)-1;
    int pixelsToAdd=targetSpan-span;
    if (this.getRowNumber()==1) {
    int firstLineIndent=(int)StyleConstants.getFirstLineIndent(getAttributes());
    pixelsToAdd-=firstLineIndent;
    int[] spaces=getSpaces(pixelsToAdd,spaceCount);
    int j=0;
    int shift=0;
    for (int i=1; i<cnt; i++) {
    LabelView v=(LabelView)getView(i);
    offsets[i]+=shift;
    if ((isContainSpace(v)) && (i!=cnt-1)) {
    offsets[i]+=spaces[j];
    spans[i-1]+=spaces[j];
    shift+=spaces[j];
    j++;
    protected int[] getSpaces(int space,int cnt) {
    int[] result=new int[cnt];
    if (cnt==0)
    return result;
    int base=space/cnt;
    int rst=space % cnt;
    for (int i=0; i<cnt; i++) {
    result[i]=base;
    if (rst>0) {
    result[i]++;
    rst--;
    return result;
    public float getMinimumSpan(int axis) {
    if (axis==View.X_AXIS) {
    AttributeSet attr=getAttributes();
    if (StyleConstants.getAlignment(attr)!=StyleConstants.ALIGN_JUSTIFIED) {
    return super.getMinimumSpan(axis);
    else {
    return this.getParent().getMinimumSpan(axis);
    else {
    return super.getMinimumSpan(axis);
    public float getMaximumSpan(int axis) {
    if (axis==View.X_AXIS) {
    AttributeSet attr=getAttributes();
    if (StyleConstants.getAlignment(attr)!=StyleConstants.ALIGN_JUSTIFIED) {
    return super.getMaximumSpan(axis);
    else {
    return this.getParent().getMaximumSpan(axis);
    else {
    return super.getMaximumSpan(axis);
    public float getPreferredSpan(int axis) {
    if (axis==View.X_AXIS) {
    AttributeSet attr=getAttributes();
    if (StyleConstants.getAlignment(attr)!=StyleConstants.ALIGN_JUSTIFIED) {
    return super.getPreferredSpan(axis);
    else {
    return this.getParent().getPreferredSpan(axis);
    else {
    return super.getPreferredSpan(axis);
    public void setRowNumber(int value) {
    rowNumber=value;
    public int getRowNumber() {
    return rowNumber;
    public int getFlowSpan(int index) {
    int span=super.getFlowSpan(index);
    if (index==0) {
    int firstLineIdent=(int)StyleConstants.getFirstLineIndent(this.getAttributes());
    span-=firstLineIdent;
    return span;
    protected void layoutMinorAxis(int targetSpan, int axis, int[] offsets, int[] spans) {
    super.layoutMinorAxis(targetSpan, axis, offsets, spans);
    int firstLineIdent=(int)StyleConstants.getFirstLineIndent(this.getAttributes());
    offsets[0]+=firstLineIdent;
    protected static boolean isContainSpace(View v) {
    int startOffset=v.getStartOffset();
    int len=v.getEndOffset()-startOffset;
    try {
    String text=v.getDocument().getText(startOffset,len);
    if (text.indexOf(' ')>=0)
    return true;
    else
    return false;
    catch (Exception ex) {
    return false;

    I've managed to interpret what was in the POST and so just to help out here's how to get it all working:
    In a file called AdvancedParagraphView.java
    package .....<your package>.....
    import javax.swing.text.*;
    import java.awt.*;
    import javax.swing.*;
    public class AdvancedParagraphView extends ParagraphView {
      public AdvancedParagraphView(Element elem) {
        super(elem);
        strategy = new AdvancedFlowStrategy();
      protected View createRow() {
        Element elem = getElement();
        return new AdvancedRow(elem);
      protected static int getSpaceCount(String content) {
        int result = 0;
        int index = content.indexOf(' ');
        while (index >= 0) {
          result++;
          index = content.indexOf(' ', index + 1);
        return result;
      protected static int[] getSpaceIndexes(String content, int shift) {
        int cnt = getSpaceCount(content);
        int[] result = new int[cnt];
        int counter = 0;
        int index = content.indexOf(' ');
        while (index >= 0) {
          result[counter] = index + shift;
          counter++;
          index = content.indexOf(' ', index + 1);
        return result;
      static class AdvancedFlowStrategy
          extends FlowStrategy {
        public void layout(FlowView fv) {
          super.layout(fv);
          AttributeSet attr = fv.getElement().getAttributes();
          float lineSpacing = StyleConstants.getLineSpacing(attr);
          boolean justifiedAlignment = (StyleConstants.getAlignment(attr) ==
                                        StyleConstants.ALIGN_JUSTIFIED);
          if (! (justifiedAlignment || (lineSpacing > 1))) {
            return;
          int cnt = fv.getViewCount();
          for (int i = 0; i < cnt - 1; i++) {
            AdvancedRow row = (AdvancedRow) fv.getView(i);
            if (lineSpacing > 1) {
              float height = row.getMinimumSpan(View.Y_AXIS);
              float addition = (height * lineSpacing) - height;
              if (addition > 0) {
                row.setInsets(row.getTopInset(), row.getLeftInset(),
                              (short) addition, row.getRightInset());
            if (justifiedAlignment) {
              restructureRow(row, i);
              row.setRowNumber(i + 1);
        protected void restructureRow(View row, int rowNum) {
          int rowStartOffset = row.getStartOffset();
          int rowEndOffset = row.getEndOffset();
          String rowContent = "";
          try {
            rowContent = row.getDocument().getText(rowStartOffset,
                                                   rowEndOffset - rowStartOffset);
            if (rowNum == 0) {
              int index = 0;
              while (rowContent.charAt(0) == ' ') {
                rowContent = rowContent.substring(1);
                if (rowContent.length() == 0)
                  break;
          catch (Exception e) {
            e.printStackTrace();
          int rowSpaceCount = getSpaceCount(rowContent);
          if (rowSpaceCount < 1)
            return;
          int[] rowSpaceIndexes = getSpaceIndexes(rowContent, row.getStartOffset());
          int currentSpaceIndex = 0;
          for (int i = 0; i < row.getViewCount(); i++) {
            View child = row.getView(i);
            if ( (child.getStartOffset() < rowSpaceIndexes[currentSpaceIndex]) &&
                (child.getEndOffset() > rowSpaceIndexes[currentSpaceIndex])) {
    //split view
              View first = child.createFragment(child.getStartOffset(),
                                                rowSpaceIndexes[currentSpaceIndex]);
              View second = child.createFragment(rowSpaceIndexes[currentSpaceIndex],
                                                 child.getEndOffset());
              View[] repl = new View[2];
              repl[0] = first;
              repl[1] = second;
              row.replace(i, 1, repl);
              currentSpaceIndex++;
              if (currentSpaceIndex >= rowSpaceIndexes.length)
                break;
          int childCnt = row.getViewCount();
      class AdvancedRow
          extends BoxView {
        private int rowNumber = 0;
        AdvancedRow(Element elem) {
          super(elem, View.X_AXIS);
        protected void loadChildren(ViewFactory f) {
        public AttributeSet getAttributes() {
          View p = getParent();
          return (p != null) ? p.getAttributes() : null;
        public float getAlignment(int axis) {
          if (axis == View.X_AXIS) {
            AttributeSet attr = getAttributes();
            int justification = StyleConstants.getAlignment(attr);
            switch (justification) {
              case StyleConstants.ALIGN_LEFT:
              case StyleConstants.ALIGN_JUSTIFIED:
                return 0;
              case StyleConstants.ALIGN_RIGHT:
                return 1;
              case StyleConstants.ALIGN_CENTER:
                return 0.5f;
          return super.getAlignment(axis);
        public Shape modelToView(int pos, Shape a, Position.Bias b) throws
            BadLocationException {
          Rectangle r = a.getBounds();
          View v = getViewAtPosition(pos, r);
          if ( (v != null) && (!v.getElement().isLeaf())) {
    // Don't adjust the height if the view represents a branch.
            return super.modelToView(pos, a, b);
          r = a.getBounds();
          int height = r.height;
          int y = r.y;
          Shape loc = super.modelToView(pos, a, b);
          r = loc.getBounds();
          r.height = height;
          r.y = y;
          return r;
        public int getStartOffset() {
          int offs = Integer.MAX_VALUE;
          int n = getViewCount();
          for (int i = 0; i < n; i++) {
            View v = getView(i);
            offs = Math.min(offs, v.getStartOffset());
          return offs;
        public int getEndOffset() {
          int offs = 0;
          int n = getViewCount();
          for (int i = 0; i < n; i++) {
            View v = getView(i);
            offs = Math.max(offs, v.getEndOffset());
          return offs;
        protected void layoutMinorAxis(int targetSpan, int axis, int[] offsets,
                                       int[] spans) {
          baselineLayout(targetSpan, axis, offsets, spans);
        protected SizeRequirements calculateMinorAxisRequirements(int axis,
            SizeRequirements r) {
          return baselineRequirements(axis, r);
        protected int getViewIndexAtPosition(int pos) {
    // This is expensive, but are views are not necessarily layed
    // out in model order.
          if (pos < getStartOffset() || pos >= getEndOffset())
            return -1;
          for (int counter = getViewCount() - 1; counter >= 0; counter--) {
            View v = getView(counter);
            if (pos >= v.getStartOffset() &&
                pos < v.getEndOffset()) {
              return counter;
          return -1;
        public short getTopInset() {
          return super.getTopInset();
        public short getLeftInset() {
          return super.getLeftInset();
        public short getRightInset() {
          return super.getRightInset();
        public void setInsets(short topInset, short leftInset, short bottomInset,
                              short rightInset) {
          super.setInsets(topInset, leftInset, bottomInset, rightInset);
        protected void layoutMajorAxis(int targetSpan, int axis, int[] offsets,
                                       int[] spans) {
          super.layoutMajorAxis(targetSpan, axis, offsets, spans);
          AttributeSet attr = getAttributes();
          if ( (StyleConstants.getAlignment(attr) != StyleConstants.ALIGN_JUSTIFIED) &&
              (axis != View.X_AXIS)) {
            return;
          int cnt = offsets.length;
          int span = 0;
          for (int i = 0; i < cnt; i++) {
            span += spans;
    if (getRowNumber() == 0)
    return;
    int startOffset = getStartOffset();
    int len = getEndOffset() - startOffset;
    String context = "";
    try {
    context = getElement().getDocument().getText(startOffset, len);
    catch (Exception e) {
    e.printStackTrace();
    int spaceCount = getSpaceCount(context) - 1;
    int pixelsToAdd = targetSpan - span;
    if (this.getRowNumber() == 1) {
    int firstLineIndent = (int) StyleConstants.getFirstLineIndent(
    getAttributes());
    pixelsToAdd -= firstLineIndent;
    int[] spaces = getSpaces(pixelsToAdd, spaceCount);
    int j = 0;
    int shift = 0;
    for (int i = 1; i < cnt; i++) {
    LabelView v = (LabelView) getView(i);
    offsets[i] += shift;
    if ( (isContainSpace(v)) && (i != cnt - 1)) {
    offsets[i] += spaces[j];
    spans[i - 1] += spaces[j];
    shift += spaces[j];
    j++;
    protected int[] getSpaces(int space, int cnt) {
    int[] result = new int[cnt];
    if (cnt == 0)
    return result;
    int base = space / cnt;
    int rst = space % cnt;
    for (int i = 0; i < cnt; i++) {
    result[i] = base;
    if (rst > 0) {
    result[i]++;
    rst--;
    return result;
    public float getMinimumSpan(int axis) {
    if (axis == View.X_AXIS) {
    AttributeSet attr = getAttributes();
    if (StyleConstants.getAlignment(attr) != StyleConstants.ALIGN_JUSTIFIED) {
    return super.getMinimumSpan(axis);
    else {
    return this.getParent().getMinimumSpan(axis);
    else {
    return super.getMinimumSpan(axis);
    public float getMaximumSpan(int axis) {
    if (axis == View.X_AXIS) {
    AttributeSet attr = getAttributes();
    if (StyleConstants.getAlignment(attr) != StyleConstants.ALIGN_JUSTIFIED) {
    return super.getMaximumSpan(axis);
    else {
    return this.getParent().getMaximumSpan(axis);
    else {
    return super.getMaximumSpan(axis);
    public float getPreferredSpan(int axis) {
    if (axis == View.X_AXIS) {
    AttributeSet attr = getAttributes();
    if (StyleConstants.getAlignment(attr) != StyleConstants.ALIGN_JUSTIFIED) {
    return super.getPreferredSpan(axis);
    else {
    return this.getParent().getPreferredSpan(axis);
    else {
    return super.getPreferredSpan(axis);
    public void setRowNumber(int value) {
    rowNumber = value;
    public int getRowNumber() {
    return rowNumber;
    public int getFlowSpan(int index) {
    int span = super.getFlowSpan(index);
    if (index == 0) {
    int firstLineIdent = (int) StyleConstants.getFirstLineIndent(this.
    getAttributes());
    span -= firstLineIdent;
    return span;
    protected void layoutMinorAxis(int targetSpan, int axis, int[] offsets,
    int[] spans) {
    super.layoutMinorAxis(targetSpan, axis, offsets, spans);
    int firstLineIdent = (int) StyleConstants.getFirstLineIndent(this.
    getAttributes());
    offsets[0] += firstLineIdent;
    protected static boolean isContainSpace(View v) {
    int startOffset = v.getStartOffset();
    int len = v.getEndOffset() - startOffset;
    try {
    String text = v.getDocument().getText(startOffset, len);
    if (text.indexOf(' ') >= 0)
    return true;
    else
    return false;
    catch (Exception ex) {
    return false;
    In a file called FixedStyledEditorKit.java
    package .....<your package>.....
    import javax.swing.text.*;
    public class FixedStyledEditorKit extends StyledEditorKit {
      public ViewFactory getViewFactory() {
        return new FixedStyledViewFactory();
    }In a file called FixedStyledViewFactory.java
    package .....<your package>.....
    import javax.swing.text.*;
    public class FixedStyledViewFactory implements ViewFactory {
      public View create(Element elem) {
        String kind = elem.getName();
        if (kind != null) {
          if (kind.equals(AbstractDocument.ContentElementName)) {
            return new LabelView(elem);
          else if (kind.equals(AbstractDocument.ParagraphElementName)) {
    // return new ParagraphView(elem);
            return new AdvancedParagraphView(elem);
          else if (kind.equals(AbstractDocument.SectionElementName)) {
            return new BoxView(elem, View.Y_AXIS);
          else if (kind.equals(StyleConstants.ComponentElementName)) {
            return new ComponentView(elem);
          else if (kind.equals(StyleConstants.IconElementName)) {
            return new IconView(elem);
    // default to text display
        return new LabelView(elem);
    }I then used it with a JTextPane by putting:
    package ....<my package> ....
    JTextPane description = new JTextPane();
        description.setEditorKit(new FixedStyledEditorKit());

  • Automatic Alignment of Identical Audio Tracks in Audition CC Win 8.0

    Hi, I'm working on a film project, and I need to replace every bit of audio from the camera.  I've got every track and take from my digital recording device, and my video editor has round-tripped the project to me from Premiere Pro CC.
    My problem is that I need to zoom in on two tracks, down to the sample level, FOR EVERY SINGLE CUT IN THE FILM. Please someone tell me Audition can align two identical waveforms that are 99% of he way aligned to start with (one which has about 50% less gain and some noise).  NOTE: Auto speech alignment doesn't work.  (I've never gotten it to work properly for even the intended purpose. The artifacts, even on the lowest setting, are horrific.)
    I'm tearing my hair out here and I make it through about a minute of the film every hour or so......
    Help!
    -SCP

    Yikes!  I was going to send you straight to Automatic Speech Alignment which is the Audition tool to do exactly what you want.  I'm interested that you find it suffers from too many artifacts--I've not had that problem and therefore can't suggest any way to improve it--maybe a friendly developer will have some suggestions for you but, as far as I know, Auto Speech Alignment is the only tool designed for lining up tracks.
    A few suggestion to help the manual method (gleaned from my deep distant past working with film then the early days of video).
    First, if you're going for sample level accuracy you're WAY overthinking it.
    Video is a frame based system--how many frames per second depends where you are and what format you're using--but your sound can't be in better sync than "to the fram".  At a 48kHz sample rate, this means that within 1600 samples amounts to "perfect lip sync".  In the old days of film, sound was actually transferred to magnetic coated 16 or 35 mm film and edited that way--i.e. accurate only to the frame.
    Second, for the future, you might find it quicker to use an old fashioned "clapper board" at the beginning or end of every take.  This makes finding a sync point dead easy.  The other thing would be to sync up the external recorder BEFORE the editing starts so you can work in long, continuous takes rather than do a patch job later.  It's still manual but (especially if you have notes of the good takes and only do them) but much faster than doing it cut by cut.
    I know the second set of hints really doesn't help this time but maybe in the future...

  • Text alignment question

    Hi guys
    Just wondering if there is a way to keep two sentences in one string on the same line, but one aligned left, the other right using html or TLF?
    So...
    left margin>FIRST SENTENCE             SECOND SENTENCE<right margin
    The string is being injected into a textflow, so it would need to work with either TEXT_FIELD_HTML_FORMAT or TEXT_LAYOUT_FORMAT.
    I've imported css via a formatResolver, and have a class that colors and aligns the font. The color works, but aligning it does nothing.
    Thanks for taking a look.

    Forgot to mention it's for an AIR desktop app.  Here's the guts of the code from AS3CSSSample.as - some of the tags don't seem to work...
    [Embed(source="SimpleCSS.css",mimeType="application/octet-stream")]
            private var SimpleCSS : Class;
            //private var styleSheet:StyleSheet = new StyleSheet;
            private var styleSheet:StyleSheet = new TLFStyleSheet;
                // parse a styleSheet
            private var cssByteArray:ByteArray = new SimpleCSS();
            private var cssText:String = cssByteArray.readMultiByte(cssByteArray.length,"utf-8");
              flow = new TextFlow();
                flow.flowComposer = new StandardFlowComposer();           
                styleSheet.parseCSS(cssText);
                flow.formatResolver = new CSSFormatResolver(styleSheet);
    var simpleText:String = "<TextFlow xmlns='http://ns.adobe.com/textLayout/2008'>"
                + "<p styleName='center'><span>There are many </span><span styleName='italic'>such lime-kilns in that tract of country, for the purpose of burning the white marble which composes a large part of the substance of the hills. Some of them, built years ago, and long deserted, with weeds growing in the vacant round of the interior, which is open to the sky, and grass and wild-flowers rooting themselves into the chinks of the stones, look already like relics of antiquity, and may yet be overspread with the lichens of centuries to come. Others, where the lime-burner still feeds his daily and nightlong fire, afford points of interest to the wanderer among the hills, who seats himself on a log of wood or a fragment of marble, to hold a chat with the solitary man. It is a lonesome, and, when the character is inclined to thought, may be an intensely thoughtful occupation; as it proved in the case of Ethan Brand, who had mused to such strange purpose, in days gone by, while the fire in this very kiln was burning.</span></p>"
                + "<p><span>The man who now watched the </span><span id='bold'>fire</span><span> was of a </span><span typeName='foo'>different</span><span> order, and troubled himself with no thoughts save the very few that were requisite to his business. At frequent intervals, he flung back the clashing weight of the iron door, and, turning his face from the insufferable glare, thrust in huge logs of oak, or stirred the immense brands with a long pole. Within the furnace were seen the curling and riotous flames, and the burning marble, almost molten with the intensity of heat; while without, the reflection of the fire quivered on the dark intricacy of the surrounding forest, and showed in the foreground a bright and ruddy little picture of the hut, the spring beside its door, the athletic and coal-begrimed figure of the lime-burner, and the half-frightened child, shrinking into the protection of his father's shadow. And when again the iron door was closed, then reappeared the tender light of the half-full moon, which vainly strove to trace out the indistinct shapes of the neighboring mountains; and, in the upper sky, there was a flitting congregation of clouds, still faintly tinged with the rosy sunset, though thus far down into the valley the sunshine had vanished long and long ago.</span></p>"
                + "</TextFlow>";
    var textFlow:TextFlow = TextConverter.importToFlow(simpleText, TextConverter.TEXT_LAYOUT_FORMAT);
                // wipe out the default inherits - format take precendence over CSS - this simplifies the example
                textFlow.format = null;
                // attach a format resolver
                textFlow.formatResolver = new CSSFormatResolver(styleSheet);
                // set it into the editor
                textFlow.flowComposer.addController(new ContainerController(this,500,500));
                textFlow.flowComposer.updateAllControllers();
                flow.styleSheet = styleSheet;
                // attach a format resolver
                flow.formatResolver = new formatResolver(styleSheet);
                // set it into the editor
                textFlow.flowComposer.addController(new ContainerController(this,500,500));
                textFlow.flowComposer.updateAllControllers();
        ADOBE SYSTEMS INCORPORATED
        Copyright 2008 Adobe Systems Incorporated
        All Rights Reserved.
        NOTICE:  Adobe permits you to use, modify, and distribute this file
        in accordance with the terms of the Adobe license agreement
        accompanying it.  If you have received this file from a source
        other than Adobe, then your use, modification, or distribution
        of it requires the prior written permission of Adobe.
    span
        fontSize:        18;
    TextFlow
        columnCount:            2;
        textIndent:             15;
        paragraphSpaceAfter:    15;
        paddingTop:             4;
        paddingLeft:            4;
    foo
        fontSize:        18;
        color:            0xff00;
    .italic
        #fontStyle:        italic;
        #color:            0xff;
        #fontFamily:    Helvetica;
    .center
        textAlign:        center;
    #bold
        fontWeight:        bold;

  • Getting dual axis on a graph in SSRS to align at 0

    I have a graph that has 2 values that are plotted on dual axes.  Both values can be positive or negative.  Is there a way in SSRS to align the 0 point of both axes?  Preferably, I would like to retain dynamic values for the axes.
    I'm using 2008r2
    Thanks for any help.

    I figured out the issue with incrementing whole numbers, and this is the solution I used.
    You will need to manually set the interval value to determine the increments you want the line showing up. In my case I wanted the primary axis to show a value every 5 and the secondary axis to show a value every 5000.
    Manually setting the interval will cause the primary and secondary axes to be off again. To fix this, we will need to have the same amount of intervals on both axes. For instance, if we have 6 intervals on the primary axis we will need to have 6 intervals
    on the secondary axis to keep them lined up.
    I wrote custom code that will be used as expressions in the Maximum setting for both axes. The purpose of the functions will be to determine which axis will have more intervals, then calculate the maximum value needed to have the same amount of intervals.
    Primary Axis Maximum Expression
    =Code.FindMaxValueForPrimary(max(Fields!PrimaryField.Value), max(Fields!SecondaryField.Value))
    Secondary Axis Maximum Expression
    =Code.FindMaxValueForSecondary(max(Fields!PrimaryField.Value), max(Fields!SecondaryField.Value))
    Custom Code
    Public Function FindMaxValueForPrimary(ByVal PrimaryValue as Integer, ByVal SecondaryValue As Integer) As Integer
    IF Ceiling(SecondaryValue/5000) >= Ceiling(PrimaryValue/5) Then
    Return Ceiling(SecondaryValue/5000) * 5
    Else
    Return Ceiling(PrimaryValue/5) * 5
    End If
    End Function
    Public Function FindMaxValueForSecondary(ByVal PrimaryValue as Integer, ByVal SecondaryValue As Integer) As Integer
    IF Ceiling(SecondaryValue/5000) >= Ceiling(PrimaryValue/5) Then
    Return Ceiling(SecondaryValue/5000)*5000
    Else
    Return Ceiling(PrimaryValue/5) * 5000
    End If
    End Function

  • Alignement in List Output and Printing

    Respected Members,
    i had one zreport and given line size 215 and in output everything is coming in vertical alignement.
    For eg Material Description    Vendor Name ( Header Text)
                "Bowler"                     "Krishna Steels".
    Liket this everything is coming perfect under the header text and for this purpose i had written the code with the help of offset and length.
    Now in standard no format exist for size 215 so i had made a new format ie
    X_65_215.
    Now when i am taking prinout on A4 paper it is coming very small.
    THen instead of A4 paper i am going with A3 paper.
    For that i am going to spad and with ref to my output device i am going to output attributes and ther i selected the first tray and next tab TRAY INFO i have given the value DINA3 and selected the first tray checkbox.
    SAVE
    now when i am my executing report and giving the parameter X_65_215 printout is coming on A3 paper with the increase font size
    But the problem i am facing is that alignment is disturbed on the paper .
    if Material description is small then all the fields to the right of it are moving towards right side.
    I had set the following values in X_65_215
    ePL; landscape orientation
    eL8;  8 lines per inch;
    eS130X;
    e200siz; Font size.
    now thing is that our screen is 215 and width of A3 paper in landscape format is 42cm ie  420mm
    Now to set the character per inch value so that same alignment what we are getting on the screen should also get on the paper.
    Please give me the solution.
    Thanks

    Respected Members,
    i had one zreport and given line size 215 and in output everything is coming in vertical alignement.
    For eg Material Description    Vendor Name ( Header Text)
                "Bowler"                     "Krishna Steels".
    Liket this everything is coming perfect under the header text and for this purpose i had written the code with the help of offset and length.
    Now in standard no format exist for size 215 so i had made a new format ie
    X_65_215.
    Now when i am taking prinout on A4 paper it is coming very small.
    THen instead of A4 paper i am going with A3 paper.
    For that i am going to spad and with ref to my output device i am going to output attributes and ther i selected the first tray and next tab TRAY INFO i have given the value DINA3 and selected the first tray checkbox.
    SAVE
    now when i am my executing report and giving the parameter X_65_215 printout is coming on A3 paper with the increase font size
    But the problem i am facing is that alignment is disturbed on the paper .
    if Material description is small then all the fields to the right of it are moving towards right side.
    I had set the following values in X_65_215
    ePL; landscape orientation
    eL8;  8 lines per inch;
    eS130X;
    e200siz; Font size.
    now thing is that our screen is 215 and width of A3 paper in landscape format is 42cm ie  420mm
    Now to set the character per inch value so that same alignment what we are getting on the screen should also get on the paper.
    Please give me the solution.
    Thanks

  • Pie - Chart Web Part - Label Alignment empty

    Hello all,
    I create lots of Dashboards to display KPIs for my company and I always struggle with the pie chart labels as the always end up overlapping unless I rotate them but that just looks naff.
    My frustration and question is that the "Label Alignment" option is empty and therefore does not allow me to select "Open" which is the feature I seek.
    Does anyone have an idea why this might be and if there is a work around?
    Thank you in advance
    Jessica

    You would potentially run into this with lookup fields as well, I believe. I would make a column that is single line of text for the purpose of the chart. That would make sure the NUM;# is removed.
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

  • How to Center Align SWF in Browser

    I used the publish feature of flash but it does not seem to center the SWF in the browser. Why is there a centering feature on the publish settings under HTML tab if it does not center the SWF? It only works if you set Dimensions to Percent but that exposes the area beyond the stage and i don't want it to be seen. In addition that causes some movieclips to be improperly positioned. The Flash Alignment should have been disabled if the Dimensions is not set to Percent. Does anybody disagree? Can somebody help me solve this issue? Perhaps a simple script that centers my swf file in a browser... Any help highly appreciated.

    Thanks a many for your help! I tried not using the swfobject.js and tried commenting out the object instantiation in the html file and it still works, why? Is it really needed? What exactly is the purpose of the swfobject.js. I remember i read something about Geoff Stearns creating that .js file to solve a particular problem but i forgot what exactly that was.

  • Project background doesn't align with stage after rescaling project

    Hello,
    I think I discovered a bug that may or may not have been resolved in later versions of Captivate. I'm using Captivate 5 (5.0.3.631) and as much as I'd like to have a newer version, my employer only has this version purchased right now. I'm posting this here because I realize this may not be a bug and there may be a workaround, in which case maybe I can learn something!
    The issue appeared when I recently had to rescale my project to make room for a closed captions popup area at the bottom of the stage. (I don't want it to overlap previously positioned content.) Do do this, I rescaled my project to be 25 pixels taller than it was previously, and I selected the resize option to keep the already placed project contents aligned at the top left of the project rather than to scale everything to fit. Just as I hoped, this extended the stage out from the bottom by 25 pixels, much like resizing a canvas property in photoshop.
    I then edited my project background images to match the new project stage dimensions in order to cover up the now visible 25-pixel-tall strip of uncovered stage. I imported the new background image onto my master slide in the same way I placed the original one, and this is where the problem appears. The taller image, configured as a "project background", will not align with the stage anymore. Instead, it's hanging off the top of the stage by 13 pixels and not reaching the bottom of the stage by 12 pixels (adding up to the 25 pixels I increased the project height). I purposefully placed the image as a project background rather than just dragging it on the stage of the master slide. My reasons for doing so are somewhat complicated, but mainly are because I need the master slide background to not interfere with the Z-order of items on the regular slides. Apparently a master slide image on the stage of a master slide will cover up items set to display for the rest of the project. Perhaps this is a bug, too?
    Anyway, back to the problem at hand... I had everything working fine before I rescaled my project, but now the imported background image won't align with the stage. Because it's set as a project background, there is no way to reposition it on the stage... it just kind of lands where it lands. It appears that when I rescaled the project, Captivate remembered where the center of the "old" sized project was and didn't recalculate the center of the "new" rescaled project. So, when I place a larger image in the master slide (as a project background), it is centering it where the old, smaller project used to be... thus resulting in the larger image to not be centered on the stage.
    I figured out a workaround in the mean time by placing the background image on the stage of the master slide (not as aproject background), and by moving more things to the master slide that I don't want to be covered up. This actually seems to be a more elegant solution that what I had previously, but I'd still like to know if what I'm experiencing is a bug or not.

    Ok just found a workaround/solution.
    (always happens right after I ask, for some reason).
    Rescaled my project but kept the size and positions the "same and centered".
    Then I replaced all my background images with bigger versions (previously I had cropped them at the right and bottom).
    Now my backgrounds were all great, but all my objects were too low.
    All I had to do was ctrl+A to select everything on a slide, and then change the Y value for the whole bunch to zero.
    This magically placed all objects in their correct respective spots.
    Hope that helps someone out!
    Russ

Maybe you are looking for

  • T61 and Windows 8 compatibility

    Has anyone loaded Windows 8 on a ThinkPad T61? Is so, were there any incompatibilities? I currently run Vista Business 32-bit on my T61 but am considering moving on to Windows 8. Solved! Go to Solution.

  • Wont open Javascript on internet

    On some web pages you need java script to open them mine wont work whats wrong? Thanks

  • Acrobat Pro 9.4 and Touchup Object Tool

    Working on PDFs that were printed from AutoCAD. I am trying to select an  area to delete but it will not allow me to drag my selection box. . If I try to select a much larger area it will allow me to but this ends up selecting too much. This is not c

  • Application Background Image ?

    Hi Folks, Instead of a dull background color, how do I show an image during 1-2 seconds, while my application is loading? Thanks for your help, VC

  • MachineInformation stopped working/ Laptop very slow

    Hello, I tried out the things that I found for this Problem, but it still doesn't work. When I boot my Thinkpad Edge E145 I always get a message that MachineInformation doesn't work. In general the Laptop is very, very slow and a lot of programms sto