You are on page 1of 1

string filename

string filepathname
//create the path to use LATER for the attachment
#if defined PBWEBFORM then
filepathname = MapVirtualPath("c:\XXX-Detailed-" + trim(report_name) + "-" + ran
dom_number_string + ".pdf")

//create the path and filename to use NOW and save the file in the virtual direc
tory
filename = "c:\XXX-Detailed-" + trim(report_name) + "-" + random_number_string +
".pdf"
long returncode
returncode = dw_1.SaveAs(filename,PDF!,false)
if returncode = 1 then

You might also like