Is it possible to make a secret database active, select a record and print that record using a form in the secret database?
Here is the code, It kind of works but it is using a different form than the one specified and no data on the form is showing up
local vRecordID, vReturnWindow
vRecordID = “mytestrecordid”
yesno "Print a copy of a Delivery Slip?" if clipboard() contains "no" rtn endif
vReturnWindow=info(“windowname”)
window “Deliveries”+“:SECRET”
select mRecordID=vRecordID
printtopdf “”,“printer”,“”,“onerecord”,“true”,“form”,“DeliverySlip”,“orientation”,“portrait”,“Height”,“11”,“Width”,“8.5”
window vReturnWindow