thanks to both who replied.
sorry, should have been clearer. that was a paste from the debugger, the c#
statement is indeed already escaped as you suggested.
However. I found an old visual basic reference that basically said that the
path argument is ignored when used in this manner with ExecWB. Security
policy denies it as it would mean any webpage could upload thousands of
files to your machine. So no matter what you specify it simply ignores it.
Would seem to be the case, as no matter the path specified, it always
defaults to MyPictures.
There must be a way of extracting the image though. Either from the webpage
itself where i beleive it is a metafile or from the cache. Bit of a pain
though as this is unexplored territory for me.
Maybe thats a good thing though ;-) Nothing like being forced to learn.
hehe.
"Paul E Collins" <fi******************@CL4.org> wrote in message
news:bq**********@sparta.btinternet.com...
"Tam Inglis" <jo***********@btclick.com> wrote:
Both of these statements cause the [error] dialog box
to show. any thoughts as to why?
myWebDoc.execCommand("SaveAs",false,"C:\temp.jpg") ;
myWebDoc.execCommand("SaveAs",true,"C:\temp.jpg");
'\t' is probably being interpreted as a tab character.
Try "C:\\temp.jpg" or @"C:\temp.jpg" instead.
P.
--
www.CL4.org