uupdate 20240829
This commit is contained in:
@@ -199,19 +199,32 @@ namespace OnDoc.Diverses
|
||||
if (ext.Length > 2)
|
||||
{
|
||||
ext = ext.Substring(0, 2).ToUpper();
|
||||
string tempfilename1 = "";
|
||||
switch (ext)
|
||||
{
|
||||
case ".D":
|
||||
System.Diagnostics.Process.Start("winword.exe", " /t" + tempfilename);
|
||||
DOCGEN.Klassen.SynFWord sf = new DOCGEN.Klassen.SynFWord();
|
||||
tempfilename1 = System.IO.Path.GetFileName(tempfilename);
|
||||
tempfilename1 = AppParams.tempdir + "" + DateTime.Now.ToString("yyyyddmmhhMMss") + tempfilename1;
|
||||
sf.create_nativ_word("Klassifikation", "Wahnsinnig geheim", "", tempfilename, tempfilename1);
|
||||
System.Diagnostics.Process.Start("winword.exe", " /t" + tempfilename1);
|
||||
|
||||
//System.Diagnostics.Process.Start("winword.exe", " /t" + tempfilename);
|
||||
break;
|
||||
case ".X":
|
||||
System.Diagnostics.Process.Start("excel.exe", " /t " + tempfilename);
|
||||
DOCGEN.Klassen.SynFExcel ef = new DOCGEN.Klassen.SynFExcel();
|
||||
tempfilename1 = System.IO.Path.GetFileName(tempfilename);
|
||||
tempfilename1 = AppParams.tempdir + "" + DateTime.Now.ToString("yyyyddmmhhMMss") + tempfilename1;
|
||||
|
||||
ef.create_nativ_excel("Klassifikation", "Wahnsinnig geheim", "", tempfilename, tempfilename1);
|
||||
|
||||
System.Diagnostics.Process.Start("excel.exe", " /t " + tempfilename1);
|
||||
break;
|
||||
case ".P":
|
||||
System.Diagnostics.Process.Start("POWERPNT.EXE", " /N " + tempfilename);
|
||||
break;
|
||||
default:
|
||||
string tempfilename1 = System.IO.Path.GetFileName(tempfilename);
|
||||
tempfilename1 = System.IO.Path.GetFileName(tempfilename);
|
||||
tempfilename1 = AppParams.tempdir+ "" + DateTime.Now.ToString("yyyyddmmhhMMss")+tempfilename1;
|
||||
System.IO.File.Copy(tempfilename,tempfilename1, true);
|
||||
Process.Start(tempfilename1);
|
||||
|
||||
Reference in New Issue
Block a user