aikeith Posted January 28, 2003 Posted January 28, 2003 Can you call the "Save As" Dialog or equivelant in asp.net? Preferably with vb.net code? I know I can use the StreamWriter Class, but I was hoping there was an easier way for the user to do this: 1.) Type in the web form. 2.) When done, the user hits next/complete and the file/SaveAs dialog would appear and let the user save the webform in .doc format to thier c: drive? Any help would be appreciated.:D Quote
Moderators Robby Posted January 28, 2003 Moderators Posted January 28, 2003 What method are you using to stream the Doc? Quote Visit...Bassic Software
aikeith Posted January 28, 2003 Author Posted January 28, 2003 Dim sw As System.IO.StreamWriter Try sw = New System.IO.StreamWriter(FilePath, Append) sw.Write(FileContent) Return True Catch e As Exception Return False Finally If Not sw Is Nothing Then sw.Close() End Try Quote
Moderators Robby Posted January 28, 2003 Moderators Posted January 28, 2003 hmmm, I re-read your original post, do you want the user to save the Web-Form as a Word Doc... with all the textboxes and formatting? Or save a doc from the server disk? Quote Visit...Bassic Software
aikeith Posted January 29, 2003 Author Posted January 29, 2003 I would like for the user to save the web-form as a word doc (on thier local drive) with all the information entered into the textbox and keep the formatting. No saving to the server. Thanks Robby Quote
Moderators Robby Posted January 29, 2003 Moderators Posted January 29, 2003 I'm sure it's possible and maybe even easy, but I can't think of any way to do it. Sorry. Quote Visit...Bassic Software
aikeith Posted February 5, 2003 Author Posted February 5, 2003 DOES ANYONE ELSE KNOW OF AS TOOL/FUNCTION? DOES ANYONE ELSE KNOW OF AS TOOL/FUNCTION for a File Save As on an aspx page. ???:( ??? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.