Last post Nov 23, 2007 04:52 AM by thrillos
Nov 23, 2007 04:20 AM|thrillos|LINK
Hi to you all
I am new here. I am trying to export some data to msword using the following code snippet:
HttpContext.Current.Response.ContentEncoding = Encoding.UTF8
'Building a string named : sb
When this code runs, it shows the FileDialogMenu in order to Open or Save my file.
Is it possible in anyway, to skip this step, and make my code such way that it automatically saves the word file in a specific pregiven directory without poping the FileDialogMenu?
Thanks in advance!
Nov 23, 2007 04:46 AM|mbanavige|LINK
you cannot force the file to be saved like that. The user will always get presented with the option to choose the location.
Nov 23, 2007 04:52 AM|thrillos|LINK
Unfortunately, as it seems i'll have to live with that.
However, i need to program a batch function that takes all the generated word documents in a directory, and convert it in pdf files.
I use the following code snippet:
Is there any possibility to avoid the save dialog box here or am i just that unlucky?