How do you put a password to the Bullzip email attachment for the individual. The MAPI session Id carries a password. In Bullzip PDF Printer Options you can set up an owner/user password. How would set up this in the FoxPro email routine. The password could be the social security number for an employee.
Example Code:-
Before MAPI session is established:
oSendparms.cPassword = ""
oSendparms.lDownload = .F.
lnSessionID = THIS.CreateSession( oSendparms.cUserName, oSendparms.cPassWord, oSendparms.lDownload )
Create the COM object to control the printer:
lcObj = CreateObject("BullZIP.PDFPrinterSettings")
lcObj.SetValue("Output",lcPayslipfile)
* lcObj.SetValue("WatermarkText" ,"Draft")
* lcObj.SetValue("WatermarkColor","#FF9900")
lcObj.SetValue("ShowSettings" ,"never")
lcObj.SetValue("ShowPDF" ,"no")
lcObj.WriteSettings(.t.)
oSendparms.aRecipients(1,1) = ALLTRIM(driver.email)
oSendparms.aRecipients(1,2) = 1
oSendparms.aAttachments(1) = lcAttachment
oSendparms.cSubject = "Salary Deductions Listing for "+ALLTRIM(driver.namef)+" "+ALLTRIM(driver.namel)
Example Code:-
Before MAPI session is established:
oSendparms.cPassword = ""
oSendparms.lDownload = .F.
lnSessionID = THIS.CreateSession( oSendparms.cUserName, oSendparms.cPassWord, oSendparms.lDownload )
Create the COM object to control the printer:
lcObj = CreateObject("BullZIP.PDFPrinterSettings")
lcObj.SetValue("Output",lcPayslipfile)
* lcObj.SetValue("WatermarkText" ,"Draft")
* lcObj.SetValue("WatermarkColor","#FF9900")
lcObj.SetValue("ShowSettings" ,"never")
lcObj.SetValue("ShowPDF" ,"no")
lcObj.WriteSettings(.t.)
oSendparms.aRecipients(1,1) = ALLTRIM(driver.email)
oSendparms.aRecipients(1,2) = 1
oSendparms.aAttachments(1) = lcAttachment
oSendparms.cSubject = "Salary Deductions Listing for "+ALLTRIM(driver.namef)+" "+ALLTRIM(driver.namel)