PDA

View Full Version : Report Template W/date,time, Program Name At Bottom


JamesMannes
05-10-2007, 09:43 AM
Here is a copy of a Report Template with the date,time, and program name placed at the bottom of the program(zipped link...go HERE (http://www.box.net/shared/static/qjvl8gaoa9.zip)) . I did this so that I can keep track of hard copies of the report should they get separated from each other.

The code immediately below this text is how to type in the info you would like to show up.


.DAT # Keyword
Functionality
Equivalent Command in Report Template
#DATE
Inserts the current date.
=SYSTEMDATE("MMMM dd, yyyy")
#TIME
Inserts the current time.
=SYSTEMTIME("HH:mm")
#PAGE

Inserts the current page number.
=Page()
#TRn

Inserts the value of trace field n, where n is the trace field number.
=TRACEFIELD(n)
#PARTN

Inserts the part program name.
=PARTNAME( )
#DRWN
Inserts the revision number.
=REVNUM()
#SERIALN
Inserts the serial number.
=SERNUM( )
#SEQUENCE
Inserts the sequence number.
(Not applicable)
#SHRINK
Inserts the scale factor.
=MEASSCALE()
#NMEAS
Inserts the total number of dimensions.
=NUMMEAS()
#NOUT
Inserts the total number of dimensions that are out of tolerance.
=NUMOUTTOL()
#ELAPSTIM
Inserts the time elapsed between start and end of execution.
=ELAPSEDTIME()
#BMP=bitmappath
Inserts a bitmap of the specified full path and name.
Use Bitmap object

craiger_ny
05-10-2007, 09:48 AM
Important thing to remember is the syntax is case sensitive. At least it is when it is part of your PCDMIS part program I assume it is with templates as well.

SYSTEMDATE("MM'/'DD'/'YY") will only return "05/DD/YY" (assuming it is May)
SYSTEMDATE("MM'/'dd'/'yy") will return the actual date formated as month/day/year with leading zeros.

Wes Cisco
05-10-2007, 10:04 AM
Wow! Thanks James, but when I execute your code it comes out like this:


.DAT # JAMES MANNES
Functionality
Equivalent Command in Report Template
#JAMES MANNES
Inserts the current date.
=SYSTEMDATE("JAMES MANNES")
#JAMES MANNES
Inserts the current time.
=SYSTEMTIME("JAMES MANNES")
#JAMES MANNES

Inserts the current page number.
=Page()
#JAMES MANNES

Inserts the value of trace field n, where n is the trace field number.
=JAMES MANNES(n)
#JAMES MANNES

Inserts the part program name.
=JAMES MANNES( )
#JAMES MANNES
Inserts the revision number.
=JAMES MANNES()
#JAMES MANNES
Inserts the serial number.
=JAMES MANNES( )
#JAMES MANNES
Inserts the sequence number.
(JAMES MANNES)
#JAMES MANNES
Inserts the scale factor.
=JAMES MANNES)
#JAMES MANNES
Inserts the total number of dimensions.
=JAMES MANNES()
#JAMES MANNES
Inserts the total number of dimensions that are out of tolerance.
=JAMES MANNES()
#JAMES MANNES
Inserts the time elapsed between start and end of execution.
=JAMES MANNES()
#JAMES MANNES=IRONMAN=RUSTY
Inserts a bitmap of the specified full path and name.
Use Bitmap object :rolleyes:

JamesMannes
05-10-2007, 10:17 AM
Thnaks Wes,
I'm glad you got a kick out of my little attempt at humor. Sometimes I don't know if I'm being funny or a dumbbazz. A toast to Wes with some Whiskey!!!

Wes Cisco
05-10-2007, 10:24 AM
Thnaks Wes,
I'm glad you got a kick out of my little attempt at humor. Sometimes I don't know if I'm being funny or a dumbbazz. A toast to Wes with some Whiskey!!!

A toast back to you! I notice Admin has deleted some more old threads, thus reducing our post counts, but they left my status as Demiguru. Curious. I know what you mean about not being sure if others will appreciate the humor or not, but you can't hit a homer if you don't swing for the fence, even if that does mean you strike out sometimes.

Wes Cisco
05-10-2007, 10:27 AM
OH, I see, Ranger and J are still gurus but as soon as they post again, they go back to being ultra senior members. You retained guru status James, barely.

JamesMannes
05-10-2007, 10:29 AM
OH, I see, Ranger and J are still gurus but as soon as they post again, they go back to being ultra senior members. You retained guru status James, barely.
Do they remove stuff mainly from the off-topic side? Maybe that's the culprit. Just upping post count.

Wes Cisco
05-10-2007, 10:32 AM
Do they remove stuff mainly from the off-topic side? Maybe that's the culprit. Just upping post count.

Yep, I think they mostly delete offtopic stuff. So next time around will be the 3rd time I have achieved guru status. Another 19 on-topic pads and I should be safe. LOL

cmmguy
05-10-2007, 10:48 AM
OH, I see, Ranger and J are still gurus but as soon as they post again, they go back to being ultra senior members. You retained guru status James, barely.

Nope, we are just OLD members

craiger_ny
05-10-2007, 10:50 AM
From what I understand it is only the off topic side that gets a cleanup

John Kingston
05-10-2007, 11:11 AM
Thnaks Wes,
I'm glad you got a kick out of my little attempt at humor. Sometimes I don't know if I'm being funny or a dumbbazz. A toast to Wes with some Whiskey!!!

I enjoy the humor, unless it is at my expense. Then I get hurt and cry.:(

James Mannes has me brainwashed. :D James Mannes has me brainwashed. James Mannes has me brainwashed. :D James Mannes has me brainwashed. :D James Mannes has me brainwashed.