The and allow a Microsoft Office Word 2007 to export and save documents in the and formats. This article illustrates how to use the Microsoft Word 12.0 Object Library to access the Word 2007 Document.ExportAsFixedFormat method to programmatically convert an existing Word 2007 document to either the PDF format or the XPS format. To illustrate how to programmatically save a Word 2007 document to either the PDF format or the XPS format, this section walks through five key steps. Activate your complimentary 12 month Preferred membership today to give you 15 visits to over 1500 Regus Business Lounges worldwide plus: • Discounts on meeting room, day office, co-work office and videoconference bookings • Complimentary refreshments and business-class WiFi • Special rates on office and virtual office • On hand administrative support • Two complimentary business lounge guest passes To activate your Preferred membership simply enter your promotional code or Preferred card number and complete the personal details form. Regal card activation. To programmatically save a Word 2007 document to either the PDF format or the XPS format. • Add a reference to the Word 12.0 Object Library. • Import the Word 2007 interop assembly namespace. • Create an instance of the ApplicationClass object. • Declare the appropriate variables • Implement the conversion code. Add a Reference to the Word 12.0 Object Library First, add a reference to the Microsoft Word 12.0 Object Library to the Visual Studio project. To do this, right-click the project in the Visual Studio Solution Explorer and select the Add Reference menu item. Select the COM tab in the Add Reference dialog box, then scroll down to the Microsoft Word 12.0 Object Library component, select it, and then click OK to add the reference. Adding a Reference 2. Import the Word Interop Namespace Next, import the Microsoft.Office.Interop.Word namespace. ![]() PDF Converter is a online web-based document to PDF converter software. Convert and create PDF from various types of files like Word DOC, Excel XLS, PowerPoint PPT. Cara ini menggunakan add-in dari microsoft untuk mengubah word ke pdf, namun add-in ini tidak include atau tidak ada didalam installer Microsoft Word 2007 namun anda. Nov 10, 2009 Word 2007 - Speichern Sie Ihr. Word 2007 - Dokument als PDF speichern. Word-Datei in PDF umwandeln - Duration: 1:21. WebsiteNmedia 269,069 views. | Up to 40% Off?| ☀☀☀ word 2007 in pdf umwandeln online pharmacy ☀☀☀. Your health is important. Word 2007 in pdf umwandeln online pharmacy,Are You. This allows objects that are defined in that namespace to be referred to without having to specify the fully qualified namespace path. To import the namespace, add the following line to the top of the source file. Using Microsoft.Office.Interop. The following variables are used with the Documents.Open method and ApplicationClass.Quit method. Use the paramSourceDocPath variable to specify the path and filename of the Word 2007 document that is to be exported to either the PDF format or the XPS format. Use the paramMissing variable when calling methods that accept optional parameters. Optional parameters are only optional when you use Microsoft Visual Basic. You must specify a value for optional parameters when you use Microsoft Visual C#. Using Type.Missing as the value for an optional parameter indicates that the parameter is not specified and that the method should use the parameter's default value. Object paramSourceDocPath = @'C: Temp Test.docx'; object paramMissing = Type.Missing; The following variables are used with the Document.ExportAsFixedFormat method. The paramExportFormat variable is important because it is used to specify the format in which to export the document. The paramExportFormat variable is of the WdExportFormat type. It is an enumerated type which has two values, wdExportFormatXPS and wdExportFormatPDF. The following sample code sets the paramExportFormat variable to the WdExportFormat.wdExportFormatXPS value to export a document to the XPS format. To change the code to export a document in the PDF format, set the variable to the WdExportFormat.wdExportFormatPDF value. For more information on the ExportAsFixedFormat method and the parameters that it accepts, see. • Add a reference to the Word 12.0 Object Library to the project. This marks that the project uses the Word 12.0 Object Library. • Import the Microsoft.Office.Interop.Word namespace. This allows code to use the classes and types exposed as part of the Microsoft.Office.Interop.Word namespace without having to specify the fully qualified namespace path. • Create an instance of the Word 2007 ApplicationClass object. This is the top-most class in the Word 2007 object model hierarchy, and is the starting point for working with the other classes in the object model.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |