Available converting directions

Namespace:  SautinSoft
Assembly:  UseOffice (in UseOffice.dll) Version: 4.3.12.15

Syntax

      
 C#  Visual Basic 
public enum eDirection
Public Enumeration eDirection

Members

MemberDescription
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
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
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
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

CopyHow to convert a PPTX file to a JPG file in C#
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[at]sautinsoft.com        


            SautinSoft.UseOffice u = new SautinSoft.UseOffice();

            //Path to any local file
            string inputFilePath = Path.GetFullPath(Path.Combine(Directory.GetCurrentDirectory(),@"..\..\..\..\..\..\Testing files\Point.pptx"));
            //Path to output resulted file
            string outputFilePath = Path.GetFullPath(Path.Combine(Directory.GetCurrentDirectory(),@"..\..\..\..\..\..\Testing files\Result.jpg"));

            //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)
                return;

            //Converting
            ret = u.ConvertFile(inputFilePath, outputFilePath, 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 or 2010
            if(ret==0 )
            {
                //Show produced file                
            }        
        }
    }
}
CopyHow to convert a PPTX file to a JPG file in VB.Net
Imports System
Imports System.IO
Imports System.Text
Imports System.Collections


Module Module1
    Sub Main()
        'Convert PPT file to PDF file
        'If you need more information about UseOffice .Net email us at:
        'support[at]sautinsoft.com        



        Dim u As New SautinSoft.UseOffice

        'Path to any local file
        Dim inputFilePath As String = Path.GetFullPath(Path.Combine(Directory.GetCurrentDirectory(), "..\..\..\..\..\Testing files\Point.ppt"))
        'Path to output resulted file
        Dim outputFilePath As String = Path.GetFullPath(Path.Combine(Directory.GetCurrentDirectory(), "..\..\..\..\..\Testing files\Result.pdf"))

        '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
            Return
        End If

        'Converting
        ret = u.ConvertFile(inputFilePath, outputFilePath, SautinSoft.UseOffice.eDirection.PPT_to_PDF)

        '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 or 2010
        If ret = 0 Then
            'Show produced file
            System.Diagnostics.Process.Start(outputFilePath)
        End If
    End Sub
End Module

See Also