IWebBrowser2:How to set HTML page content from a Stream contains <img> with src set to relative path rather than full image path

Hello,

I try to use IWebBrowser2 to load html content from a stream, which contains 
image with "src" set to relative file path rather than full file path, it 
seems IWebBrowser2 can not resolve the image path even I put the executable 
and the image file under the same directory. The dynamic html content is 
simple as "<html><head><title>test</title></head><body><img 
src='test.jpg'></body></html>". Could you tell me how to do that?

I use IHTMLDocument2::write to load html content dynamically.

Thanks a lot.

Charlie 


0
1/12/2006 10:17:56 PM
vc.mfc 33608 articles. 0 followers. Follow

4 Replies
1420 Views

Similar Articles

[PageSpeed] 20

Hi Charlie,
Welcome to MSDN Newsgroup!

We are now researching this issue. We will reply here with more information 
as soon as possible. If you have any more concerns on it, please feel free 
to post here. Thanks for your understanding!

Best Regards,

Terry Fei [MSFT] 
Microsoft Community Support
Get Secure! www.microsoft.com/security

0
v-terryf (64)
1/13/2006 8:11:57 AM
Hi Charlie,
Nice to hear from you. :)

In this scenario, please help me confirm whether or not you have set the 
base tag with the relative path.
You could refet to the following article. I hope it's helpful for you.
Title: DHTML Properties 
URL:http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml
/reference/properties.asp

If you have any more concerns and questions on it, please feel free to let 
me know. Thanks for your understanding!

Best Regards,

Terry Fei [MSFT] 
Microsoft Community Support
Get Secure! www.microsoft.com/security

0
v-terryf (64)
1/16/2006 2:52:12 AM
Terry,

Thank you very much for your answer. It solved my issue very well.

Best regards,

Charlie
""TerryFei"" <v-terryf@online.microsoft.com> wrote in message 
news:QvJohfkGGHA.3696@TK2MSFTNGXA02.phx.gbl...
> Hi Charlie,
> Nice to hear from you. :)
>
> In this scenario, please help me confirm whether or not you have set the
> base tag with the relative path.
> You could refet to the following article. I hope it's helpful for you.
> Title: DHTML Properties
> URL:http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml
> /reference/properties.asp
>
> If you have any more concerns and questions on it, please feel free to let
> me know. Thanks for your understanding!
>
> Best Regards,
>
> Terry Fei [MSFT]
> Microsoft Community Support
> Get Secure! www.microsoft.com/security
> 


0
1/16/2006 2:49:27 PM
Hi Charlie,

I am glad to know it's helpful for you. Thanks for participating the 
community! 

Best Regards,

Terry Fei[MSFT] 
Microsoft Community Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no 
rights.)



--------------------
>From: "Charlie Hoo" <Charlie@newsgroups.nospam>
>References: <exd9Ib8FGHA.3000@TK2MSFTNGP14.phx.gbl> 
<zXgQGkBGGHA.3152@TK2MSFTNGXA02.phx.gbl> 
<QvJohfkGGHA.3696@TK2MSFTNGXA02.phx.gbl>
>Subject: Re: IWebBrowser2:How to set  HTML page content from a Stream 
contains <img> with src set to relative path rather than full image path
>Date: Mon, 16 Jan 2006 09:49:27 -0500
>Lines: 30
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
>X-RFC2646: Format=Flowed; Original
>Message-ID: <uRmbKzqGGHA.1100@TK2MSFTNGP10.phx.gbl>
>Newsgroups: microsoft.public.vc.mfc
>NNTP-Posting-Host: ip67-95-191-101.z191-95-67.customer.algx.net 
67.95.191.101
>Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
>Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.vc.mfc:463924
>X-Tomcat-NG: microsoft.public.vc.mfc
>
>Terry,
>
>Thank you very much for your answer. It solved my issue very well.
>
>Best regards,
>
>Charlie
>""TerryFei"" <v-terryf@online.microsoft.com> wrote in message 
>news:QvJohfkGGHA.3696@TK2MSFTNGXA02.phx.gbl...
>> Hi Charlie,
>> Nice to hear from you. :)
>>
>> In this scenario, please help me confirm whether or not you have set the
>> base tag with the relative path.
>> You could refet to the following article. I hope it's helpful for you.
>> Title: DHTML Properties
>> 
URL:http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml
>> /reference/properties.asp
>>
>> If you have any more concerns and questions on it, please feel free to 
let
>> me know. Thanks for your understanding!
>>
>> Best Regards,
>>
>> Terry Fei [MSFT]
>> Microsoft Community Support
>> Get Secure! www.microsoft.com/security
>> 
>
>
>

