Click here to Skip to main content
15,921,622 members
Home / Discussions / C#
   

C#

 
GeneralRe: Tricky Inheritance Question Pin
Andrew Rissing10-Jun-10 7:34
Andrew Rissing10-Jun-10 7:34 
QuestionAuto serial software Pin
ostad_mrn10-Jun-10 2:39
ostad_mrn10-Jun-10 2:39 
AnswerRe: Auto serial software Pin
#realJSOP10-Jun-10 2:49
professional#realJSOP10-Jun-10 2:49 
QuestionRe: Auto serial software Pin
ostad_mrn10-Jun-10 3:13
ostad_mrn10-Jun-10 3:13 
AnswerRe: Auto serial software Pin
#realJSOP10-Jun-10 4:26
professional#realJSOP10-Jun-10 4:26 
QuestionHow to find duplicate values in two or more Excel files? Pin
bebef_198710-Jun-10 2:27
bebef_198710-Jun-10 2:27 
AnswerRe: How to find duplicate values in two or more Excel files? Pin
Adam R Harris10-Jun-10 4:58
Adam R Harris10-Jun-10 4:58 
QuestionCan I pass binary data of a file to WebBrowser control? Pin
Ahmad Safwat10-Jun-10 1:32
Ahmad Safwat10-Jun-10 1:32 
AnswerRe: Can I pass binary data of a file to WebBrowser control? Pin
Luc Pattyn10-Jun-10 1:51
sitebuilderLuc Pattyn10-Jun-10 1:51 
GeneralRe: Can I pass binary data of a file to WebBrowser control? Pin
Ahmad Safwat10-Jun-10 1:56
Ahmad Safwat10-Jun-10 1:56 
AnswerRe: Can I pass binary data of a file to WebBrowser control? Pin
Giorgi Dalakishvili10-Jun-10 2:14
mentorGiorgi Dalakishvili10-Jun-10 2:14 
GeneralRe: Can I pass binary data of a file to WebBrowser control? Pin
Ahmad Safwat10-Jun-10 2:45
Ahmad Safwat10-Jun-10 2:45 
GeneralRe: Can I pass binary data of a file to WebBrowser control? Pin
Luc Pattyn10-Jun-10 3:44
sitebuilderLuc Pattyn10-Jun-10 3:44 
GeneralRe: Can I pass binary data of a file to WebBrowser control? Pin
Ahmad Safwat10-Jun-10 4:14
Ahmad Safwat10-Jun-10 4:14 
GeneralRe: Can I pass binary data of a file to WebBrowser control? Pin
Luc Pattyn10-Jun-10 4:28
sitebuilderLuc Pattyn10-Jun-10 4:28 
GeneralRe: Can I pass binary data of a file to WebBrowser control? [modified] Pin
Hristo-Bojilov10-Jun-10 6:23
Hristo-Bojilov10-Jun-10 6:23 
GeneralRe: Can I pass binary data of a file to WebBrowser control? Pin
Luc Pattyn10-Jun-10 7:02
sitebuilderLuc Pattyn10-Jun-10 7:02 
GeneralRe: Can I pass binary data of a file to WebBrowser control? Pin
Hristo-Bojilov10-Jun-10 7:30
Hristo-Bojilov10-Jun-10 7:30 
GeneralRe: Can I pass binary data of a file to WebBrowser control? Pin
Luc Pattyn10-Jun-10 7:40
sitebuilderLuc Pattyn10-Jun-10 7:40 
GeneralRe: Can I pass binary data of a file to WebBrowser control? Pin
Luc Pattyn10-Jun-10 8:18
sitebuilderLuc Pattyn10-Jun-10 8:18 
GeneralRe: Can I pass binary data of a file to WebBrowser control? Pin
Hristo-Bojilov10-Jun-10 10:51
Hristo-Bojilov10-Jun-10 10:51 
GeneralRe: Can I pass binary data of a file to WebBrowser control? Pin
Luc Pattyn10-Jun-10 10:55
sitebuilderLuc Pattyn10-Jun-10 10:55 
GeneralRe: Can I pass binary data of a file to WebBrowser control? Pin
Hristo-Bojilov10-Jun-10 11:11
Hristo-Bojilov10-Jun-10 11:11 
Luc Pattyn wrote:
PDF will only work well if you thaught Internet Explorer to handle PDF files


Yes you are right only for images handing.It't NOT working with PDFs as it was already mentioned.Simply try that and see with your own eyes what is displayed-the pdf file or something else:

byte[] binarydata = File.ReadAllBytes(@"C:\somefile.pdf");
MemoryStream str = new MemoryStream(binarydata);
webBrowser1.DocumentStream = str;


The problem is that you can't set DocumentType property and IE can't handle Content-Type header automatically.You need to set it somewhere, but you are not able using DocumentStream property only.
Life is a stage and we are all actors!

GeneralRe: Can I pass binary data of a file to WebBrowser control? Pin
Luc Pattyn10-Jun-10 14:30
sitebuilderLuc Pattyn10-Jun-10 14:30 
AnswerRe: Can I pass binary data of a file to WebBrowser control? Pin
Luc Pattyn10-Jun-10 8:19
sitebuilderLuc Pattyn10-Jun-10 8:19 

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.