NetTalk Central

Author Topic: Copy $$$temp reports away to diffrent path.  (Read 3606 times)

lkeyser

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
    • Email
Copy $$$temp reports away to diffrent path.
« on: January 22, 2015, 02:07:12 AM »
Hi Everyone

I’m generating pdf reports on a nettalk webserver and it works fantastic.

My client has requested for reasons unknown to myself that each report generated must be duplicated and saved somewhere else on the disk with a Unique file name.

I tried to “catch” the report when it generates in the web\reports folder and copy it somewhere else.

My Problem
Where in the embed code can I add the code to copy the generated reports from “web\reports\$$$Reportname.pdf” to “web\archive\datevalue+reportname.pdf”

I have tried to use the LOC:url session value to get the path to copy, but don’t seem to work.


Thanks
Louis

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Copy $$$temp reports away to diffrent path.
« Reply #1 on: January 22, 2015, 06:50:54 AM »
Good Question Louis. I think I'll address it in the webinar today. (starting in 10 minutes.)

cheers
Bruce

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Copy $$$temp reports away to diffrent path.
« Reply #2 on: January 22, 2015, 10:10:12 PM »
Ok, question answered in Webinar #50 here;
http://www.capesoft.com/accessories/NetTalkUserGroup.htm

The best place to embed code is in WebHandler, in RemoveOneServe method, before the parent call.
(The delete takes place inside the Parent call of RemoveOneServe.)

cheers
Bruce

lkeyser

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
    • Email
Re: Copy $$$temp reports away to diffrent path.
« Reply #3 on: January 23, 2015, 12:24:41 AM »
Thanks Bruce

Piity I couldnt attend the Webinar.

Regards
Louis

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Copy $$$temp reports away to diffrent path.
« Reply #4 on: January 23, 2015, 06:52:40 AM »
yeah, it's easier to answer follow up questions if you are there, but the recording is uploaded so you can watch the few minutes of that if you like.

cheers
Bruce