none
[Office2010] the Line DashStyle issue RRS feed

  • Question

  • hi,

    I use the word 2010 API to insert a line to the document,

    and set the DashStyle to MsoLineDashStyle.msoLIneDash.

    but I find that the distance between two dots in the line is too far.

    such like this:

    what I want    : - - - - - ->

    the word 2010: -  -  -  -  >

     

    and the same way to inset the line by Office 2007 API is OK.

     

    can anyone tell me how to solve this problem?

     

    thanks.

    Thursday, March 10, 2011 7:55 AM

All replies

  • Hi sinbbxxx,

    Thanks for posting in the MSDN Forum.

    As far as I test in Word 2007 and Word 2010 I get the same line. I’m not able to find out the different between them. I think there maybe exist some environment factor that let you feel there has different between them.

    Have a good day,

    Tom


    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, March 11, 2011 8:27 AM
    Moderator
  • Hi sinbbxxx,

    Thanks for posting in the MSDN Forum.

    As far as I test in Word 2007 and Word 2010 I get the same line. I’m not able to find out the different between them. I think there maybe exist some environment factor that let you feel there has different between them.

    Have a good day,

    Tom


    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.


    hi,

    I sure there are different between 2010 and 2007 or 2003.

    at the word 2007 api, the line dash style I need is:

           MsoLineDashStyle.msoLineDash and MsoLineDashStyle.msoLineSquareDot,

    but at the word 2010 api, these 2 styles are changed to the other enum:

          MsoLineDashStyle.msoLineSysDash and MsoLineDashStyle.msoLineSysDot

    Thursday, March 17, 2011 12:52 AM