Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PRINTING USER RECORDS?

Status
Not open for further replies.

danielIII

Programmer
Apr 23, 2003
5
US

ok, i have a project that requires users to print off the quiz results when finished. Right now, i am using JumpPrintReturn to have the quiz.dat printed. JumpPrintReturn("notepad.exe","C://100000001/quiz.dat")

the problem is that each user creates a new folder (ie: 10000001, 10000002) so a second user of the quiz will still print off results for the first user. can i either: change the user records to overwrite the previous quiz.dat: or put scripting into the JumpPrintReturn so that it automatically jumps to the quiz.dat corresdonding with the login.
 
Not quite sure if I'm getting what you're asking or how you're writing out the data, but you could name the file by the user's log in name. Something like:

Code:
WriteExtFile("C:\\Data\\" ^ UserName ^ ".dat", DataText)
where UserName & DataText are variables

then your print command would be:
Code:
JumpPrintReturn("Notepad.exe", "C:\\Data\\" ^ UserName ^ ".dat")

HTH,
steve
 
I really don't have a lot of experiencing with scripting variables or scripting in general. this is my first project with AWare. do i have to set up DataText as a variable with an initial value?

With your scripts, it brought up a file with a single 0 at the top of the screen. all i need to do is have Aware print out a sheet (no database) with the username and quiz score. does that sound easier?
 
ok, here's an update. i am just going to use PrintScreen when the assessment pops up at the end. Now another, less important question. can i print the screen as a full page? i am only getting a 4-5 in box in the top corner. thanks

daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top