Click here to Skip to main content
15,920,508 members
Home / Discussions / C#
   

C#

 
GeneralRe: Array declaration without specifying the size. Pin
Judah Gabriel Himango9-Feb-06 12:06
sponsorJudah Gabriel Himango9-Feb-06 12:06 
AnswerRe: Array declaration without specifying the size. Pin
Guffa9-Feb-06 22:16
Guffa9-Feb-06 22:16 
QuestionTriggerring Event Handler and pass variable in PARENT FORM from Child FORM Pin
emran8349-Feb-06 10:30
emran8349-Feb-06 10:30 
Question.NET Framework 2.0 Pin
Manu_819-Feb-06 10:21
Manu_819-Feb-06 10:21 
AnswerRe: .NET Framework 2.0 Pin
emran8349-Feb-06 10:33
emran8349-Feb-06 10:33 
AnswerRe: .NET Framework 2.0 Pin
Judah Gabriel Himango9-Feb-06 10:42
sponsorJudah Gabriel Himango9-Feb-06 10:42 
QuestionDesign time problems with custom TreeView and private node class Pin
Pedro S Ferreira9-Feb-06 10:18
Pedro S Ferreira9-Feb-06 10:18 
AnswerRe: Design time problems with custom TreeView and private node class Pin
leppie9-Feb-06 10:51
leppie9-Feb-06 10:51 
GeneralRe: Design time problems with custom TreeView and private node class Pin
Pedro S Ferreira9-Feb-06 11:01
Pedro S Ferreira9-Feb-06 11:01 
AnswerRe: Design time problems with custom TreeView and private node class Pin
Pedro S Ferreira10-Feb-06 5:49
Pedro S Ferreira10-Feb-06 5:49 
Questionmenubar on a customised windows' form Pin
dlinks9-Feb-06 8:39
dlinks9-Feb-06 8:39 
QuestionConverting String to Int Pin
zaboboa9-Feb-06 8:34
zaboboa9-Feb-06 8:34 
AnswerRe: Converting String to Int Pin
Andy Moore9-Feb-06 9:16
Andy Moore9-Feb-06 9:16 
GeneralRe: Converting String to Int Pin
zaboboa9-Feb-06 9:33
zaboboa9-Feb-06 9:33 
AnswerRe: Converting String to Int Pin
Judah Gabriel Himango9-Feb-06 9:23
sponsorJudah Gabriel Himango9-Feb-06 9:23 
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 

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.