Click here to Skip to main content
15,885,546 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Can I pass binary data of a file to WebBrowser control? Pin
AspDotNetDev10-Jun-10 13:52
protectorAspDotNetDev10-Jun-10 13:52 
GeneralRe: Can I pass binary data of a file to WebBrowser control? Pin
Luc Pattyn10-Jun-10 14:46
sitebuilderLuc Pattyn10-Jun-10 14:46 
QuestionProblems setting vertical scrollbar value in a datagrid (old one, not the better DataGridView). Pin
NitzanJ9-Jun-10 23:56
NitzanJ9-Jun-10 23:56 
QuestionHOW TO Install SQLSERVER32 at installation Pin
MayukhSen9-Jun-10 23:54
MayukhSen9-Jun-10 23:54 
QuestionC# Polymorphic object comparison Pin
Benny_Lava9-Jun-10 23:37
Benny_Lava9-Jun-10 23:37 
AnswerRe: C# Polymorphic object comparison Pin
Łukasz Nowakowski9-Jun-10 23:41
Łukasz Nowakowski9-Jun-10 23:41 
GeneralRe: C# Polymorphic object comparison Pin
Benny_Lava10-Jun-10 0:55
Benny_Lava10-Jun-10 0:55 
AnswerRe: C# Polymorphic object comparison Pin
OriginalGriff9-Jun-10 23:47
mveOriginalGriff9-Jun-10 23:47 
GeneralRe: C# Polymorphic object comparison Pin
Łukasz Nowakowski10-Jun-10 0:31
Łukasz Nowakowski10-Jun-10 0:31 
GeneralRe: C# Polymorphic object comparison Pin
Benny_Lava10-Jun-10 0:57
Benny_Lava10-Jun-10 0:57 
AnswerRe: C# Polymorphic object comparison Pin
LookSharp11-Jun-10 13:13
LookSharp11-Jun-10 13:13 
Questioncrystal reports and c# (report directly with parameters). Pin
Absoluto9-Jun-10 22:10
Absoluto9-Jun-10 22:10 
AnswerRe: crystal reports and c# (report directly with parameters). Pin
Adam R Harris10-Jun-10 5:52
Adam R Harris10-Jun-10 5:52 
QuestionIntelliSense bug in VS2005 Pin
Mc_Topaz9-Jun-10 21:54
Mc_Topaz9-Jun-10 21:54 
AnswerRe: IntelliSense bug in VS2005 Pin
#realJSOP10-Jun-10 4:29
mve#realJSOP10-Jun-10 4:29 

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.