NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: KC Chin on March 11, 2009, 04:49:23 AM

Title: Possible bug: Path on PDF preview
Post by: KC Chin on March 11, 2009, 04:49:23 AM
Global - Program Setup
    SYSTEM{Prop:Datapath} = 'D:\STank64\Data'

PDFReporter.SetUp PROCEDURE

  CODE
...
  If Not p_Web &= NULL
    SELF.SetFileName(clip(p_web.site.WebFolderPath) & '\' & clip(loc:PDFName))
  End

Error Message
TARGET Openfile
ERROR:(3) Path Not Found
Can't create target file web\$$$55769.pdf

Looks like the pdf output to different path

when I create a folder 'D:\STank64\Data\web', the report will print/save to the web folder.  from there, no display or "Page Load Error" on web page.

message(p_web.site.WebFolderPath ) = web

If I set the path at
PDFReporter.SetUp PROCEDURE

SELF.SetFileName('D:\STank64\TheWeb\' & clip(p_web.site.WebFolderPath) & '\' & clip(loc:PDFName))

everything works fine.
Title: Re: Possible bug: Path on PDF preview
Post by: Bruce on March 11, 2009, 08:19:25 AM
Hi KC,

Thanks for the report. It seems the PDF thingy is using prop:datapath, which we don't want it to. I'll incorporate your fix in the next build.

Cheers
Bruce
Title: Re: Possible bug: Path on PDF preview
Post by: KC Chin on March 12, 2009, 01:09:04 AM
Are you referring to 4.31 pre-release 34 - 10 Mar 2009 or next pre-release?

Cheers and good day to you.
Chin
Title: Re: Possible bug: Path on PDF preview
Post by: Bruce on March 12, 2009, 06:25:51 AM
The fix is in PR35.
Actually the problem is the WebFolderPath property which is _supposed_ to include the whole path, but doesn't (because of a completely separate bug.)

Note that my fix will break your work-around, so be aware of that when you install build PR 35.

Cheers
Bruce
Title: Re: Possible bug: Path on PDF preview
Post by: KC Chin on March 12, 2009, 07:29:00 AM
Already remarked for Bruce's fix

Thank you.
Cheers,
Chin