Guest User

Untitled

a guest
Jan 12th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Text;
  7. using System.Windows.Forms;
  8. using System.IO;
  9.  
  10. namespace AppLication
  11. {
  12. public partial class Form1 : Form
  13. {
  14. public Form1()
  15. {
  16. InitializeComponent();
  17. }
  18.  
  19. private void button1_Click(object sender, EventArgs e)
  20. {
  21. // Startup Path
  22. string varPath = Application.StartupPath + "\\";
  23.  
  24. // File to convert
  25. String varFile = varPath + "Input\\word_2003.doc";
  26.  
  27. // Output Directory
  28. string varOut = varPath + "output\\";
  29.  
  30. // Error Directory
  31. string varError = varPath + "Errors\\";
  32.  
  33. // Original Directory
  34. string varOriginal = varPath + "Input\\";
  35.  
  36. // IP address of server with DocConverter
  37. string varIP = "127.0.0.1";
  38.  
  39. // Port of server with DocConverter
  40. string varPort = "54545";
  41. int intPort = Convert.ToInt32(varPort);
  42.  
  43. // Timeout
  44. string varTimeout = "300";
  45. short shortTimeout = Convert.ToInt16(varTimeout);
  46.  
  47. APDocConv.APDocConverter DC = new APDocConv.APDocConverter();
  48. DC.StatusTimeout = shortTimeout;
  49. DC.FTPDirectory = "/";
  50. DC.FTPHost = "192.168.1.117";
  51. DC.FTPUserName = "Administrator";
  52. DC.FTPPassword = "stampede_123";
  53. DC.AddFTP();
  54. //DC.DebugMode = true;
  55. long intReturnSubmit = DC.Submit(varIP, intPort, varFile, varOut, varError, varOriginal, "", "", false, "");
  56. DC = null;
  57. }
  58. }
  59. }
Add Comment
Please, Sign In to add comment