Jump to content

having report append not overwrite


Recommended Posts

  • 3 years later...

Please sign in to view this quote.

Please sign in to view this username.

 You add a timestamp to the filename convention using header variables. So instead of something like +getRecordHead("planid")+".pdf" you would use +getRecordHead("planid")+"_"+getRecordHead("date")+"_"+getRecordHead("time")+".pdf" which would give you something like PART123_10-20-2026_14-37-52.pdf.

Sample of saving a PiWeb report as PDF with a Date and Time stamp.

"C:\CMM Data Files\PDF Files"+"\"+getRecordHead("partnbLong")+"\"+getRecordHead("dmesn")+"\"+getRecordHead("planid")+getRecordHead("partsn")+"_"+getRecordHead("partnbinc")+"_"+getRecordHead("date")+"_"+getRecordHead("time")+"_"+".pdf"

 

×
×
  • Create New...