0
v-terryf (64)
1/17/2006 6:43:41 AM
Reply:

Similar Artilces:

Sequential ticket numbers and printing 4 to a page
Hi, i have mail merged my numbers from excel into my publisher ticket. Thanks that worked well, now i want to print 4 tickets to an A4 page and in print preview, i get 4 tickets all with the same number on one page. how do i get around this? Many thanks Print preview showing all the same is a bug. Print a test page. -- Mary Sauer MSFT MVP http://office.microsoft.com/ http://msauer.mvps.org/ news://msnews.microsoft.com http://officebeta.iponet.net/en-us/publisher/FX100649111033.aspx "Neyol" <Neyol@discussions.microsoft.com> wrote in message news:90034D4C-9951-4550-9DAC...

Creating a print-macro that'll only print page 1?
Hi, I have a spreadsheet that contains multiple sheets. I want to add a button that runs a macro, which only prints page 1 on the first sheet (called Scorekort). The "Scorekort" sheet contains 13 pages in total, but I only want to print the first page. Any ideas for this macro? Anders hi, Sub Macro1() Sheets("Scorekort").PrintOut From:=1, To:=1, Copies:=1, Preview:=True, Collate:=True End Sub if you don't want a print preview, Preview:=False -- isabelle Le 2011-05-21 04:16, Anders M a �crit : > Hi, > > I have a spreadsheet that contains multiple ...

Force a page break in code
I need to force a page break in the Detail_OnFormat Event when a value changes. How do I do that? Thanks, Bill Bill wrote: > I need to force a page break in the Detail_OnFormat > Event when a value changes. How do I do that? > > Thanks, > Bill Insert a PageBreak control from the ToolBox bar at the desired location. Even though such a control is never "visible" other than in design view they do still have a Visible property. That property effectively turns on and off the PageBreak so you can minipulate that in your code. -- Rick Brandt, Microsoft Access MVP...

how can i set up my pop and smtp account using proxy server in ou.
"Abhishek" <Abhishek@discussions.microsoft.com> wrote in message news:90EE645B-97D9-4145-A368-E26743C547F9@microsoft.com... You'll need instructions from your ISP. -- Aloha, -Ben- Ben M. Schorr, OneNote-MVP Stockholm Consulting Group/KSG http://www.scgab.com Microsoft OneNote FAQ: http://home.hawaii.rr.com/schorr/computers/onenotefaq.htm **I apologize but I am unable to respond to direct requests for assistance. Please post questions and replies here in the newsgroup. Mahalo! ...

Menu Page
I'd like to make a menu page with buttons to jump between spreadsheets of a workbook. I will turn off the tabs at the bottom in order to do this, but I'm looking for code for my menu buttons to flip to each spreadsheet. Also to return to the menu from a specific spreadsheet, I'd like to use a right click to jump back to the menu. Can someone help me with this. I'm used to programming in MS Access, so programming in MS Excel is a new venture for me. Thanks, PC How about an alternative... Create that index worksheet and put hyperlinks to A1 of each sheet. And then put a hyp...

Moving from Home & Student to Full version of Office
Version: 2008 Operating System: Mac OS X 10.5 (Leopard) Processor: Intel I need Exchange support and therefore I am planning to buy the Full version of MS Office 2008 for Mac. I already purchased and installed (and have been using) MS Office 2008 Home & Student edition. My questions are: 1. Should I uninstall the Home & Student edition before installing the Full version? (I assume so). 2. How do I make sure that the data I have already created in Office 2008 Home & Student edition will be available to me after installing the Full version? In particular, how do I make sure that ...

