View Single Post
  #6 (permalink)  
Old November 26th, 2003, 10:52 AM
chrislepingwell chrislepingwell is offline
Friend of Wrox
Join Date: Jun 2003
Location: London, , United Kingdom.
Posts: 132
Thanks: 0
Thanked 0 Times in 0 Posts

OK, if that's what you are doing, I don't think you actually need the template's path. What you can do, if you want, is to set
filename = curdir
, and this will use the last directory used as a starting point. Alternatively, just set a default save location in code, preferably not the same directory as the template - you don't want users breaking things :)
BTW, bear in mind that users can cancel out of the dialog, returning "false", so you must trap that before attempting the save.

There are two secrets to success in this world:
1. Never tell everything you know
Reply With Quote