Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Text;
- using System.Windows.Forms;
- using System.IO;
- namespace AppLication
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void button1_Click(object sender, EventArgs e)
- {
- // Startup Path
- string varPath = Application.StartupPath + "\\";
- // File to convert
- String varFile = varPath + "Input\\word_2003.doc";
- // Output Directory
- string varOut = varPath + "output\\";
- // Error Directory
- string varError = varPath + "Errors\\";
- // Original Directory
- string varOriginal = varPath + "Input\\";
- // IP address of server with DocConverter
- string varIP = "127.0.0.1";
- // Port of server with DocConverter
- string varPort = "54545";
- int intPort = Convert.ToInt32(varPort);
- // Timeout
- string varTimeout = "300";
- short shortTimeout = Convert.ToInt16(varTimeout);
- APDocConv.APDocConverter DC = new APDocConv.APDocConverter();
- DC.StatusTimeout = shortTimeout;
- DC.FTPDirectory = "/";
- DC.FTPHost = "192.168.1.117";
- DC.FTPUserName = "Administrator";
- DC.FTPPassword = "stampede_123";
- DC.AddFTP();
- //DC.DebugMode = true;
- long intReturnSubmit = DC.Submit(varIP, intPort, varFile, varOut, varError, varOriginal, "", "", false, "");
- DC = null;
- }
- }
- }
Add Comment
Please, Sign In to add comment