Click here to Skip to main content
15,887,596 members
Home / Discussions / C#
   

C#

 
AnswerRe: Converting String to Int Pin
Peter Vertes9-Feb-06 18:52
Peter Vertes9-Feb-06 18:52 
Questionanimated gif Pin
Manu_819-Feb-06 8:12
Manu_819-Feb-06 8:12 
AnswerRe: animated gif Pin
Dave Kreskowiak9-Feb-06 8:30
mveDave Kreskowiak9-Feb-06 8:30 
QuestionRe: animated gif Pin
shabonaa10-Feb-06 0:21
shabonaa10-Feb-06 0:21 
QuestionUploading/Downloading Word documents into Sql Server using WinForms Pin
Jonesjo9-Feb-06 7:14
Jonesjo9-Feb-06 7:14 
AnswerRe: Uploading/Downloading Word documents into Sql Server using WinForms Pin
Judah Gabriel Himango9-Feb-06 7:51
sponsorJudah Gabriel Himango9-Feb-06 7:51 
GeneralRe: Uploading/Downloading Word documents into Sql Server using WinForms Pin
Jonesjo9-Feb-06 8:41
Jonesjo9-Feb-06 8:41 
GeneralRe: Uploading/Downloading Word documents into Sql Server using WinForms Pin
Judah Gabriel Himango9-Feb-06 9:22
sponsorJudah Gabriel Himango9-Feb-06 9:22 
It isn't possible to open a Word document from an in-memory stream, I'm reasonably certain. The problem is that all windows programs deal with files in the form of file paths; if you don't have a file path, you don't have a file.

The only remotely possible way I see is to write some Windows shell extension that makes your stream of bytes look like something available on the file system, giving it some path that isn't necessarily on disk, but still exists nonetheless. But that may be overkill for you.

I'd recommend just writing the file to the user's temporary directory. If you're executing a program, you can write to certain directories even if you're a limited user or running from a limited security context. For example, limited users can write data to this folder:

Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)

Or, if you're running in a limited security context, you should be able to use the System.IO.IsolatedStorage APIs to store data (however, launching a file on disk requires disk-access priviledges, which may not be granted to you if you're, say, running your app over the internet via ClickOnce).
GeneralRe: Uploading/Downloading Word documents into Sql Server using WinForms Pin
User 66589-Feb-06 10:09
User 66589-Feb-06 10:09 
GeneralRe: Uploading/Downloading Word documents into Sql Server using WinForms Pin
soloflexx10-Feb-06 8:43
soloflexx10-Feb-06 8:43 
GeneralRe: Uploading/Downloading Word documents into Sql Server using WinForms Pin
Jonesjo10-Feb-06 8:46
Jonesjo10-Feb-06 8:46 
Questionhow to compare the date in database (MySQL) with date now? Pin
azmafaridah9-Feb-06 6:27
azmafaridah9-Feb-06 6:27 
AnswerRe: how to compare the date in database (MySQL) with date now? Pin
Guffa9-Feb-06 6:40
Guffa9-Feb-06 6:40 
QuestionASP.NET Error: Old format or invalid type library Pin
Vladutz9-Feb-06 6:22
Vladutz9-Feb-06 6:22 
QuestionProgrammatically pressing a webBroswer button Pin
Martin239-Feb-06 5:43
Martin239-Feb-06 5:43 
AnswerRe: Programmatically pressing a webBroswer button Pin
Judah Gabriel Himango9-Feb-06 6:08
sponsorJudah Gabriel Himango9-Feb-06 6:08 
GeneralRe: Programmatically pressing a webBroswer button Pin
Martin239-Feb-06 7:02
Martin239-Feb-06 7:02 
AnswerRe: Programmatically pressing a webBroswer button Pin
emran8349-Feb-06 12:22
emran8349-Feb-06 12:22 
AnswerRe: Programmatically pressing a webBroswer button Pin
cweeks7868126-Apr-06 11:06
cweeks7868126-Apr-06 11:06 
QuestionResearch with multi-dimensional data (C#) Pin
jimbobtheking9-Feb-06 5:03
jimbobtheking9-Feb-06 5:03 
AnswerRe: Research with multi-dimensional data (C#) Pin
Guffa9-Feb-06 5:53
Guffa9-Feb-06 5:53 
QuestionHow to get Live(!!!)Picture from Webcam Pin
twickl9-Feb-06 4:48
twickl9-Feb-06 4:48 
QuestionTrapping Scroll Event in a Panel Pin
MarkMokris9-Feb-06 4:18
MarkMokris9-Feb-06 4:18 
AnswerRe: Trapping Scroll Event in a Panel Pin
Judah Gabriel Himango9-Feb-06 5:15
sponsorJudah Gabriel Himango9-Feb-06 5:15 
GeneralRe: Trapping Scroll Event in a Panel Pin
MarkMokris9-Feb-06 5:52
MarkMokris9-Feb-06 5:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.