Senin, 26 September 2011

[MS_AccessPros] Re: Output Report to PDF

 

Giorgio,

No. strPdfFileName is the output file name/location of the PDF file. strRunOnce is the location of the ini file that gets created with this process that determines the output location, etc. of the pdf file. This program gets run on a shared application server. I put the check in there to make sure that if one of my co-workers is using it also, the code will suspend itself until their print job clears (the ini file gets deleted by the pdf printer once it prince, hence why it's called runonce). I delete the runonce.ini file if it's older then 15 minutes, on the assumption that a print job failed and the file was left sitting around.

Hope this helps.

--- In MS_Access_Professionals@yahoogroups.com, giorgio_rovelli <no_reply@...> wrote:
>
>
> Thanks Brian,
>
> So the value of strPdfFileName and strRunOnce in Sub ReportPdf is the
> same?
>
> You say, "if the created date of the
> 'ini file is more then 15 minutes, we just delete and print anyway"
>
> therefore shouldn't this be the correct code:
>
> If DateDiff("n", fs.GetFile(strRunOnce).DateCreated, Now) > 15 Then
> fs.DeleteFile strRunOnce, True
>
>
> ?
>
> Giorgio
>
>
>
>

__._,_.___
Recent Activity:
MARKETPLACE

Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.

.

__,_._,___

Tidak ada komentar:

Posting Komentar