Get line width?

I would like to place a logotype to the right of the first lines text, where the X is:
Lorem ipsum X
dolor sit amet
Is it posible without copying the text to a box and resize it and check the box size?

horizontalOffset is your friend here. Use in conjuction with baseline to get the position of any character:
alert (app.selection[0].insertionPoints[-1].horizontalOffset + " "+app.selection[0].insertionPoints[-1].baseline);
(Click the text cursor anywhere in the text to see the result.)
You can read these properties for any text position "the usual way", i.e., referring to lines, words, and characters:
alert (app.selection[0].paragraphs[0].lines[0].characters[-1].horizontalOffset);
for example.
(I'm omitting Javascript formatting here because man! what's up with those scroll bars!?)

Similar Messages

  • Email with text attachment with line width 1250

    Dear all,
                 I want to send the email with text attachment whose line width in text file is 1250. Kindly let me know how to send email attachment with more than 255 line width.
    Regards,
    Manoj
    Moderator Message: Frequently Asked Question. Please search for available information before posting.
    Edited by: kishan P on Apr 29, 2011 2:48 PM

    Hi,
    What ever text you are sending in the email, create a standard text for it using tcode SO10. In the program use the FM READ_TEXT to get the data into internal table which will be of length 132 char. If you want line widht of 255 chars convert using FM SX_TABLE_LINE_WIDTH_CHANGE as below,
    CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
        EXPORTING
          line_width_dst              = '255'
        TABLES
          content_in                  =  it_data
          content_out                 = it_mess_att
        EXCEPTIONS
          err_line_width_src_too_long = 1
          err_line_width_dst_too_long = 2
          err_conv_failed             = 3
          OTHERS                      = 4.
    Use FM SO_NEW_DOCUMENT_ATT_SEND_API1 to send email.
    Hope this will help you.
    regards,
    Tulasi.

  • Line width on framemaker table

    hi there... i've got an issue on generated the framemaker9 - pdf.
    First, After generated to pdf, the table line width looks like not consistent. There are some thin and thick.. how must i do to get the table look nice with the all line is thin...
    procedure that i use to build the table is ------> Custom ruling and shading - choose from table (apply ruling style)
    Second - what is the difference between click or not at convert CMYK to RGB at settings in PDF Setup ? What exactly the function of convert CMYK to RGB ?

    Sha,
    If you have two separate questions, please create two posts. (Converting CMYK to RGB is the default behaviour of all previous versions of FrameMaker on Windows. Switching off this conversion is supposed to pass through the CMYK data when saving as PDF. Whether you need this or whether it works completely as you need it, you have to test.)
    Regarding line widths: Have you printed the page?
    Assuming your line with is set to be 0.5pt. With 72pt/inch and 25.4mm/inch you get a theoretical line width of 0.1764mm.
    Your screen has a resolution of maybe 96ppi (pixel per inch) so each pixel has a width of 0.2645mm. You can see that with pixels so wide, you can not successfully show 0.1764mm in 100% zoom size. The software (e.g. Adobe Reader) tries its best, but sometimes fails. The human eye is very good at detecting patterns and recognizes even slight changes inside a pattern very easily.
    Your printer may have a resolution of 600dpi (dot per inch) so each dot is as tiny as 0.0423mm. This time the printer may use about 4 dots to create the 0.5pt line, with a 1200dpi printer it could be 8 dots.
    So in the end what you see is just a technological limitation. If the so-called "Retina" display makes its way into mass market with >300ppi resolution those effects will fade away...
    - Michael

  • Changing line width for more than 5 chart series - Interactive Mode

    Hi,
    Re: BI Publisher 11.1.1.6.0, Interactive Reports
    I have a number of charts with a dynamic number of series based on the number of devices, cpus, network interfaces etc. on a particular system. Is it possible to change the line width for all series? I can change it for the first 5 series as per "Chart Plot Area" properties "Series[1-5] Line Width", however any subsequent series retain the default width.
    Thanks in advance,
    Jean

    Hello,
    Which version of APEX are you using?
    Go to your Flash Chart attributes - get into your series (click the icon) in the section of Series Query you'll find the maximum rows.
    Regards,
    Dimitri
    -- http://dgielis.blogspot.com/
    -- http://apex-evangelists.com/
    -- http://apexblogs.info/

  • Line width question; Freehand MX

    Is it possible to change the line width of all lines in a
    document?
    I go to Edit > Select > All In Document.
    I go to the Properties box and on the Object tab I try to
    click Stroke.---, but it is not active.
    Thanks for the help.

    First, let's get the terminology straight. Strokes (not
    lines) can be
    applied to paths.
    Find & Replace Stroke Width will only replace stroke
    widths on objects that
    are already stroked. It won't add strokes to non-stroked
    objects.
    A Hairline stroke is 0.25 pt. wide. If you selected Hairline
    as the low end
    of the selection range, then strokes smaller than 0.25 pt.
    will not be
    affected.
    Compared with FH9, FHMX adds group-level attributes, so to
    stroke every
    object at the path level, you will need to Select All and
    then Subselect
    until you have reached the path level. I have set up a custom
    keyboard
    shortcut for Edit>Select>Subselect. That allows me to
    drill down below group
    level.
    FH users also need to be aware that groups that have been
    scaled after
    'Transform as Unit' (TAU) is applied will scale the strokes
    according to the
    subsequent transformations. If you have unwittingly applied
    TAU to groups
    you may not see the changes you expect from Find &
    Replace Stroke width. I
    have unchecked the preference "Groups Transform as Unit by
    Default' and use
    the Transform as Unit checkbox in the object panel only when
    required.
    Judy Arndt

  • Nested canvas in GridLayout can't get its width and height

    Hello,
    I have a class entitled DisplayCanvas, which will accept some parameters from an invocation in another class including a shape and message parameters. These parameters must be centered in the instance of DisplayCanvas.
    For some reason, when I use this.getWidth() and this.getHeight() within my DisplayCanvas class, I get 0 and 0! I need the width and height in order to center the parameters the user will enter.
    Why does the width and height result at 0? What can I do to get the width and height?
    In my DisplayCanvas class notice the lines:
    canWidth = this.getWidth();
    canHeight = this.getHeight();
    For some reason the result is 0 for each!
    Here is my code for the DisplayCanvas class:
    //import the necessary clases
    import java.awt.*;
    import java.applet.*;
    import javax.swing.*;
    //begin the DisplayCanvas
    public class DisplayCanvas extends Canvas
      //declare private data members to house the width and height of the canvas
      private int canWidth;
      private int canHeight;
      //declare private data members for the shape and message
      private String message;
      private String shape;
      private Color sColor;
      private int sWidth;
      private int sHeight;
      private String font;
      private Color ftColor;
      private int ftSize;
      //declare public data members
      //constructor of DisplayCanvas
      public DisplayCanvas()
         //set the width and height
         canWidth = this.getWidth();
         canHeight = this.getHeight();
         //set all data members to defaults
         message = "";
         shape = "";
         sColor = null;
         sWidth = 0;
         sHeight = 0;
         font = "";
         ftColor = null;
         ftSize = 0;
      } //end the constructor
      //begin the setParams function
      public void setParams(String m, String s, Color c, int w, int h,
                            String f, Color ftC, int ftS)
          //set all private data members of DisplayShape to the arguments
          //this function assumes error checking was done by DemoShape
          message = m;
          shape = s;
          sColor = c;
          sWidth = w;
          sHeight = h;
          font = f;
          ftColor = ftC;
          ftSize = ftS;
      } //end the setParams function
      //begin the public paint function of ShowShape
      public void paint(Graphics g)
          //set and output the shape according to the arguments
          //determine the x and y of the shape
          int x = (canWidth - sWidth) / 2;
          int y = (canHeight - sHeight) / 2;
          //set the color for the graphic object
          g.setColor(sColor);
          //output the shape
          g.drawRect(x, y, sWidth, sHeight);
          //set and output the message according to the arguments
          //set the color and the font for the graphic object
          g.setColor(ftColor);
          g.setFont(new Font(font, Font.PLAIN, ftSize));
          //determine the centering of the message
          //output the message with the settings
          g.drawString(canWidth + " " + canHeight, 10, 10);
      } //end the paint function of ShowShape class
    } //end the DisplayCanvas classHere is my form entry class using the nested DisplayCanvas instance entitled drawCanvas:
    //import the necessary java packages
    import java.awt.*;                  //for the awt widgets
    import javax.swing.*;               //for the swing widgets
    import java.awt.event.*;            //for the event handler interfaces
    //no import is needed for the DisplayCanvas class
    //if in the same directory as the DemoShape class
    public class DemoShape extends JApplet
        //declare private data members of the DemoShape class
        //declare the entry and display panel containers
        private Container entire;           //houses entryPanel and displayCanvas
        private JPanel entryPanel;          //accepts the user entries into widgets
        private DisplayCanvas drawCanvas;   //displays the response of entries
        //required control buttons for the entryPanel
        private JTextField xShapeText, yShapeText, messageText, fontSizeText;
        private ButtonGroup shapeRadio;
        private JRadioButton rect, oval, roundRect;
        private JComboBox shapeColorDrop, fontTypeDrop, fontColorDrop;
        //declare public data members of the DemoShape class
        //init method to initialize the applet objects
        public void init()
            //arrays of string to be used later in combo boxes
            //some are used more than once
            String fonts[] = {"Dialog", "Dialog Input", "Monospaced",
                                "Serif", "Sans Serif"};
            String shapes[] = {"Rectangle", "Round Rectangle", "Oval"};   
            String colors[] = {"Black", "Blue", "Cyan", "Dark Gray",
                                "Gray", "Green", "Light Gray", "Magenta", "Orange",
                                "Pink", "Red", "White", "Yellow"};
            //declare variables to assist with the layout
            //these are the left and right justified x coordinates
            int ljX = 10; int rjX = 150;
            //this is the y coordinates for the rows
            int yRow1 = 10;     //the shape rows
            int yRow2 = 40;
            int yRow3 = 60;
            int yRow4 = 130;
            int yRow5 = 150;
            int yRow6 = 210;    //the message rows
            int yRow7 = 240;
            int yRow8 = 260;
            int yRow9 = 300;
            int yRow10 = 320;
            int yRow11 = 360;
            int yRow12 = 380;
            //these are the widths for the text boxes, drop downs
            //message entry,  big message entry and radio buttons
            int tWidth = 30; int dWidth = 100;
            int mWidth = 250; int bmWidth = 250;
            int rWidth = 125;
            //the height is universal, even for the messages!
            int height = 25;
            //set a content pane for the entire applet
            //set the size of the entire window and show the entire applet
            entire = this.getContentPane();
            entire.setLayout(new GridLayout(1, 2));
            //create the entry panel and add it to the entire pane
            entryPanel = new JPanel();
            entryPanel.setLayout(null);
            entire.add(entryPanel);
            //create the display canvas and add it to the entire pane
            //this will display the output
            drawCanvas = new DisplayCanvas();
            entire.add(drawCanvas);       
            //entry panel code
            //add the form elements in the form of rows
            //the first row (label)
            JLabel entryLabel = new JLabel("Enter Shape Parameters:");
            entryPanel.add(entryLabel);
            entryLabel.setBounds(ljX, yRow1, bmWidth, height);
            //second row (labels)
            JLabel shapeTypeLabel = new JLabel("Select Shape:");
            shapeTypeLabel.setBounds(ljX, yRow2, mWidth, height);
            entryPanel.add(shapeTypeLabel);
            JLabel shapeColorLabel = new JLabel("Select Shape Color:");
            shapeColorLabel.setBounds(rjX, yRow2, mWidth, height);
            entryPanel.add(shapeColorLabel);
            //third row (entry)        
            rect = new JRadioButton("Rectangle", true);
            oval = new JRadioButton("Oval", false);
            roundRect = new JRadioButton("Round Rectangle", false);
            rect.setBounds(ljX, yRow3, rWidth, height);
            oval.setBounds(ljX, yRow3 + 20, rWidth, height);
            roundRect.setBounds(ljX, yRow3 + 40, rWidth, height);
            shapeRadio = new ButtonGroup();
            shapeRadio.add(rect);
            shapeRadio.add(oval);
            shapeRadio.add(roundRect);
            entryPanel.add(rect);
            entryPanel.add(oval);
            entryPanel.add(roundRect);       
            shapeColorDrop = new JComboBox(colors);
            shapeColorDrop.setBounds(rjX, yRow3, dWidth, height);
            shapeColorDrop.addFocusListener(new focusListen());
            entryPanel.add(shapeColorDrop);
            //the fourth row (labels)
            JLabel xShapeLabel = new JLabel("Enter Width:");
            xShapeLabel.setBounds(ljX, yRow4, mWidth, height);
            entryPanel.add(xShapeLabel);
            JLabel yShapeLabel = new JLabel("Enter Height:");
            yShapeLabel.setBounds(rjX, yRow4, mWidth, height);
            entryPanel.add(yShapeLabel);
            //the fifth row (entry)
            xShapeText = new JTextField("200", 3);
            xShapeText.setBounds(ljX, yRow5, tWidth, height);
            xShapeText.addFocusListener(new focusListen());
            entryPanel.add(xShapeText);        
            yShapeText = new JTextField("200", 3);
            yShapeText.setBounds(rjX, yRow5, tWidth, height);
            yShapeText.addFocusListener(new focusListen());
            entryPanel.add(yShapeText);
            //the sixth row (label)
            JLabel messageLabel = new JLabel("Enter Message Parameters:");
            messageLabel.setBounds(ljX, yRow6, bmWidth, height);
            entryPanel.add(messageLabel);
            //the seventh row (labels)   
            JLabel messageEntryLabel= new JLabel("Enter Message:");
            messageEntryLabel.setBounds(ljX, yRow7, mWidth, height);
            entryPanel.add(messageEntryLabel);
            //the eighth row (entry)
            messageText = new JTextField("Enter your message here.");
            messageText.setBounds(ljX, yRow8, mWidth, height);
            messageText.addFocusListener(new focusListen());
            entryPanel.add(messageText);
            //the ninth row (label)
            JLabel fontTypeLabel = new JLabel("Select Font:");
            fontTypeLabel.setBounds(ljX, yRow9, mWidth, height);
            entryPanel.add(fontTypeLabel);
            JLabel fontColorLabel = new JLabel("Select Font Color:");
            fontColorLabel.setBounds(rjX, yRow9, mWidth, height);
            entryPanel.add(fontColorLabel);
            //the tenth row (entry)
            fontTypeDrop = new JComboBox(fonts);
            fontTypeDrop.setBounds(ljX, yRow10, dWidth, height);
            fontTypeDrop.addFocusListener(new focusListen());
            entryPanel.add(fontTypeDrop);       
            fontColorDrop = new JComboBox(colors);
            fontColorDrop.setBounds(rjX, yRow10, dWidth, height);
            fontColorDrop.addFocusListener(new focusListen());
            entryPanel.add(fontColorDrop);
            //the eleventh row (label)
            JLabel fontSizeLabel = new JLabel("Select Font Size:");
            fontSizeLabel.setBounds(ljX, yRow11, mWidth, height);
            entryPanel.add(fontSizeLabel);
            //the final row (entry)
            fontSizeText = new JTextField("12", 2);
            fontSizeText.setBounds(ljX, yRow12, tWidth, height);
            fontSizeText.addFocusListener(new focusListen());
            entryPanel.add(fontSizeText);
            //display panel code
            //use test parameters
            //these will later be retrieved from the entries
            drawCanvas.setParams("Hello", "roundRect", Color.red,
                                100, 100, "Serif", Color.black, 12);
            //set the applet to visible
            //set to visible and display
            entire.setSize(800, 600);
            entire.setVisible(true);
        }   //end the init method
        //declare an inner class to handle events
        private class focusListen implements FocusListener
            //supply the implementation of the actionPerformed method
            //pass an event variable as the argument
            public void focusLost(FocusEvent e)
            { JOptionPane.showMessageDialog(null, "Focus lost."); } 
            //declare an empty focus gained function
            public void focusGained(FocusEvent e) {}      
        }   //end testListen class
    }   //end DemoShape class

    Sorry for glossing over your code sample, particularly as it looks like one of the best I've seen so far on the forums, but I'm pretty sure the answer you are looking for is as follows:
    Java doesn't render a component until paint() is called so until then you are not going to have any size settings because the jvm simply doesn't know how big the visual component is. This makes sense when you think about what the jvm is doing. The layout manager controls the display of the components depending on the settings it is supplied. So until it knows how many components you want, where, what kind of spacing, etc, etc, etc, how can the size be determined.
    The true cycle of events is therefore:
    create an instance of DisplayCanvas,
    add it to your container,
    make the container visible (which renders the component),
    get the size of the DisplayCanvas instance.
    You are being hampered because your desired chain of events is:
    create an instance of DisplayCanvas,
    get the size of the DisplayCanvas instance,
    add it to your container,
    make the container visible.
    This state of affairs is highly annoying and then leads to the next question "what do we do about that?". There is a cunning trick which is to get the jvm to render the component to an off-screen image, thus calculating the dimensions of the component so that you can do precisely the kind of enquiry on the object that you have been looking for. It should be noted that this may not be the visual size for all the reasons given above, but it is the "preferred size" for the component. Check the Swing tutorials and have a look at the section on Layout Managers for a run down on what that means.
    Anyway, we can use this handy code sample to determine the preferred size for your component. Notice the call to "paint()" (normally you would never make a direct call to paint() in swing) and the "g.dispose()" to free resources:
    package com.coda.swing.desktool.gui;
    import java.awt.Component;
    import java.awt.Dimension;
    import java.awt.Graphics2D;
    import java.awt.image.BufferedImage;
    public class PaintUtil
         public PaintUtil()
              super();
         public static Component paintBuffer(Component comp)
              Dimension size = comp.getPreferredSize();
              comp.setSize(size);
              BufferedImage img = new BufferedImage(size.width, size.height, BufferedImage.TYPE_INT_ARGB);
              Graphics2D g2 = img.createGraphics();
              comp.paint(g2);
              g2.dispose();
              return comp;
    }Before you make a call to getWidth() or getHeight() put in a call to "PaintUtil.paintBuffer(this);" and see what happens.
    By the way, I can't claim credit for this code ... and I really wish I could remember where I got it from myself so I can thank them :)

  • Measuring Line Width Of Composed Text

    Hi,
    In the solutions.pdf of the CS4 SDK, there is a piece of code listed in example 9 that will estimate the width of the text. I tried implementing it as a snippet but upon compiling the code in xcode, I get an invalid static_cast from type IFontInstance* to type const IPMUnknown* that originate from the line of code InterfacePtr<IFontInstance> fontInstance(nil).
    I haven't changed any part of the code, and I don't think adobe would post examples of non-working code on a document named solutions.pdf , so I'm betting that I missing something here but I can't figured out what... any hints is highly appreciated... thanks!
    -- Jeff

    To procede, omit the "(nil)" argument and you should be fine for that line, or specialize the method in question.
    I tried this, but I got error messages pointing to a function that uses the fontInstance pointer. The function is in the form of:
    EstimateStringWidth(WideString run, IFontInstance* fontInstance)
    and the error tells me that the line:
         totalWidth += EstimateStringWidth(charBuff, fontInstance);
    has no matching function.
    Also, most of the samples in the SDK creates a IFontInstance using an InterfacePtr.
    I tried this approach because solutions.pdf suggests this method to estimate text widths... I want to measure the text width of a composed line to determine the raggedness (degree of whitespace left on the end of each line) of a paragraph. But with this issues, am I better off using the GetWidth method of IWaxLine to get the width.
    Now, my next question would be, can I get the estimate width of the line if I change the properties of the paragraph, ie. justification settings, without actually composing the text in the ui. I need this so that I can compute for the optimal settings to changed so that the degree of raggedness of the paragraph would be less than the original.
    Thanks again!

  • Report Text line width

    Is there a way to set the text line width on a report to 80 characters and then have it wrap to the next line. I'm getting very long cells that I have to scroll over with the arrow key to see the text past my screen size.

    Any one know the HTML command to set text line size?

  • Change line width in Apple Mail?

    Is there a way I can change the line width in the e-mails I write? Maybe a plug-in?

    Bump.
    Are these phantom extra line breaks and vanishing line breaks not occurring to anyone else?
    In Mail Preferences > Composing > Responding > Quote the text of the original message
    ...I tried disabling (unchecking) it, but it doesn't make much difference. Again, the problems occur in the body of a
    Message > Reply
    ...not a newly-created message. I've even pasted the body text into TextWrangler and done a "Zap Gremlins" and "Remove Line Breaks," but after I paste it back into Mail and reset my line breaks like I want, I still get extra and/or removed line endings when I review my sent message.

  • Any way to set line width on outgoing (text) messages?

    My messages to a mailing list (and probably elsewhere) sometimes get chopped up by the addition of extra returns, so they're hard to read by the recipient (we've all seen this, especially on messages forwarded several times). I always send text-only email. A correspondent suggest setting my outgoing message line width down to 60 characters to avoid this, but I can't find anywhere in Mail's preferences to do this (I seem to remember such a setting on another email client years ago). I'm embarrassed to report back to my Windows-using correspondent that Apple Mail doesn't offer this option. Can anyone tell me it does, and where?

    No, I'm not putting in any extra returns. I seem to remember this from back in the 90s: that some points in the Internet's email system allow lines of only 60 characters' length, so if your message arrives with 72 character (or longer) lines, it'll get all chopped up; and the solution is to set your email client to produce only 60-character lines. But I can't find any way to do this in Mail.

  • Rotating line width

    A tangental question to the arrow issue previously posted. I tagged this question to the end of the other thread but it may have gotten lost.
    http://www.youtube.com/watch?v=RnRZn_p8MFk
    In the example I gave the arrow thickness was only in the vertical plane. I have been playing with this and can't seem to figure out how to get the width to be horizontal.
    I've tried making the line straight, add the width, then rotate the line in X, but then I can't get it to curve.
    I changed the Brush Type to Airbrush and by turning on Local 3D and I can make the Line "tubular" but I can't get the ribbon look I've trying to achieve.
    I just wish it was a simple as just being able to rotate the line thickness.

    If you're referring to the manner in which the line/arrow curves (on the edge vs on the flat side), then you've discovered a fundamental problem with the line due to the fact that it's a 2D element and not a 3D element.
    The only real way to get a line to bend along its spine is to use a 3D replicator using a thin rectangle as the source. Replicators can be 3D and can be positioned in such a way to mimic a 3D line. However, you'd have to attach arrows manually, and then animating it is a whole other can o'worms. Not to mention the fact that you'd have to create a lot of replicates for even a single line which will significantly drive down performance.
    Andy

  • Changine line widths in multi page reports?

    I need to be able to change line widths on a "per channel basis" within a multi page report. Is there a script that I can use to do this?

    Hey Zilla,
    I'm not exactly sure what you're trying to do but I've written a short example that hopefully does something similar. It may not be the most efficient example but it should get you started. I assumed that by line width you're referring to the width of a plot on a graph in DIAdem Report. The following code changes the width of three plots on two graphs each on different sheets. The code is pasted below. I'm attaching the report template I used. It uses the default DIAdem dataset. If you have a different report the object names may be different. (The report template was created in DIAdem 9.1)
    Call GraphSheetNGet(2)
    Call GraphSheetRefSet(GraphSheetName)
    Call GRAPHObjOpen("2DAxis1")
    for i=1 to 3
    Call GRAPHObjOpen("2DObj1_Curve" + s
    tr(i))
    D2CURVELINEWIDTH ="35.0"
    Call GRAPHObjClose("2DObj1_Curve" + str(i))
    next
    Call GRAPHObjClose("2DAxis1")
    Call GraphSheetNGet(1)
    Call GraphSheetRefSet(GraphSheetName)
    Call GRAPHObjOpen("2DAxis1")
    for i=1 to 3
    Call GRAPHObjOpen("2DObj2_Curve" + str(i))
    D2CURVELINEWIDTH ="35.0"
    Call GRAPHObjClose("2DObj2_Curve" + str(i))
    next
    Call GRAPHObjClose("2DAxis1")
    Call Picupdate
    I hope this helps!! If this isn't what you're trying to do please post back with more information so I can try to help.
    Regards,
    Sarah Miracle
    National Instruments
    Attachments:
    DIAdemExample.TDR ‏52 KB

  • Chart Lines Dissapearing When Line Width Less than .38pt

    I have a Line Chart with about 70 different series. As you can imagine, it gets pretty crowded. In SQL server 2005, I was able to set the line width to .25pt, but when I try to do the same in 2012, the lines disappear! The smallest line width that I can
    get to show up is .38.....If anyone out there knows why this happens, I would really appreciate a hint. I've tried everything from messing with the markers to the empty point settings...
    Thanks

    Hi Scott,
    I am able to reproduce your scenario that when the line width with less than or equal to 0.375pt, they will all disappear in the line chart in my test environment. Based on my research, it seems to be the particular render extensions which cannot display
    the narrow lines in line chart. However, if we export the report into PDF, the all lines which narrow than 0.375pt will appear in the report. I think this is by design.
    I would suggest you submitting a wish at
    https://connect.microsoft.com/SQLServer/Feedback. 
    Connect site is a connection point between you and Microsoft, and ultimately the larger community. Your feedback enables Microsoft to make software and services the best that they can be, and you can learn about and contribute to exciting projects.
    Thank you for your understanding.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How can I create a line width 0 when using a line style other than solid?

    Every time I select a line style other than solid,
    the line width gets reset to 0. This makes for a
    VERY faint line on the printed output.

    If this question is for the HiQ box, this is not a product that is supported by general technical support Applications Engineers any longer. The help for HiQ is exclusively online, and can be found at http://www.ni.com/support/hiqsupp.htm
    Of course, this question can still be answered by other HiQ users that visit this forum. Please post back if you have any questions. Thanks, and have a great day.
    Daniel McChane
    Application Engineer
    National Instruments

  • Reports Builder: line width of a graphic and generated PDF

    Hello,
    I change the line width of a graphic but in the generated pdf the line width remains equal.
    Some pics:
    The graphic in Reports Builder:
    !http://i25.tinypic.com/20famuu.jpg!
    The xml code:
    <SeriesItems>
    <Series id="0" markerType="MT_BAR" borderTransparent="true" transparent="true"/>
    <Series id="1" markerType="MT_MARKER" color="#101df" lineWidth="9"/>
    <Series id="2" markerType="MT_MARKER" color="#101df" lineStyle="LS_DASH" lineWidth="9"/>
    <Series id="3" markerType="MT_MARKER" color="#b4045f" lineWidth="1"/>
    <Series id="4" markerType="MT_MARKER" color="#b4045f" lineStyle="LS_DASH" lineWidth="1"/>
    <Series id="5" markerType="MT_MARKER" color="#0" lineWidth="9"/>
    <Series id="6" markerType="MT_MARKER" color="#0" lineStyle="LS_DASH" lineWidth="1"/>
    </SeriesItems>
    The graphic in the PDF report:
    !http://i25.tinypic.com/2emq3b5.jpg!
    Why in the PDF report the size is different?
    Thanks in advance and sorry for my english...

    To procede, omit the "(nil)" argument and you should be fine for that line, or specialize the method in question.
    I tried this, but I got error messages pointing to a function that uses the fontInstance pointer. The function is in the form of:
    EstimateStringWidth(WideString run, IFontInstance* fontInstance)
    and the error tells me that the line:
         totalWidth += EstimateStringWidth(charBuff, fontInstance);
    has no matching function.
    Also, most of the samples in the SDK creates a IFontInstance using an InterfacePtr.
    I tried this approach because solutions.pdf suggests this method to estimate text widths... I want to measure the text width of a composed line to determine the raggedness (degree of whitespace left on the end of each line) of a paragraph. But with this issues, am I better off using the GetWidth method of IWaxLine to get the width.
    Now, my next question would be, can I get the estimate width of the line if I change the properties of the paragraph, ie. justification settings, without actually composing the text in the ui. I need this so that I can compute for the optimal settings to changed so that the degree of raggedness of the paragraph would be less than the original.
    Thanks again!

Maybe you are looking for