Have a letter to print in PDF based on data in the .dbf. All works fine published to localhoast. Code for sending to PDF basically comes from help file.
Published all files (including data files) so the letter is there on the VPS.
The error I get is below. It is not the error that is trapped by the code but seems to indicate a path problem.
My Alias is defined as
in the setting for publishing to the VPS. It is correct in terms of the absolute path to the data files. I have verified that they are there and they are the ones I published. Have done it several times.
I thought this might just be a case of not having Acrobat on the VPS but even if I try to print an RTF or CSV, I get the same error.
Any ideas would be appreciated.
Code:
<%a5 if eval_valid("Id") if Id[1] = "" goto IdNotSpecified end if dim filter as c dim order as c filter = Id.dump() filter = *for_each(x,"Id = " + val(x),filter) filter = strtran(alltrim(filter), crlf()," .or. ") order = "" pSet.JpegQuality="High" dim filename as c filename = session.session_folder + chr(92) + "templetter.pdf" filename = letter.saveas("individual_ltr@[PathAlias.ADB_Path]\supplementaldata.dbf","PDF",filter,order,filename,.f., pSet) if file.exists(filename) response.redirect(session.session_url + "templetter.pdf?" + time("hms3")) end end if else IdNotSpecified: end if %>
The error I get is below. It is not the error that is trapped by the code but seems to indicate a path problem.
500 Internal Server Error
"Script Error
Error:
Amyuni Low Level Print:
Layout name: individual_ltr@[PathAlias.ADB_Path]\...mentaldata.dbf
Layout type: letter
Letter not found: 'individual_ltr@[PathAlias.ADB_Path]\supplementaldata.ddd'."
"Script Error
Error:
Amyuni Low Level Print:
Layout name: individual_ltr@[PathAlias.ADB_Path]\...mentaldata.dbf
Layout type: letter
Letter not found: 'individual_ltr@[PathAlias.ADB_Path]\supplementaldata.ddd'."
[PathAlias.ADB_Path] = c:\A5V9\data\FitSup
I thought this might just be a case of not having Acrobat on the VPS but even if I try to print an RTF or CSV, I get the same error.
Any ideas would be appreciated.
Comment