Quantcast
Channel: Word for Developers forum
Viewing all 4350 articles
Browse latest View live

Convert doc to PDF. C#

$
0
0

I'm trying to convert doc or docx file to PDF using visual studio 2013. C# language.

I don't get any errors but program doesn't work.

I get this output message: "The program '[9240] PDFConversion.vshost.exe' has exited with code 0 (0x0)."

Thank you for any help.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.IO;
using System.Text;
using Microsoft.Office.Interop.Word;

namespace PDFConversion
{
    public static class Program
    {
        public static void Main(string[] args)
        {
            if (args.Count() > 1)
            {
                translate.ConvertAllWordFilesToPdf(args[0], args[1]);
            }

        }

        public class translate
        {

            public static void ConvertAllWordFilesToPdf(string WordFilesLocation, string PdfFilesLocation)
            {
                Document doc = null;


                object oMissing = System.Reflection.Missing.Value;
                Microsoft.Office.Interop.Word.Application word = null;

                try
                {

                    word = new Microsoft.Office.Interop.Word.Application();


                    DirectoryInfo dirInfo = new DirectoryInfo(WordFilesLocation);

                    FileInfo[] wordFiles = dirInfo.GetFiles("*.doc");

                    if (wordFiles.Length > 0)
                    {
                        word.Visible = false;
                        word.ScreenUpdating = false;
                        string sourceFile = "";
                        string destinationFile = "";
                        try
                        {
                            foreach (FileInfo wordFile in wordFiles)
                            {

                                Object filename = (Object)wordFile.FullName;

                                sourceFile = wordFile.Name;
                                destinationFile = "";


                                doc = word.Documents.Open(ref filename, ref oMissing,
                                    ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing,
                                    ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing,
                                    ref oMissing, ref oMissing, ref oMissing, ref oMissing);
                                doc.Activate();
                                object outputFileName = null;

                                if (wordFile.FullName.ToUpper().Contains(".DOCX"))
                                {
                                    outputFileName = wordFile.FullName.Replace(".docx",".pdf");
                                    destinationFile = sourceFile.Replace(".docx",".pdf");

                                }
                                else
                                {
                                    outputFileName = wordFile.FullName.Replace(".doc",".pdf");
                                    destinationFile = sourceFile.Replace(".doc",".pdf");
                                }

                                sourceFile = WordFilesLocation + "\\" + destinationFile;
                                destinationFile = PdfFilesLocation + "\\" + destinationFile;

                                object fileFormat = WdSaveFormat.wdFormatPDF;


                                doc.SaveAs(ref outputFileName,
                                    ref fileFormat, ref oMissing, ref oMissing,
                                    ref oMissing, ref oMissing, ref oMissing, ref oMissing,
                                    ref oMissing, ref oMissing, ref oMissing, ref oMissing,
                                    ref oMissing, ref oMissing, ref oMissing, ref oMissing);


                                object saveChanges = WdSaveOptions.wdDoNotSaveChanges;
                                ((_Document)doc).Close(ref saveChanges, ref oMissing, ref oMissing);
                                doc = null;


                                if (System.IO.File.Exists(destinationFile))
                                {
                                    System.IO.File.Replace(sourceFile, destinationFile, null);
                                }
                                else
                                {
                                    System.IO.File.Move(sourceFile, destinationFile);
                                }

                                Console.WriteLine("Success:" + "SourceFile-" + outputFileName.ToString() + " DestinationFile-" + destinationFile);

                            }


                            ((_Application)word).Quit(ref oMissing, ref oMissing, ref oMissing);
                            word = null;
                        }
                        catch (Exception ex)
                        {

                            Console.WriteLine("Fail:" + "SourceFile-" + sourceFile + "  DestinationFile-" + destinationFile + "#Error-" + ex.Message);
                        }
                    }
                }
                catch (Exception ex)
                {
                    Console.WriteLine("Error occured while processing");
                    Console.WriteLine(ex.Message);
                }
                finally
                {
                    if (doc != null)
                    {
                        ((_Document)doc).Close(ref oMissing, ref oMissing, ref oMissing);
                        doc = null;

                    }
                    if (word != null)
                    {
                        ((_Application)word).Quit(ref oMissing, ref oMissing, ref oMissing);
                        word = null;
                    }
                }
            }
        }
    }
}