Detect page change in PropertySheet?
Hi, I have a property sheet that is the parent of several property pages. If the user clicks a tab to change to another page, is there a way I can detect this (and possibly prevent the change) in the PropertySheet dialog? Does windows/MFC send any kind of message to the PropertySheet dialog? I looked at all of the over-rides and WM_ message, but cannot see anything. Thanks! Not directly. You can catch that in the CPropertyPage and relay the message to the CPropertySheet. (I know you are asking, why doesn't the CPropertySheet get the notificatio first? who knows!) AliR. "...

Setting Outlook settings to new server
We are in the process of moving mailboxes to a new server. Is there a utility or ad policy to automatically configure outlook to point to the new exchange server? Instead of manually configuring the users outlook profile. On Tue, 21 Nov 2006 11:15:01 -0800, Rich <Rich@discussions.microsoft.com> wrote: >We are in the process of moving mailboxes to a new server. Is there a utility >or ad policy to automatically configure outlook to point to the new exchange >server? Instead of manually configuring the users outlook profile. If you are moving the mailboxes in the same org vi...

View as web page in OWA
in OWA 2002, i remember there is a feature "View as web page" on the right side of the email. in OWA 2003, after open the received email, such feature no longer there. Anyway to enable this feature? ...

2003 Outlook email only downloads headers, not the full message
When I attempt to open an email I receive " This is a message header. The full item has not been downloaded." At INBOX, ALT CTRL-S >SEND/RECEIVE GROUP>All Accounts>EDIT >displays an option to display headers only or the entire message including the attachment. In the grayed out area, I can see that a dot in the display headers only section. Due to the gray out I cannot chooose the alternate selection. How can I access the alternate choice? Which mail account type are you using? -- Robert Sparnaaij [MVP-Outlook] Coauthor, Configuring Microsoft O...

Page break preview & blue line
I using Excel 2003 In page break preview I have always do some thing wrong I'm just pull the blue line by using mouse all page was destroyed It there any tips to return the blue line to the Default pages size setting As far as I know the 'default' print area is all the data, and once you have changed the print area and saved the file you can not get it to go back to the previous setting. If you have problems with this or any other proceedure do try to remember to save your file before you do the awkward bit and then you can go back to the saved copy it it does not work. ...

How do I print only odd pages in Publisher and then only even page
I am attempting duplex printing with a printer that is unable to do duplex printing by printing odd pages first and then flipping the pages over and printing only even pages. No option is given that I can find in the print window. Help! Sarah Wright wrote: > I am attempting duplex printing with a printer that is unable to do > duplex printing by printing odd pages first and then flipping the > pages over and printing only even pages. > > No option is given that I can find in the print window. > > Help! The duplex printing add-in can be found here (http://publisherm...

Outlook saves image attachment as bitmap
Hi. I have Outlook 2003 running on Windows XP. When I save an image attachments, it only allows me to save it as bitmap. Before, it used to let me choose between bitmap & jpeg. I found an article on Microsoft's website, but it only pertains to Internet Explorer (http://support.microsoft.com/?kbid=810978#appliesto). I did it anyways, but it didn't correct my problem. Thanx in advance, Candee ...

M2004 Won't Save Customized Toolbars / Home Page
Unable to find anything in archives or the UFAQ on this... My Money 2004 file recently stopped saving customized toolbars / home page. Any changes I make don't "stick". I've used super salvage, which supposedly found and corrected some errors, but the problem persists. Any ideas? Thanks. Try this (and it is in the UFAQ under a less specific topic at http://umpmfaq.info/faqdb.php?q=153). Stop Money Express. Change your toolbar stuff. Exit Money. Restart Money. Restart Money Express. "Sock" <sock@wideopenwest.com> wrote in message news:8205f05b.04101407...

Add a blank page separator
How do I add a blank page automatically as a separator after every 15 pages when printing a document of 250 pages? Use a macro containing the following code to print the document: Dim i As Long Dim blank As Document For i = 1 To 240 Step 15 ActiveDocument.PrintOut Range:=wdPrintFromTo, From:=i, To:=i + 15 Set blank = Documents.Add With blank .PrintOut .Close wdDoNotSaveChanges End With Next i -- Hope this helps, Doug Robbins - Word MVP Please reply only to the newsgroups unless you wish to obtain my services on a paid professio...

Same Table cannot be the child table in two nexted relations...
I've been setting up a schema with the XML Designer in VS .NET 2003. The designer lets me set up a lot of things including a complex type that contains an unnamed complex type called modified. When I try to preview the dataset, I get an error described as "The same table (modified) cannot be the child table in two nested relations. I've run into this before with a different complex type, and I've changed the name of the instance of the type in the various elements it's used, and the problem goes away. In this case, problem is an unnamed complex type, so it only a...

Paper settings change for specific printer
I just installed access 2007 and my application uses reports to print labels. Specifically a Dymo turbo 400 and 30252 address labels. when i was using acess 2003 i specified to use a specific printer and everything was great. and when i copied updated FrontEnds to my networked computers every thing transfered and the labels printed fine however with 07 the "Specifc printer" has a different page size.. i fixed all the reports on my master FE but the changes didnt stay when i copied FE to other computers and im not sure where to go. i installed all the printers from the s...

Delete contents deletes all data and formulas
When I hit delete contents all data and formulas are deleted. How can I delete data without deleting formulas? Hi, You could try this tap F5 - Special - Constants - OK and if that selects the data you want to delete then tap the delete key -- Mike When competing hypotheses are otherwise equal, adopt the hypothesis that introduces the fewest assumptions while still sufficiently answering the question. "tdhcrr" wrote: > When I hit delete contents all data and formulas are deleted. How can I > delete data without deleting formulas? First use Find...

Can I set SQL mirroring across WAN?
We have a 100 Mb dedicated DR link to another data center. Want to set up a SQL 2008 database to use mirroring from primary to a standby server at the remote data center. I did a ping test and here is the result. ping -n 100 -l 5120 <target IP> Ping statistics for <target IP> Packets: Sent = 100, Received = 99, Lost = 1 (1% loss), Approximate round trip times in milli-seconds: Minimum = 8ms, Maximum = 19ms, Average = 11ms is the network latency good enough for database mirroring? Does anyone know the min. requirement? Field experience will be fine too....

Code about setting Y Axes scale.
I couldn't understand the lines between 35-42, why he thought the dbMinScale after the change is the one he want. What the logic of this code section. Any one who could understand please help me. thanks in advance!:) Private Sub USP_SetYAxesScal(ByVal i_strWSName As String, ByVal i_strChartName As String, Optional ByVal i_intDecimal As Integer = 2) Dim dbMaxScale As Double, dbMinScale As Double, i As Integer, j As Integer Dim xTargetChart As Chart, vTemp() As Variant, blnInit As Boolean, dbMax As Double, dbMin As Double 1 On Error Resume Next 'get max/m...

ComboBox with AutoCompleteMode = SuggestAppend and custom search (Contains)?
Hi, I have a class FlightStation with a Search property that combines two attributes. I like to search not only for matching strings from the beginning, but rather from any where in the string. (With the Contains method or the string class) What is the best and quickest solution to implement such a search when using a combobox and not a TextBox for the input? I know about implementing a derived class like this: class FlightStationBindingList : BindingList<FlightStation> { // ... } But is there a more quick and dirty solution ?! - Sorry :-) My solution with the Tex...

How do I set up mixed page orientations in Publisher 2003?
I'm trying to create a duplex publication where one side is in portrait and the reverse is in landscape. I've tried looking in the halp and through all the menus but it seems that I can only have one or the other. Can anybody help? Publisher (any version) does not support this. The workaround most frequently offered is to design your landscape page, group the all the objects, then rotate 90 degrees. -- Brian Kvalheim Microsoft Publisher MVP http://www.publishermvps.com This posting is provided "AS IS" with no warranties, and confers no rights. "T. Mitchell"...

Setting the default font and font size for Excel comments
Hi, Do you know how to set the default font and font size in Excel for the cell 'Comments'? I have looked in Options as well as in the registry to see if I can change the default from Tahoma (size 8) to another (i.e. Arial size 12). Your help would really be appreciated. Thanks, Clint - UK ...

outlook in sub-domain to set use root-domain question!!!
Dear Sir Please see below more details,(We are using special railway line between Head office in Taipei and branch office in Tao-Yuan) Head office in Taipei: aaa.com(Root domain) Dc server * 2(One of it is GC Server), Front-End Exchange 2003 *1, Back-End Exchange 2003 * 2(One is named mail1, another is named mail2 ) Branch office in Tao-Yuan: bbb.aaa.com(sub-domain) Dc Server *1(No GC Server,No Exchange Server) After using ADMT v3 Tool, when I transfer an account from root named aaa.com(ou) to bbb.aaa.com. After I ins...

HTML Emails and Workflow
I need to be able to send an HTML email using a workflow rule. I've been told it can be done (The help files), but whenever I do it - it loses all formatting. I am currently creating an HTML page in VS2005/Word, and copying/ pasting the design of it into the workflow rule. I have tried only copying the bits I want, as well as the whole document. Any help is greatly appreciated. Ian. Ian, just take a look at the email templates in the settings section and use these templates to work with in your workflow... "Ian" wrote: > I need to be able to send an HTML email using a...