|
@@ -38,7 +38,12 @@ namespace PDF_Office.Helper
|
|
|
ConvertError error = ConvertError.ERR_UNKNOWN;
|
|
|
string filename = GetFileNameAddSuffix(outputFolder, outputFileName, ".docx");
|
|
|
result = await Task.Run(() => wordConverter.Convert(outputFolder, ref outputFileName, wordOptions, pageArray, ref error, getProgress));
|
|
|
+ if (result)
|
|
|
+ {
|
|
|
+ CommonHelper.ShowFileBrowser(outputFileName.Replace("/","\\"));
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
|
|
@@ -63,8 +68,7 @@ namespace PDF_Office.Helper
|
|
|
result = await Task.Run(() => pptConverter.Convert(outputFolder, ref outputFileName, pptOptions,pageArray, ref error, getProgress));
|
|
|
if (result)
|
|
|
{
|
|
|
- if (File.Exists(outputFileName))
|
|
|
- Process.Start(outputFileName);
|
|
|
+ CommonHelper.ShowFileBrowser(outputFileName.Replace("/", "\\"));
|
|
|
}
|
|
|
}
|
|
|
catch (Exception ex)
|
|
@@ -89,7 +93,7 @@ namespace PDF_Office.Helper
|
|
|
if (result)
|
|
|
{
|
|
|
if (File.Exists(outputFileName))
|
|
|
- Process.Start(outputFileName);
|
|
|
+ CommonHelper.ShowFileBrowser(outputFileName.Replace("/", "\\"));
|
|
|
else if (outputFileName == "NoTable")
|
|
|
MessageBoxEx.Show("No Table");
|
|
|
}
|
|
@@ -137,7 +141,10 @@ namespace PDF_Office.Helper
|
|
|
ConvertError error = ConvertError.ERR_UNKNOWN;
|
|
|
string filename = GetFileNameAddSuffix(outputFolder, outputFileName, ".csv");
|
|
|
result = await Task.Run(() => csvConverter.Convert(outputFolder, ref outputFileName, csvOptions, pageArray, ref error, getProgress));
|
|
|
-
|
|
|
+ if (result)
|
|
|
+ {
|
|
|
+ CommonHelper.ShowFileBrowser(outputFileName.Replace("/", "\\"));
|
|
|
+ }
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
@@ -159,7 +166,10 @@ namespace PDF_Office.Helper
|
|
|
ConvertError error = ConvertError.ERR_UNKNOWN;
|
|
|
string filename = GetFileNameAddSuffix(outputFolder, outputFileName, ".txt");
|
|
|
result = await Task.Run(() => txtConverter.Convert(outputFolder, ref outputFileName, txtOptions, pageArray, ref error, getProgress));
|
|
|
-
|
|
|
+ if (result)
|
|
|
+ {
|
|
|
+ CommonHelper.ShowFileBrowser(outputFileName.Replace("/", "\\"));
|
|
|
+ }
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
@@ -285,11 +295,10 @@ namespace PDF_Office.Helper
|
|
|
DirectoryInfo di = new DirectoryInfo(folderPath);
|
|
|
di.Delete(true);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
if (result)
|
|
|
{
|
|
|
- if (File.Exists(outputFileName))
|
|
|
- Process.Start(outputFileName);
|
|
|
+ Process.Start(outputFolder.Replace("/", "\\"));
|
|
|
}
|
|
|
}
|
|
|
catch (Exception ex)
|
|
@@ -310,6 +319,10 @@ namespace PDF_Office.Helper
|
|
|
string outputFileName = Path.GetFileNameWithoutExtension(inputpath);
|
|
|
ConvertError error = ConvertError.ERR_UNKNOWN;
|
|
|
result = await Task.Run(() => rtfConverter.Convert(outputFolder, ref outputFileName, rtfOptions,pageArray, ref error, getProgress));
|
|
|
+ if (result)
|
|
|
+ {
|
|
|
+ CommonHelper.ShowFileBrowser(outputFileName.Replace("/", "\\"));
|
|
|
+ }
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
@@ -332,7 +345,7 @@ namespace PDF_Office.Helper
|
|
|
result = await Task.Run(() => htmlConverter.Convert(outputFolder, ref outputFileName, HtmlOption, pageArray, ref error, getProgress));
|
|
|
if (result)
|
|
|
{
|
|
|
-
|
|
|
+ CommonHelper.ShowFileBrowser(outputFileName.Replace("/", "\\"));
|
|
|
}
|
|
|
}
|
|
|
catch (Exception ex)
|
|
@@ -390,5 +403,6 @@ namespace PDF_Office.Helper
|
|
|
return outname;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
}
|
|
|
}
|