>. >. >. > lUseColor = .t. &&Use "color" printer driver? >. >. >. > **Make sure Ghostscript DLLs can be found > if !this.lError > =this.GSFind() > *!* 16/02/2005 Arto Toikka > *!* GhostScript writes to the C:\GS\...\BIN\ direcory if > *!* write directory is not defined in This.cOutputFile > *!* But FindExecutable and AdeleteFile() needs a path. > *!* So it is added here. > If AT("\",This.cOutputFile)=0 > This.cOutputFile = Alltr(this.cGSFolder) + Alltr(This.cOutputFile) > Endif > > wait clear > else > if !llRptError > =messagebox(this.cError,48,"PDF Creation Error") > llRptError = .t. > endif > endif > >. >. >. > *!* 16/02/2005 Arto Toikka > *!* Modified to respect TEMP/TMP Environment variables > if empty(this.cTempPath) > this.cTempPath = GetEnv("Temp") > If Empty(this.cTempPath) > this.cTempPath = GetEnv("Tmp") > If Empty(this.cTempPath) > this.cTempPath = sys(2023) > Endif > Endif > endif > * or Addbs() > this.cTempPath = Alltr(this.cTempPath) + ; > iif(right(Alltr(this.cTempPath),1)="\","","\") >. >. >. >>