Hi,
I have an application on a server. The app works fine, along with the shadowed apps on workstations.
The problem is that I want to add photos to the app. I can make the script work on my application which is running directly off of the server, but does not work on the network optimized workstations.
Here is the script:
vc_photo=t.file_name
if vc_photo=""
vc_photo="no_photo.jpg"
end if
this:bitmap1.bitmap.filename=vc_photo
The script is on the OnInit event of the form. no_photo.jpg is a jpg which says "No photos available for this item".
t.file_name is a field in the table which holds the name of the jpg.
I set this up to accommodate records with multiple pictures. On a browse, I have an OnChangeRecord event which re-freshes the bitmap with a photo corresonding to the line in the browse.
All works fine on my computer, but not on the workstations.
I tried changing to the following:
vc_path=chr(92)+"\tottser_repub\database\CC"+chr(92)
vc_photo=alltrim(vc_path+t.file_name)
if vc_photo=""
vc_photo="no_photo.jpg"
end if
this:bitmap1.bitmap.filename=vc_photo
(Our server name is tottser_repub and the shared folder is database, with the subfolder named CC)
The above script resulted in the following on my computer:
I get a message stating
bad parameter passed to form
and
Cannot read bitmap file "\\tottser_repub\database\CC\e05-035.JPG"
appears on the form.
Any thoughts?
Thanks.
Jay Talbott
I have an application on a server. The app works fine, along with the shadowed apps on workstations.
The problem is that I want to add photos to the app. I can make the script work on my application which is running directly off of the server, but does not work on the network optimized workstations.
Here is the script:
vc_photo=t.file_name
if vc_photo=""
vc_photo="no_photo.jpg"
end if
this:bitmap1.bitmap.filename=vc_photo
The script is on the OnInit event of the form. no_photo.jpg is a jpg which says "No photos available for this item".
t.file_name is a field in the table which holds the name of the jpg.
I set this up to accommodate records with multiple pictures. On a browse, I have an OnChangeRecord event which re-freshes the bitmap with a photo corresonding to the line in the browse.
All works fine on my computer, but not on the workstations.
I tried changing to the following:
vc_path=chr(92)+"\tottser_repub\database\CC"+chr(92)
vc_photo=alltrim(vc_path+t.file_name)
if vc_photo=""
vc_photo="no_photo.jpg"
end if
this:bitmap1.bitmap.filename=vc_photo
(Our server name is tottser_repub and the shared folder is database, with the subfolder named CC)
The above script resulted in the following on my computer:
I get a message stating
bad parameter passed to form
and
Cannot read bitmap file "\\tottser_repub\database\CC\e05-035.JPG"
appears on the form.
Any thoughts?
Thanks.
Jay Talbott
Comment