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.
Unfortunately, activation email could not send to your email. Please try again.

Automating PDF creation.

Thread ID:

Created:

Updated:

Platform:

Replies:

80005 Mar 6,2009 07:34 AM Mar 9,2009 02:46 AM Windows Forms 1
loading
Tags: PDF
Marty Graham
Asked On March 6, 2009 07:34 AM

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


Sri Subhashini M [Syncfusion]
Replied On March 9, 2009 02:46 AM

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



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;