c#, word addin, richtext style and .. charts

$
0
0

Hello,

I have 3 questions about word addin in vs 2013.

1).

I programmary add some richtext to document:

editableControl = vstoDocument.Controls.AddRichTextContentControl(currentRange, "new_control");

editableControl.PlaceholderText = "text text text ..."

How i can make style to editableControl.PlaceholderText? Like bold, colors, fonts???

2).

I have sample word document. How i can programmary add line text in empty space in all lines?

Like this screen: 

https://dl.dropboxusercontent.com/u/11254269/akt_notarialny_ADDS_Sp._Z_o.o._str.2%5B1%5D.pdf

3)

How i can programmary close word application (document) in office 2007.

In office 2010 and 2013 i can use: 

Word._Document document = this.Application.ActiveDocument;

document.Close(Word.WdSaveOptions.wdDoNotSaveChanges);

But in office 2007 only close active document, but not application (winword.exe process)

Regards,

Daro





How to conditionally prevent or revert style changes

$
0
0

We are making use of both plain text content controls and rich text ones. When the plain text ones are created, a pre-defined style (chosen by other factors) is applied around the content control. I need to either prevent the user from changing that style or revert it back any time they do change it.

I can disable the style-related functions on the ribbon when the current selection is on those controls, but that isn't sufficient to handle paste operations that keep or merge formatting, nor changing the style via an already open StylesPane. I thought I had found several commands to repurpose that might help, but none of them are triggered by the actions I tried.

Is there a solution for me?

Using Multiple Sendkeys toggles Numlock

$
0
0

Because there is a bug with VBA code picking from the ReferenceKind in the crossreference popup, I am forced to use send keys to make the change.  It works fine accept that it toggles on and off numlock.  After researching it, I found using multiple sendkeys together will toggle numlock.  The resolution was puting DoCommand between each sendkey.  This crashes Word.  Any suggestions on what I can put in between the sendkeys?

    With Dialogs(wdDialogInsertCrossReference)
      SendKeys "%t"
      SendKeys "+(heading)"
      SendKeys "{enter}"
      SendKeys "%r"
      SendKeys "{down 3}"
      SendKeys "{tab}"
      SendKeys "+{+}"
      SendKeys "{enter}"
      .Show
   End With

Thanks,

Debra Ann


DebraAnn

Moving field values into a text box....

$
0
0

Hi

I am working on documents in Word 2013. Situation is that the first page of each document has document properties that display as fields, for example a document Title and a document Subject.

Due to a new template design I need to move these fields to a new position on the front page. The easiest seems to put these fields in a text box and then position the text box as necessary. I have no real problem positioning a text box, but haven't a clue how to move the fields into the text box.

What I also want is to apply a name to the text box, for example call it SubjectTitle, instead of having some cryptic "Text Box 64" text. Using a system defined name for the text box could cause future problems, there are 500 documents from different users. Any ideas/suggestions on a VB Script that can help me do this would be much appreciated.

Thanks

Robin


Resize all the images in a document and wrap text around them automatically

$
0
0

Hi,

I'm new with visual basic and macros, but I found nothing about what I'm looking for to automate these simple steps.

I'd need a script to automatically set a predefined size for all the images in the document, and to wrap text around them.

I found nothing, because other suggestions here only let me auto resize one image at a time, and I found no code for auto wrapping text.

Is it possible to do this 2 steps with a macro?

Thanks to everybody

Claudio Cau




exception error every time user sends print request to printer?

$
0
0

Hi - we are seeing the following error message when some users are selecting jobs to be printed - we have not changed any software but this error has started recently - any help would be appreciated - a scan of the error code produced nothing in microsoft or the web - ken

