What's the best way to time-limit distributed templates (mostly Word but
Excel and PPT also) so that they stop functioning on a certain date or after
a period of time? I'd like to avoid having to hard code date/time in the
code but would prefer to use a setup procedure that takes the date of
installation and sets the expiration date then.

Should I be using the Registry or a hidden file or something else?

Many thanks...

RE: Time limit code - best way? by AnandVVN

AnandVVN
Tue May 03 05:59:05 CDT 2005

Hi Chuck,

The best wasy to do is use a text file. I had one such situation so here is
what I did
I created a text file which was created with a small simple install program
I made. In this file I stored the date and the number of days in which teh
program would expire, which I stored in a encrypted form, in the document I
would check if the file is there or not everytime I opned the document. When
the date expired the document woudn't open any way.

About that encyption stuff, I found some free program on net.

Hope this solution helped you.

Anand

"Chuck" wrote:

> What's the best way to time-limit distributed templates (mostly Word but
> Excel and PPT also) so that they stop functioning on a certain date or after
> a period of time? I'd like to avoid having to hard code date/time in the
> code but would prefer to use a setup procedure that takes the date of
> installation and sets the expiration date then.
>
> Should I be using the Registry or a hidden file or something else?
>
> Many thanks...

RE: Time limit code - best way? by Chuck

Chuck
Tue May 03 07:19:01 CDT 2005

Thanks. That's similar to what I've been doing but I'm wondering if there's
a slicker way...

"Anand.V.V.N" wrote:

> Hi Chuck,
>
> The best wasy to do is use a text file. I had one such situation so here is
> what I did
> I created a text file which was created with a small simple install program
> I made. In this file I stored the date and the number of days in which teh
> program would expire, which I stored in a encrypted form, in the document I
> would check if the file is there or not everytime I opned the document. When
> the date expired the document woudn't open any way.
>
> About that encyption stuff, I found some free program on net.
>
> Hope this solution helped you.
>
> Anand
>
> "Chuck" wrote:
>
> > What's the best way to time-limit distributed templates (mostly Word but
> > Excel and PPT also) so that they stop functioning on a certain date or after
> > a period of time? I'd like to avoid having to hard code date/time in the
> > code but would prefer to use a setup procedure that takes the date of
> > installation and sets the expiration date then.
> >
> > Should I be using the Registry or a hidden file or something else?
> >
> > Many thanks...

RE: Time limit code - best way? by AnandVVN

AnandVVN
Wed May 04 00:11:02 CDT 2005

Hi Chuck,

What you can do is store in registry also too. Make an application that
would encrypt the date of the docuemnt or template and the number of days it
is valid, and also the system date on which the doc or template was copied,
so htat even if the system date is changed later it won't effect your program
and compare it every time your document or templated is opened,and when the
time limit has reached, automatically close the document. And also check if
the registry entry is removed or not from the document, if it is removed
don't open the document.

I hope this is would be slick enough.

Anand



RE: Time limit code - best way? by Chuck

Chuck
Wed May 04 05:11:03 CDT 2005

Thanks Anand that's great. Can you point me to the free encryption program
you mentioned?

Thanks again.

"Anand.V.V.N" wrote:

> Hi Chuck,
>
> What you can do is store in registry also too. Make an application that
> would encrypt the date of the docuemnt or template and the number of days it
> is valid, and also the system date on which the doc or template was copied,
> so htat even if the system date is changed later it won't effect your program
> and compare it every time your document or templated is opened,and when the
> time limit has reached, automatically close the document. And also check if
> the registry entry is removed or not from the document, if it is removed
> don't open the document.
>
> I hope this is would be slick enough.
>
> Anand
>
>

RE: Time limit code - best way? by AnandVVN

AnandVVN
Wed May 04 06:31:05 CDT 2005

Hi Chuck,
You can check this link

http://www.softcircuits.com/sw_vbsrc.htm

encrypt.zip, its around 3.3KB

I don't rememebr the link from which I downloaded the one I am using but
I'll post it later, in the mean while you can check this out.

Hope you find it helpfull.

Anand


RE: Time limit code - best way? by AnandVVN

AnandVVN
Mon May 09 05:09:41 CDT 2005

Hi Chuck,

it turns out that I am using the same application and it looks good so far.

Hope you found it useful.

Anand



"Anand.V.V.N" wrote:

> Hi Chuck,
> You can check this link
>
> http://www.softcircuits.com/sw_vbsrc.htm
>
> encrypt.zip, its around 3.3KB
>
> I don't rememebr the link from which I downloaded the one I am using but
> I'll post it later, in the mean while you can check this out.
>
> Hope you find it helpfull.
>
> Anand
>