Available converting directions
Namespace:
SautinSoftAssembly: UseOffice (in UseOffice.dll) Version: 5.0.1.29
Syntax
C# | Visual Basic |
public enum eDirection
Public Enumeration eDirection
Members
Member | Description |
---|---|
PDF_to_DOCX |
Convert *.pdf to *.docx. Works only in MS Office 2013 or higher.
|
PDF_to_DOC |
Convert *.pdf to *.doc. Works only in MS Office 2013 or higher.
|
PDF_to_RTF |
Convert *.pdf to *.rtf. Works only in MS Office 2013 or higher.
|
PDF_to_TEXT |
Convert *.pdf to *.txt. Works only in MS Office 2013 or higher.
|
DOC_to_DOCX |
Convert *.doc to *.docx, Word to Word 2007/2010
|
DOC_to_HTML |
Convert *.doc to *.html, MS Word (DOC) to HTML
|
DOC_to_WEBARCHIVE |
Convert *.doc to *.mht, Word to Web-archive
|
DOC_to_XML |
Convert *.doc to *.xml, MS Word (DOC) to XML
|
DOC_to_RTF |
Convert *.doc to *.rtf, MS Word (DOC) to RTF
|
DOC_to_PDF |
Convert *.doc to *.pdf, Word to Adobe PDF
|
DOC_to_TEXT |
Convert *.doc to *.txt, Word to ANSI Text
|
DOC_to_UNICODETEXT |
Convert *.doc to *.txt, Word to Unicode Text
|
DOCX_to_HTML |
Convert *.docx to *.HTML, DOCX to HTML
|
DOCX_to_WEBARCHIVE |
Convert *.docx to *.mht, DOCX to Web-archive
|
DOCX_to_XML |
Convert *.docx to *.xml, DOCX to XML
|
DOCX_to_RTF |
Convert *.docx to *.rtf, DOCX to RTF
|
DOCX_to_PDF |
Convert *.docx to *.pdf, DOCX to Adobe PDF
|
DOCX_to_TEXT |
Convert *.docx to *.txt, DOCX to ANSI Text
|
DOCX_to_UNICODETEXT |
Convert *.docx to *.txt, DOCX to Unicode Text
|
HTML_to_DOC |
Convert *.htm* to *.doc, HTML to MS Word (DOC)
|
HTML_to_DOCX |
Convert *.htm* to *.docx, HTML to MS Word (DOCX)
|
HTML_to_RTF |
Convert *.htm* to *.rtf, HTML to MS Word (RTF)
|
HTML_to_PDF |
Convert *.htm* to *.pdf, HTML to Adobe PDF
|
HTML_to_TEXT |
Convert *.htm* to *.txt, HTML to ANSI Text
|
HTML_to_UNICODETEXT |
Convert *.htm* to *.txt, HTML to Unicode Text
|
RTF_to_TEXT |
Convert *.rtf to *.txt, RTF to ANSI Text
|
RTF_to_UNICODETEXT |
Convert *.rtf to *.txt, RTF to Unicode Text
|
RTF_to_HTML |
Convert *.rtf to *.html, RTF to HTML with CSS
|
RTF_to_WEBARCHIVE |
Convert RTF to *.mht (Web-archive)
|
RTF_to_XML |
Convert *.rtf to *.xml, RTF to XML
|
RTF_to_DOC |
Convert *.rtf to *.doc, RTF to MS Word (DOC)
|
RTF_to_DOCX |
Convert *.rtf to *.docx, RTF to MS Word (DOCX)
|
RTF_to_PDF |
Convert *.rtf to *.pdf, RTF to Adobe PDF
|
TEXT_to_PDF |
Convert *.txt to *.pdf, Text to Adobe PDF
|
TEXT_to_RTF |
Convert *.txt to *.rtf, Text to RTF
|
TEXT_to_DOC |
Convert *.txt to *.doc, Text to DOC (MS Word 97-2003)
|
TEXT_to_DOCX |
Convert *.txt to *.docx, Text to DOCX
|
XLSX_to_XLS |
Convert *.xlsx to *.xls
|
XLS_to_XLSX |
Convert *.xls to *.xlsx
|
XLS_to_RTF |
Convert *.xls to *.rtf, Excel to RTF
|
XLS_to_PDF |
Convert *.xls to *.pdf, Excel to PDF
|
XLSX_to_RTF |
Convert *.xlsx to *.rtf, Excel to RTF
|
XLSX_to_PDF |
Convert *.xlsx to *.pdf, Excel to PDF
|
XLS_to_HTML |
Convert *.xls to *.html, Excel to HTML
|
XLSX_to_HTML |
Convert *.xlsx to *.html, Excel to HTML
|
XLS_to_WEBARCHIVE |
Convert *.xls to *.mht, Excel to Web-archive
|
XLSX_to_WEBARCHIVE |
Convert *.xlsx to *.mht, Excel to Web-archive
|
XLS_to_XML |
Convert *.xls to *.xml, Excel to XML
|
XLSX_to_XML |
Convert *.xlsx to *.xml, Excel to XML
|
XLS_to_TEXT |
Convert *.xls to *.txt, Excel to ANSI Text
|
XLSX_to_TEXT |
Convert *.xlsx to *.txt, Excel to ANSI Text
|
XLS_to_CSV |
Convert *.xls to *.csv
|
XLSX_to_CSV |
Convert *.xlsx to *.csv
|
PPT_to_HTML |
Convert *.ppt to *.html, PowerPoint to HTML
|
PPT_to_WEBARCHIVE |
Convert *.ppt to *.mht, PowerPoint to Web-archive
|
PPT_to_XML |
Convert *.ppt to *.xml, PowerPoint to XML
|
PPT_to_RTF |
Convert *.ppt to *.rtf, PowerPoint to RTF
|
PPT_to_PDF |
Convert *.ppt to *.pdf, PowerPoint to Adobe PDF
|
PPT_to_JPG |
Convert *.ppt to *.jpg, PowerPoint to JPEG
|
PPT_to_BMP |
Convert *.ppt to *.bmp, PowerPoint to BMP
|
PPT_to_GIF |
Convert *.ppt to *.gif, PowerPoint to GIF
|
PPT_to_PPTX |
Convert *.ppt to *.pptx, PowerPoint (97-2003) to PowerPoint Presentation.
|
PPTX_to_HTML |
Convert *.pptx to *.html, PowerPoint to HTML
|
PPTX_to_WEBARCHIVE |
Convert *.pptx to *.mht, PowerPoint to Web-archive
|
PPTX_to_XML |
Convert *.pptx to *.xml, PowerPoint to XML
|
PPTX_to_RTF |
Convert *.pptx to *.rtf, PowerPoint to RTF
|
PPTX_to_PDF |
Convert *.pptx to *.pdf, PowerPoint to Adobe PDF
|
PPTX_to_JPG |
Convert *.pptx to *.jpg, PowerPoint to JPEG
|
PPTX_to_BMP |
Convert *.pptx to *.bmp, PowerPoint to BMP
|
PPTX_to_GIF |
Convert *.pptx to *.gif, PowerPoint to GIF
|
PPTX_to_PPT |
Convert *.pptx to *.ppt, PowerPoint Presentation to the old format PowerPoint (97-2003).
|
ACCESS_to_PDF |
Convert *.accdb to *.pdf, MS Access to PDF
|
ACCESS_to_RTF |
Convert *.accdb to *.pdf, MS Access to RTF
|
ACCESS_to_HTML |
Convert *.accdb to *.pdf, MS Access to HTML
|
ACCESS_to_TEXT |
Convert *.accdb to *.pdf, MS Access to Text
|
Remarks