Message: Value out of range
User: (Type ) [admin]
Location: [\stg\]
Exception: System.Runtime.InteropServices.COMException (0x800A1200): Value out of range
   at Word.PageSetup.set_LeftMargin(Single prop)
   at Office2000._Word.cPageSetup.set_LeftMargin(Single Value)
   at ClientShared.cWordInstance.Print(String strFile, Int32 iCopies, String strPrinter, String& strError) in C:\MT-VB.NET4441\ClientShared\Word\WordInstance.vb:line 137
   at MTController.BaseView._Print(Boolean bFileCopy) in C:\MT-VB.NET4441\MTApp\MTApp\Views\BaseView.vb:line 933
   at MTController.BaseView.Menu_PrintFileCopy_Click(Object sender, EventArgs e) in C:\MT-VB.NET4441\MTApp\MTApp\Views\BaseView.vb:line 869
   at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.MenuItemData.Execute()
   at System.Windows.Forms.Command.Invoke()
   at System.Windows.Forms.Control.WmCommand(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ListView.WndProc(Message& m)
   at ClientShared.SortIconListView.WndProc(Message& m) in C:\MT-VB.NET4441\ClientShared\controls\SortIconListView.vb:line 176
   at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Creating a hyperlink programmatically from a word addin causes out of memory error

$
0
0

Hi,

I have a problem when creating a hyperlink programmatically from a word addin.
If the user clicked on a content control where the place holder text gets selected i get
an error saying "out of memory". If i look closer into the exception the HResult=-2146824185
I'm not entirely sure what the error code means, maybe you have some idea of what is the cause of the problem?

Here is a code snippet

IDocumentBC bc = DocumentBC;
var documentLink = bc.CreateDocumentLink(pIndex);
Range currentRange = Application.Selection.Range;

if (currentRange != null)
{
    Editors e = currentRange.Editors;
    int numberOfEditableRegions = e.Count;

    //We need to check the users insert point(could be within a protected area of the document)
    //so that we are able to insert the link before we actually create it.
    if (numberOfEditableRegions > 0)
    {
        try
        {
            //By default, the hyperlink TextToDisplay will be set to the index text
            //currentRange.Hyperlinks.Add(currentRange, serviceUri + "document/" + mTxtIndexLink);
            Hyperlink h = currentRange.Hyperlinks.Add(
                currentRange,
                documentLink,
                Type.Missing,
                "Öppna dokument",
                pIndex);
        }
        catch (Exception ex)
        {
            //If the user selected a content control where the place holder text gets selected, an exception is thrown where HResult=-2146824185

            MessageBox.Show(
                "Det gick inte att skapa länk till dokumentet. Detta kan bero på att du markerat en innehållskontroll som ännu inte har någon information.\n\n" + ex.HResult);
        }

    }
    else
    {
        MessageBox.Show("Du har placerat markören på en plats i dokumentet som inte är redigerbar, flytta markören och försök igen.", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
    }

}


Creating a link works as expected in all other cases.

Br,
/Peter


Peter


Event Handler Interrupts Undo/Redo Records

$
0
0

I have an MS Word VBA project which defines an Event handler class for the purpose of overriding the DocumentBeforeClose event.  The class does not implement any other Event procedures, however it appears that merely instantiating the class causes Word to attempt invoking other Event procedures that are not defined.

Specifically, my users have a workflow in which they select a block of text and type to overwrite it, then attempt to Redo that typing.  With my Event handler class instantiated, the first keypress seems to attempt to trigger a WindowSelectionChange event in my class (which no-ops) and that action interrupts the "typing" record on the undo/redo stack.  If the user continues to type a full word (e.g. "text", where the first "t" overwrote the previous selection) and then presses Redo, only the characters after the failed event will be added (e.g. "ext" in this example).

Is there any way I could get around this?  I've investigated the UndoRecord object and CustomRecord concept, but can't think of any way to apply it here (and I need to support use of MS Word 2007 with my project anyway).

Using styles in OOXML without Word

$
0
0
My challenge should be covered by the answer to this: How do I create a docx file with one paragraph that is formatted with a built-in style (say, Heading 1) through OpenXML without having access to the Word application?  Related is how to create it as a JA language document.

Word add-in run error

$
0
0

hi,

A Problem has been encountered  when I run my add-in in word 2003.

Start up word application and then load the add-in, it is OK, But has tow same add-in.

Close and start up word again every time, the number of repeated add-in will be increase one.

(only one add-in is valid, if delete the Normal.dat file, invalid add-ins will be removed).

My project is coding on vs2008 C#. To add a command toolbar and cammand menubar, some commandbar button.

Reference http://support2.microsoft.com/kb/302901/en-gb

The diffrence is that the commandbar toolbar is custom, not built-in.

Who can tell me why?

Sincerely,
Ye Qiu


Accessing a document's Title and Subject values...

$
0
0

I would really appreciate some help here. I am desperately trying to find a way to cut the Subject and Title fields that are displaying in my documents. They qwere originally inserted using the Properties dialog.

From what I can see they are not standard fields, ALT+F9 does not show any field code for Subject and Title. Word Help refers to these as Preset Properties, but even so, I cannot find any details on actually acessing them programatically.

I have tried to return field values by using ranges of indexes, but I am getting Count of 0 fields on the field collections.

Please, where are these in the object model and how do I access them? All I want to do is cut them from the documents, preferably by name and not index (if they even have one).

Thanks
Robin

DOCM file not saving on Microsoft Word 2010

$
0
0

Hi,

I am working on a DOCM file on Microsoft Word and the document won't save at all. When I click on the "save as" option or "save" nothing pops up, and there are no changes to the document. When I try to exit out of the document, I get a prompt that asks if I want to save the document, and when I click "yes" nothing happens and I can't exit the document without clicking "no." I've tried to save the file on two different computers--Windows Vista Home Premium and Windows 8.1--Microsoft Office 2010 and 2007. Nothing works. I've even upgraded the 2007 to 2010 to see if it was compatibility issue.

Does anyone know how to save the documents as a DOCM? I have to enable the macros and retain them. Please let me know. Thank you so much!!!

c#, word addin, richtext style and .. charts

$
0
0

Hello,

I have 3 questions about word addin in vs 2013.

1).

I programmary add some richtext to document:

editableControl = vstoDocument.Controls.AddRichTextContentControl(currentRange, "new_control");

editableControl.PlaceholderText = "text text text ..."

How i can make style to editableControl.PlaceholderText? Like bold, colors, fonts???

2).

