Re: Webclient.downloaddata
From: Hermit Dave (hermitd.REMOVE_at_CAPS.AND.DOTS.hotmail.com)
Date: 09/17/04
- Next message: Bill Borg: "RE: selecting which columns to display in grid"
- Previous message: Benjamin: "Re: Session Timeout.."
- In reply to: Rags: "Webclient.downloaddata"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 17 Sep 2004 23:43:35 +0100
if you are using IE or something this might be helpful.
what html the controls render is determined by the browser and since by
default webclient doesnt not explicity specify any... it goes for browser
neutral styles and html.
try this sort of mechanism (from msdn webclient overview)
' Add a user agent header in case the
' requested URI contains a query.
client.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows
NT 5.2; .NET CLR 1.0.3705;)")
same syntax for C# and VB.NET
-- Regards, Hermit Dave (http://hdave.blogspot.com) "Rags" <Rags@discussions.microsoft.com> wrote in message news:0501991D-A93F-4358-86C5-C6FA59F90E0B@microsoft.com... > Hi > > We are creating a web application using .NET which renders some reports. The > reports are created in MS Reporting Services and can be accessed by typing in > a URL with the required parameters in a browser. The reports are getting > rendered fine if I type the URL in the browser. Within the web application, > however, we are using the webclient.downloaddata method to extract the HTML > by specifying the URL and rendering within the .NET application. Here I am > finding that the report is not maintaing its formatting. More specifically, > the webclient.downloaddata method doesnot seem to extract the style element > in the HTML source code which seems to be causing the problem. > > Any suggestions. We are fast approaching our deadlines. > > Thanks > -- > Rags
- Next message: Bill Borg: "RE: selecting which columns to display in grid"
- Previous message: Benjamin: "Re: Session Timeout.."
- In reply to: Rags: "Webclient.downloaddata"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
Loading