Examples

using System; using System.IO; using System.Collections; namespace Sample { class Test { static void Main(string[] args) { // Convert PPTX file to JPG file // If you need more information about UseOffice .Net email us at: // support@sautinsoft.com. SautinSoft.UseOffice u = new SautinSoft.UseOffice(); string inpFile = Path.GetFullPath(@"..\..\..\..\..\Testing files\example.pptx"); string outFolder = Path.GetFullPath(@"Result"); // Prepare UseOffice .Net, loads MS PowerPoint in memory int ret = u.InitPowerPoint(); // Return values: // 0 - Loading successfully // 1 - Can't load MS PowerPoint library in memory if (ret == 1) { Console.WriteLine("Error! Can't load MS PowerPoint library in memory"); return; } // Perform the conversion. ret = u.ConvertFile(inpFile, outFolder, SautinSoft.UseOffice.eDirection.PPTX_to_JPG); // Release MS PowerPoint from memory u.ClosePowerPoint(); // 0 - Converting successfully // 1 - Can't open input file. Check that you are using full local path to input file, URL and relative path are not supported // 2 - Can't create output file. Please check that you have permissions to write by this path or probably this path already used by another application // 3 - Converting failed, please contact with our Support Team // 4 - MS Office isn't installed. The component requires that any of these versions of MS Office should be installed: 2000, XP, 2003, 2007, 2010, 2013, 2016 or 2019. if (ret == 0) { Console.WriteLine("Converting successfully!"); // Open the result. System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo(outFolder) { UseShellExecute = true }); } else Console.WriteLine("Error! Please contact with SautinSoft support: support@sautinsoft.com."); } } }

Imports System Imports System.IO Imports System.Collections Namespace Sample Friend Class Test Shared Sub Main(ByVal args() As String) ' Convert PPTX file to JPG file ' If you need more information about UseOffice .Net email us at: ' support@sautinsoft.com. Dim u As New SautinSoft.UseOffice() Dim inpFile As String = Path.GetFullPath("..\..\..\..\Testing files\example.pptx") Dim outFolder As String = Path.GetFullPath("Result") ' Prepare UseOffice .Net, loads MS PowerPoint in memory Dim ret As Integer = u.InitPowerPoint() ' Return values: ' 0 - Loading successfully ' 1 - Can't load MS PowerPoint library in memory If ret = 1 Then Console.WriteLine("Error! Can't load MS PowerPoint library in memory") Return End If ' Perform the conversion. ret = u.ConvertFile(inpFile, outFolder, SautinSoft.UseOffice.eDirection.PPTX_to_JPG) ' Release MS PowerPoint from memory u.ClosePowerPoint() ' 0 - Converting successfully ' 1 - Can't open input file. Check that you are using full local path to input file, URL and relative path are not supported ' 2 - Can't create output file. Please check that you have permissions to write by this path or probably this path already used by another application ' 3 - Converting failed, please contact with our Support Team ' 4 - MS Office isn't installed. The component requires that any of these versions of MS Office should be installed: 2000, XP, 2003, 2007, 2010, 2013, 2016 or 2019. If ret = 0 Then Console.WriteLine("Converting successfully!") ' Open the result. System.Diagnostics.Process.Start(New System.Diagnostics.ProcessStartInfo(outFolder) With {.UseShellExecute = True}) Else Console.WriteLine("Error! Please contact with SautinSoft support: support@sautinsoft.com.") End If End Sub End Class End Namespace