I have sample word document. How i can programmary add line text in empty space in all lines?

Like this screen: 

https://dl.dropboxusercontent.com/u/11254269/akt_notarialny_ADDS_Sp._Z_o.o._str.2%5B1%5D.pdf

3)

How i can programmary close word application (document) in office 2007.

In office 2010 and 2013 i can use: 

Word._Document document = this.Application.ActiveDocument;

document.Close(Word.WdSaveOptions.wdDoNotSaveChanges);

But in office 2007 only close active document, but not application (winword.exe process)

Regards,

Daro





Copying text from a certain style range to a new document

$
0
0

Hi,

I'm using VS express 2013. How do I extract text from a range of styles in a 2010 Microsoft Word document onto a new word document?

For example, the first section is labelled as "1-Introduction" with heading 1, the second section is labelled as "2-Operations" also with heading 1. I want everything under the introduction up to but not including the design section to be copy pasted into a new document (without changing the formatting) and then everything in section 2 to be pasted into a new document. I currently have the following code to read the styles but I think it reads the styles of the whole document.

 // Extract the styles or stylesWithEffects part from a  
        // word processing document as an XDocument instance. 
        public static XDocument ExtractStylesPart(
          string fileName,
          bool getStylesWithEffectsPart = true)
        {
            // Declare a variable to hold the XDocument. 
            XDocument styles = null;

            // Open the document for read access and get a reference. 
            using (var document =
                WordprocessingDocument.Open(fileName, false))
            {
                // Get a reference to the main document part. 
                var docPart = document.MainDocumentPart;

                // Assign a reference to the appropriate part to the 
                // stylesPart variable. 
                StylesPart stylesPart = null;
                if (getStylesWithEffectsPart)
                    stylesPart = docPart.StylesWithEffectsPart;
                else
                    stylesPart = docPart.StyleDefinitionsPart;

                // If the part exists, read it into the XDocument. 
                if (stylesPart != null)
                {
                    using (var reader = XmlNodeReader.Create(
                      stylesPart.GetStream(FileMode.Open, FileAccess.Read)))
                    {
                        // Create the XDocument. 
                        styles = XDocument.Load(reader);
                    }
                }
            }
            // Return the XDocument instance. 
            return styles;
        }




