cognidox / OfficeToPDF

A command line tool to convert Microsoft Office documents to PDFs
https://www.cognidox.com/
Other
616 stars 141 forks source link

/hidden param seem not work (or as expectedly) #50

Open GeeMing opened 5 years ago

GeeMing commented 5 years ago

Hi Vittal,

When passing /hidden param through command line, it will appear a pop-up office windows then disappear(like #20 ), converting going well with expected file output, but sometime(hard to recurrence) will occur a office word dialog to ask you save the modified file or not, with this dialog opening, the follow-up converting task is fail and showing another dialog which message like Dialog Box Is Open ,Click Ok....

I have tested not to passing the /hidden, and it seem no flash office window occur anymore.. ???

So I have 2 questions,

  1. is the showing dialog normal? Because of any keyboard input causing the file being modified?
  2. is /hidden had the reversal behaviors?

Thanks for your work, by the way!

smartwei commented 5 years ago

you can at file :ExcelConverter.cs Line:91 app.Visible = true edit this Code: app.Visible = false