NetTalk Central

Author Topic: Possible bug: Path on PDF preview  (Read 3829 times)

KC Chin

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • Email
Possible bug: Path on PDF preview
« 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.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Possible bug: Path on PDF preview
« Reply #1 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

KC Chin

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • Email
Re: Possible bug: Path on PDF preview
« Reply #2 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Possible bug: Path on PDF preview
« Reply #3 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

KC Chin

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • Email
Re: Possible bug: Path on PDF preview
« Reply #4 on: March 12, 2009, 07:29:00 AM »
Already remarked for Bruce's fix

Thank you.
Cheers,
Chin