Add words into array at runtime

$
0
0

Hi,

I´m working on a project where I save all words I have written down to a .txt-file.
When I start Word I read in all the words from the file to an array. So far so good.
But when I want to use this array in other macros it just says <Script out of range>. Like there is nothing in my array.

My thought was that the array gets deleted after the macro has gone through all code?
My idea was to have a global array that works in runtime so I can use it in all my macros, but I have no idea if it is possible and can be done. Maybe someone knows a bit more about it?


/IsakS

Add multiple header rows in Word Table using C#

$
0
0

Hello,

         I'm trying to make 1st and 2nd rows as header rows in a Word Table.

I'm only able to make only 1 row as the header row.

table.Rows[1].HeadingFormat = -1;

table.Rows[2].HeadingFormat = -1; won't work.

Thanks,

Dilip

Convert doc to PDF. C#

$
0
0

I'm trying to convert doc or docx file to PDF using visual studio 2013. C# language.

I don't get any errors but program doesn't work.

I get this output message: "The program '[9240] PDFConversion.vshost.exe' has exited with code 0 (0x0)."

Thank you for any help.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.IO;
using System.Text;
using Microsoft.Office.Interop.Word;

namespace PDFConversion
{
    public static class Program
    {
        public static void Main(string[] args)
        {
            if (args.Count() > 1)
            {
                translate.ConvertAllWordFilesToPdf(args[0], args[1]);
            }

        }

        public class translate
        {

            public static void ConvertAllWordFilesToPdf(string WordFilesLocation, string PdfFilesLocation)
            {
                Document doc = null;


                object oMissing = System.Reflection.Missing.Value;
                Microsoft.Office.Interop.Word.Application word = null;

                try
                {

                    word = new Microsoft.Office.Interop.Word.Application();


                    DirectoryInfo dirInfo = new DirectoryInfo(WordFilesLocation);

                    FileInfo[] wordFiles = dirInfo.GetFiles("*.doc");

                    if (wordFiles.Length > 0)
                    {
                        word.Visible = false;
                        word.ScreenUpdating = false;
                        string sourceFile = "";
                        string destinationFile = "";
                        try
                        {
                            foreach (FileInfo wordFile in wordFiles)
                            {

                                Object filename = (Object)wordFile.FullName;

                                sourceFile = wordFile.Name;
                                destinationFile = "";


                                doc = word.Documents.Open(ref filename, ref oMissing,
                                    ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing,
                                    ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing,
                                    ref oMissing, ref oMissing, ref oMissing, ref oMissing);
                                doc.Activate();
                                object outputFileName = null;

                                if (wordFile.FullName.ToUpper().Contains(".DOCX"))
                                {
                                    outputFileName = wordFile.FullName.Replace(".docx",".pdf");
                                    destinationFile = sourceFile.Replace(".docx",".pdf");

                                }
                                else
                                {
                                    outputFileName = wordFile.FullName.Replace(".doc",".pdf");
                                    destinationFile = sourceFile.Replace(".doc",".pdf");
                                }

                                sourceFile = WordFilesLocation + "\\" + destinationFile;
                                destinationFile = PdfFilesLocation + "\\" + destinationFile;

                                object fileFormat = WdSaveFormat.wdFormatPDF;


                                doc.SaveAs(ref outputFileName,
                                    ref fileFormat, ref oMissing, ref oMissing,
                                    ref oMissing, ref oMissing, ref oMissing, ref oMissing,
                                    ref oMissing, ref oMissing, ref oMissing, ref oMissing,
                                    ref oMissing, ref oMissing, ref oMissing, ref oMissing);


                                object saveChanges = WdSaveOptions.wdDoNotSaveChanges;
                                ((_Document)doc).Close(ref saveChanges, ref oMissing, ref oMissing);
                                doc = null;


                                if (System.IO.File.Exists(destinationFile))
                                {
                                    System.IO.File.Replace(sourceFile, destinationFile, null);
                                }
                                else
                                {
                                    System.IO.File.Move(sourceFile, destinationFile);
                                }

                                Console.WriteLine("Success:" + "SourceFile-" + outputFileName.ToString() + " DestinationFile-" + destinationFile);

                            }


                            ((_Application)word).Quit(ref oMissing, ref oMissing, ref oMissing);
                            word = null;
                        }
                        catch (Exception ex)
                        {

                            Console.WriteLine("Fail:" + "SourceFile-" + sourceFile + "  DestinationFile-" + destinationFile + "#Error-" + ex.Message);
                        }
                    }
                }
                catch (Exception ex)
                {
                    Console.WriteLine("Error occured while processing");
                    Console.WriteLine(ex.Message);
                }
                finally
                {
                    if (doc != null)
                    {
                        ((_Document)doc).Close(ref oMissing, ref oMissing, ref oMissing);
                        doc = null;

                    }
                    if (word != null)
                    {
                        ((_Application)word).Quit(ref oMissing, ref oMissing, ref oMissing);
                        word = null;
                    }
                }
            }
        }
    }
}

