Click here to Skip to main content
15,893,668 members
Home / Discussions / C#
   

C#

 
GeneralRe: Process sql scripts Pin
Alex Korchemniy1-Nov-04 7:14
Alex Korchemniy1-Nov-04 7:14 
GeneralInstall MSI from code Pin
petst1-Nov-04 1:57
petst1-Nov-04 1:57 
GeneralRe: Install MSI from code Pin
Heath Stewart1-Nov-04 8:20
protectorHeath Stewart1-Nov-04 8:20 
GeneralExtending ADODDB Classes in C# Pin
mohit_kinalekar1-Nov-04 1:43
mohit_kinalekar1-Nov-04 1:43 
Generaldownloading pdf files from web page links Pin
JeromeKJerome1-Nov-04 1:14
JeromeKJerome1-Nov-04 1:14 
GeneralRe: downloading pdf files from web page links Pin
perlmunger1-Nov-04 5:39
perlmunger1-Nov-04 5:39 
GeneralRe: downloading pdf files from web page links Pin
JeromeKJerome1-Nov-04 8:01
JeromeKJerome1-Nov-04 8:01 
GeneralRe: downloading pdf files from web page links Pin
Heath Stewart1-Nov-04 8:17
protectorHeath Stewart1-Nov-04 8:17 
I hope you're not using the StreamReader to download the PDF. It's a binary stream, so you should use the Stream returned by the HttpWebResponse.GetResponseStream as is. A StreamReader is a derivative of TextReader and is, naturally, for text.

The PDF would have to come down on a separate stream. HTML itself does not support multipart-mime like email (though there is a rather nice, proprietary MHTML developed by Microsoft for use with IE for the last couple of major versions, and in the new Office 2003 system). What the relationship between the HTML page you're reading and the PDF is, I don't know. You'd have to explore the packets coming off the wire, as well as the HTML source. Perhaps this is in a frame or something? Even using a chunked download (downloading a range of bytes) this wouldn't work with interleaved HTML.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
Generalmarshall unsigned char *** Pin
naxos1-Nov-04 0:59
naxos1-Nov-04 0:59 
GeneralWhere is Managed DirectX installed on Win98 Pin
Wizard_011-Nov-04 0:21
Wizard_011-Nov-04 0:21 
GeneralRe: Where is Managed DirectX installed on Win98 Pin
Heath Stewart1-Nov-04 8:35
protectorHeath Stewart1-Nov-04 8:35 
GeneralSystem.Aritmetic exeption Pin
Lutfullah31-Oct-04 23:42
Lutfullah31-Oct-04 23:42 
GeneralRe: System.Aritmetic exeption Pin
Salil Khedkar1-Nov-04 19:13
Salil Khedkar1-Nov-04 19:13 
GeneralRunning application in a machine not having .NET installed in it Pin
eDip31-Oct-04 21:40
eDip31-Oct-04 21:40 
GeneralRe: Running application in a machine not having .NET installed in it Pin
Malendra1-Nov-04 0:11
Malendra1-Nov-04 0:11 
GeneralRe: Running application in a machine not having .NET installed in it Pin
Salil Khedkar1-Nov-04 19:18
Salil Khedkar1-Nov-04 19:18 
GeneralRe: Running application in a machine not having .NET installed in it Pin
Salil Khedkar1-Nov-04 19:26
Salil Khedkar1-Nov-04 19:26 
GeneralAdd Flash movie to the mdi form Pin
amalatsliit31-Oct-04 21:24
amalatsliit31-Oct-04 21:24 
GeneralRe: Add Flash movie to the mdi form Pin
Corinna John1-Nov-04 0:13
Corinna John1-Nov-04 0:13 
GeneralGetChanges problem with deleting child row Pin
maqster31-Oct-04 21:11
maqster31-Oct-04 21:11 
GeneralWindows Forms disable user input Pin
Lyhr31-Oct-04 20:48
Lyhr31-Oct-04 20:48 
GeneralRe: Windows Forms disable user input Pin
jeweladdict2-Nov-04 11:51
jeweladdict2-Nov-04 11:51 
GeneralRe: Windows Forms disable user input Pin
Lyhr2-Nov-04 20:24
Lyhr2-Nov-04 20:24 
GeneralSet Multiselected Listbox Data Pin
Hemant_Mane2003@yahoo.com31-Oct-04 20:43
sussHemant_Mane2003@yahoo.com31-Oct-04 20:43 
GeneralRe: Set Multiselected Listbox Data Pin
mohit_kinalekar1-Nov-04 1:56
mohit_kinalekar1-Nov-04 1:56 

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.