Temp user directory

From: Tom de Neef (tdeneef_at_qolor.nl)
Date: 09/29/04


Date: Wed, 29 Sep 2004 13:57:09 +0200

I copy html source code to the clipboard (from within David Baldwin's
ThtmlViewer). MS Office applications paste this very nicely, pictures
included. Except of course when such a picture is not a file reference but
generated in-line by the application (via a call to OnImageRequest).

My solution to this is to save copies of in-line images as BMPs in the
directory of my application, replacing the <img> src parameter accordingly
in the html source before copying to the clipboard. MS Office applications
pick these temporary images up as well. ...Except with some users (even
though they use latest versions of Word and Windows.) I make little progress
in pinpointing where the problem is.

I've noticed that Word stores temp images in a user-specific TEMP file (eg
C:\Documents and Settings\Tom de Neef\Local Settings\Temp\). I now want to
mimic that and see if it solves the problem.

Question: how do I determine the path of such a user-specific temp
directory. Will it be a valid reference on Windows versions from 98 onwards?

Thanks,
Tom



Relevant Pages

  • Re: Temp user directory
    ... MS Office applications paste this very nicely, pictures ... Except of course when such a picture is not a file reference but ... >I've noticed that Word stores temp images in a user-specific TEMP file (eg ...
    (comp.lang.pascal.delphi.misc)
  • Re: On Paste command Word doesnt actually pastes from Clipboard - why
    ... When you copy graphics from a Web site, what you are actually copying to the ... Clipboard is a link to the location where the graphic is stored. ... Select any area with pictures and text, ...
    (microsoft.public.word.docmanagement)
  • Re: Clipboard: pasting last two (or all) items from Word clipboard and clearing clipboard.
    ... the Office applications which can hold multiple items of data. ... did not bother to expose an API for the Office clipboard so you can't use it from VBA ... You will need to restructure your requirements to do two cut/copy and pastes. ... and print the page (have another macro for this). ...
    (microsoft.public.word.vba.beginners)
  • Re: Some notes to Netsurf
    ... same with pictures: Drap & drop a picture to the window where you want ... of course what you are seeing is the HTML source not the rendered page. ... that would have to render the page to show what every conceivable ... by describing them in a scripting language, ...
    (comp.sys.acorn.apps)
  • Re: Disable paste for images
    ... the clipboard as opposed to one inserted using Insert> Picture. ... Unless you have in mind that the pictures should be linked rather than ... intercepting the Paste command and trying to work out what the ... distinguish between pasting text and pasting images: ...
    (microsoft.public.word.vba.general)