CAPITAL Office Business Software
CAPITAL Support Forum
FAQSearchMembersGroupsRegisterProfilePM'sLogin/Out
CreatePrintJob()

 
Post new topic   Reply to topic    CAPITAL Office Business Software Forum Index -> Scripting & Customisation
View previous topic :: View next topic  
Author Message
Daniel
Guest





PostPosted: Tue Oct 03, 2006 11:59 am    Post subject: CreatePrintJob() Reply with quote

I have a card file that I want to print from when the operator presses the save button. I've added the CreatePrintJob() function to the save event. How do I tell Visual Builder which record to print please?
Back to top
COBS Tech Support



Joined: 09 Sep 2005
Posts: 651

PostPosted: Tue Oct 03, 2006 12:02 pm    Post subject: Reply with quote

Visual Builder automatically looks for the existence of a variable called StartRecord and will move directly to that record before printing starts, if it exists. So your syntax would be along these lines:

Declare cScript Type Character
cScript := "Declare StartRecord Type Number"
cScript := cScript + CHR(13) + CHR(10)
cScript := cScript + "StartRecord := " + NTrim(CardFile->(RECNO()))

CreatePrintJob("Mycard", cScript)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    CAPITAL Office Business Software Forum Index -> Scripting & Customisation All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

phpBB Template by Vereor
Protected by Anti-Spam ACP