Is there a way to restrict the user from not using more than 8 bullets per list in an active document? Or is there a way to affect a users readability score cause of this?

$
0
0

Hi All,

I'am working with a requirement that says 

"Assures no bullet list exceeds 8 items"

-         The ‘bullet list’ in this case refers specifically to unordered /default bullet lists. Whole document excluding tables. , so if there is a way to tag these when that button is used to add the bullet list, and then search the document for these tagged lists and only analyze those ones for the ‘8 step rule’

Please let me know as I'am stuck on these for days. 

Upon press of enter key,set the format of only the next immediate line to default word format

$
0
0

Hi all ,

I have a button which has the functionality like this 

                        

  private void Title_Click(object sender, RibbonControlEventArgs e)
        {
            object oMissing = System.Reflection.Missing.Value;
            Word._Document oDoc;
            oDoc = Globals.ThisAddIn.Application.ActiveDocument;

            Word.Range rangeInitial = Globals.ThisAddIn.Application.Selection.Range;
            Word.Range range = rangeInitial.Duplicate;
            range.Start = range.End;
            Word.Paragraph oPara;
            oPara = oDoc.Content.Paragraphs.Add(range);
            oPara.Range.Font.Bold =1;
            oPara.Range.Font.Size = 16;
            oPara.Range.Font.ColorIndex = Word.WdColorIndex.wdDarkRed;
            oPara.Range.Font.Name = "Calibri";
            oPara.Range.ListFormat.ApplyNumberDefault();
            oPara.Range.Borders[Word.WdBorderType.wdBorderBottom].LineStyle = Word.WdLineStyle.wdLineStyleDouble;
            oPara.Range.Borders[Word.WdBorderType.wdBorderBottom].ColorIndex = Word.WdColorIndex.wdDarkRed;

        }

This gives me an output such as  "1.<sample text>" followed by a double line border..now if I press enter I want only the immediate line after this to be reset to the original word format.I know how to detect enter key press but don't know how to select the correct range i.e

 if (pressedKey == "Return" ) 
                {
                    var thread = new Thread(() => { //MessageBox.Show(pressedKey);
                        object oMissing = System.Reflection.Missing.Value;
                        Word._Document oDoc;
                          oDoc = Globals.ThisAddIn.Application.ActiveDocument;
                            Word.Range rangeInitial = Globals.ThisAddIn.Application.Selection.Range;
                            Word.Range range = rangeInitial.Duplicate;
                            range.Start = range.End;
                            Word.Paragraph oPara;
                            oPara = oDoc.Content.Paragraphs.Add(range);//this line is the mistake it affects default word behavior
                            oPara.Range.Font.Bold = 0;
                            oPara.Range.Font.Size = 11;
                             oPara.Range.Font.ColorIndex = Word.WdColorIndex.wdAuto;
                             oPara.Range.Font.Name = "Calibri";
                        range.ListFormat.RemoveNumbers(); //second line that affects all bullets
                             oPara.Range.Borders[Word.WdBorderType.wdBorderBottom].LineStyle = Word.WdLineStyle.wdLineStyleNone; }

Any help is appreciated.Thanks a lot

Viewing all 4350 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>