I'm having trouble adjusting line spacing in Word 2007. Word 2007 by default has double spacing or extra space between lines. Previously, I have always successfully used something similar (In C #):
Word.Application appVersion = new Word.Application();
string sVersion = appVersion.Version.ToString();
if (sVersion != "11.0")
{
object noSpacingStyle = "No Spacing";
oWord.ActiveWindow.Selection.set_Style(ref noSpacingStyle);
}
But this breaks down when trying to apply it in some regional / cultural conditions, such as Italian and German. I believe this is because “No Interval” should be in the target language, and not on the hard drive, as in English. So, I'm trying to find a way to apply this same change in a more portable way.
I tried sifting through various enumerations, such as "WdBuiltinStyle", but I can't seem to find one that does the same as "No Interval".
Does anyone know how to do this?
source
share