Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm Controls / January 2007

Tip: Looking for answers? Try searching our database.

.NET 2.0  WEBBROWSER MHT

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
IKEAS - 25 Jan 2007 02:03 GMT
Hello

i have a MHT file in a stream
like this

 using (StreamReader sr = new StreamReader(@"D:\@Visual Studio
projects\test webbrowser MHT\test webbrowser MHT\test.mht"))
 {
     String line;
        while ((line = sr.ReadLine()) != null)
        {
            Console.WriteLine(line);
        }
}

and i want to show page in web browser
without using
            this.webBrowser1.Navigate(@"file://D:/@Visual Studio
Projects\test webbrowser MHT\test webbrowser MHT/test.mht");
JezB - 25 Jan 2007 08:14 GMT
Why don't you want to navigate to the file ?

> Hello
>
[quoted text clipped - 15 lines]
>             this.webBrowser1.Navigate(@"file://D:/@Visual Studio
> Projects\test webbrowser MHT\test webbrowser MHT/test.mht");
IKEAS - 25 Jan 2007 20:06 GMT
beacause i don't want to create temporary file
and delete it after

i have a mht file in resource, because this file
if a model file that i modify internal tag for showing

I already have test the system
1 - get file
2 - save file in temporary directory
3 - use navigate to this temprary file
4 - after downloadcomplet -> delete file

JezB a écrit :
> Why don't you want to navigate to the file ?
>
[quoted text clipped - 17 lines]
>>             this.webBrowser1.Navigate(@"file://D:/@Visual Studio
>> Projects\test webbrowser MHT\test webbrowser MHT/test.mht");
Serge Baltic - 26 Jan 2007 09:44 GMT
Hello,

> i have a mht file in resource,

Give it a try loading over the “res://” protocol right from the exe/dll resources?

(H) Serge

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.