PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Forms Extract File path from Assembly

Reply

Extract File path from Assembly

 
Thread Tools Rate Thread
Old 02-06-2005, 03:46 PM   #1
samit bhatt via .NET 247
Guest
 
Posts: n/a
Default Extract File path from Assembly


Hi All

I've embedded HTML file in my Assembly, I want to extractphysical path of that HTML file and want my Activex - WebBrowsercontrol to navigate to that URL and load that file in thecontrol. I'm using C# as programming language.
I want to know whether this is possible.
Actual problem is that my progam is generating Dynamic HTML and iwant to show that in WebBrowser control. I'm using MsHTML toload but i need a file to navigate for the WebBrowser control. Ican't use about:blank, because i'm having links in my Html whichtagged within the same document. Hence about:blank doesn't allow<a href="#NAME"

Please suggest any other solution.
Thanks in advance
Sam

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>2HmbUBBnmUOch3JQUHLg1w==</Id>
  Reply With Quote
Old 04-06-2005, 12:53 AM   #2
Stoitcho Goutsev \(100\) [C# MVP]
Guest
 
Posts: n/a
Default Re: Extract File path from Assembly

You cannot show an embeded HTML in the web browser. You need to save the
file in the disk and point the browser to this location.


--
Stoitcho Goutsev (100) [C# MVP]

"samit bhatt via .NET 247" <anonymous@dotnet247.com> wrote in message
news:O4tTNH4ZFHA.3780@tk2msftngp13.phx.gbl...
Hi All

I've embedded HTML file in my Assembly, I want to extract physical path of
that HTML file and want my Activex - WebBrowser control to navigate to that
URL and load that file in the control. I'm using C# as programming language.
I want to know whether this is possible.
Actual problem is that my progam is generating Dynamic HTML and i want to
show that in WebBrowser control. I'm using MsHTML to load but i need a file
to navigate for the WebBrowser control. I can't use about:blank, because i'm
having links in my Html which tagged within the same document. Hence
about:blank doesn't allow <a href="#NAME"

Please suggest any other solution.
Thanks in advance
Sam

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>2HmbUBBnmUOch3JQUHLg1w==</Id>


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off