I looked high and low, trying to figure how to implement this. Dateime.now.tostring("s")
Took three days of searching and reading, since I am not a VB guru, most of the stuff was hard to understand and bieng on a deadline... well
For those that need a nice random filename generator. I give you what it use, it isnot pretty. but if you want to save pdf without over writing previous and not asking use to put in a name
this will work everytime.
Here is the code. Hope it helps someone.
button is pressed it will generate an filename without the :33 which the file systems hates. how to use the system clock to give me a number to append to the filename
two lines
Dim
x As DateTime = Date.Now
Dim
x1 As String = x.ToString("-mmss.fff")
So you filename will be
CurrentView.Export(
"c:\moc\" & WhoamI & "_" & Wrkflw_str & "_" & SCN_str & "_" & Role_str & "_" & Date_str & x1 & ".pdf", ExportFormat.Pdf)
Notice where x1 is . The output will look like XXXX.2332.543
enjoy