We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Automating PDF creation.

VB.Net
Windows Forms
Win Xp
PDF V.4.4

Greeting,
You guys have been a great help.
In an automated reporting process how determine when tne file creation is complete and the file is closed.

Regards


1 Reply

SS Sri Subhashini M Syncfusion Team March 9, 2009 06:46 AM UTC

Hi Martin,

Thank you for your interest in Syncfusion PDF.

Calculating File creation/closing Time

We can calculate file creation and its closing time using DateTime class. Here is the sample code snippet to calculate the time creation time,

Dim FileCreationTime As DateTime = DateTime.Now
'Create a new PDF Document. The pdfDoc object represents the PDF document.
Dim pdfDoc As PDFDocument = New PDFDocument()
'Save the PDF Document to disk.
pdfDoc.Save("Sample.pdf")
Dim endTime As DateTime = DateTime.Now
' File creation Time.
Dim time As TimeSpan = endTime.Subtract(FileCreationTime)

Please do find the sample which demonstrates the above mentioned feature and let me know if this helps,

http://www.syncfusion.com/uploads/redirect.aspx?file=Sample_80005_2b134314.zip&team=support

Regards,
Suba



Loader.
Live Chat Icon For mobile
Up arrow icon