NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: lkeyser on January 22, 2015, 02:07:12 AM

Title: Copy $$$temp reports away to diffrent path.
Post by: lkeyser 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
Title: Re: Copy $$$temp reports away to diffrent path.
Post by: Bruce 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
Title: Re: Copy $$$temp reports away to diffrent path.
Post by: Bruce 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
Title: Re: Copy $$$temp reports away to diffrent path.
Post by: lkeyser on January 23, 2015, 12:24:41 AM
Thanks Bruce

Piity I couldnt attend the Webinar.

Regards
Louis
Title: Re: Copy $$$temp reports away to diffrent path.
Post by: Bruce 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