Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

varying paths of image in a report.

Status
Not open for further replies.

torturedmind

Programmer
Jan 31, 2002
1,052
PH
i have this small code:
Code:
wait window "Generating signature files..." nowait
if not directory(sys(2023) + "\tmpsgn")
	mkdir (sys(2023) + "\tmpsgn")
endif

wait window "Generating signature files..." timeout 1

select ecn4app1
set filter to alltrim(ecn4app1.idkey) == alltrim(xidkey)
go top

if ecn4app1.or_ok
	strtofile(ecn4app1.orpic, sys(2023) + "\tmpsgn\orpic.gif")
else
	copy file ("v:\vfp6\dccsys\others\qmarks.gif") to (sys(2023) + "\tmpsgn\orpic.gif")
endif

wait window "Generating signature files..." timeout 2
report form ecncover preview in screen to printer prompt

erase (sys(2023) + "\tmpsgn\*.*")
rmdir (sys(2023) + "\tmpsgn")

set filter to
go top

my question is, how can i put the orpic.gif file in a report if its path will depend on the temporary folder of the logged user?

thanks in advanced and have a nice day. peace! [peacemen]

kilroy [knight]
philippines

"Once a king, always a king. But being a knight is more than enough."
 
If you already know where to find the user-specific orpic.gif file, then before using it in your report, just copy it to a known fixed location on the local workstation (such as C:\WINNT\Temp\orpic.gif) which is referenced in your report form.

If, for security reasons you need to, you can always erase it from the fixed location after using it in the Report.

If you do it this way, make certain that the users have Write & Delete privilages in the fixed directory.

Good Luck,
JRB-Bldr
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top