Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: RE: Creating HTML from SMCL log file including graphics - revised log2html.ado


From   "David Elliott" <[email protected]>
To   [email protected]
Subject   Re: st: RE: Creating HTML from SMCL log file including graphics - revised log2html.ado
Date   Fri, 19 May 2006 18:04:43 -0300

@David Harrison

You are absolutely right, my bad. My dir command shows the same.
-graph export- *should* append the type specific extension IMHO.  My
browser won't display the extensionless png - treats it as a download
then prompts for a handler.  I am adding code to check for the
existence of the file at time of execution and will write a "error,
*.png not found" message.

DCE

On 5/19/06, David Harrison <[email protected]> wrote:
This is not my experience...

. graph export temp, as(png)
(file temp written in PNG format)

. dir temp*
   9.7k   5/19/06 17:14  temp

. graph export temp.png
(file temp.png written in PNG format)

. dir temp*
   9.7k   5/19/06 17:14  temp
   9.7k   5/19/06 17:17  temp.png

Not all platforms require extensions, remember... Although I am using
windows, which as a rule does.

David


David Elliott wrote:

2) You said: "True, but the file produced does not have an extension, so
adding one in the <img> tag will not help."

Actually, the .png extension is added to the file regardless of what the
confirmation message said - try it yourself, you'll see.
Personally, I think this is a deficiency in the graph export command i
it should state the filename and extension.


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


--
David Elliott

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index