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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Password on Bullzip PDF Email Attachment for each Individual

Status
Not open for further replies.

carolx

Programmer
Jul 22, 2003
75
0
6
JM
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)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top