Print Preview ActiveX Active Users: 62 / Visits Today: 1166
Highest Active Users: 361
Print Preview ActiveX
Home | Profile | Register | Active Topics | Members | Search | FAQ | RSS
Save Password
Forgot your Password?

 All Forums
 Print Preview
 Help file
 EmailAutomaticSend - Property
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic: SetEMailFormPicture - Method Topic Next Topic: DrawForm - Method  


327 Posts

Posted - 07/26/2005 :  12:27:02  Show Profile
Property EmailAutomaticSend


This property set the AutomaticSend option in the email interface to the mail client, and returns the setting.


EmailAutomaticSend () [ bValue As Boolean ] As Boolean


You can not send an email directly from code. To send the email you have to click the emailbutton in the PrintPreview window´s taskbar.


Private Sub Command0_Click()

	preview.AddFirstPage 1000, 1000
	preview.AddTextAt "testing"
	preview.EmailAutomaticSend = True
	preview.OutputFile = "C:\Test.txt" ' textfile as enclosure
	preview.OutputFileType = prELText ' as textfile
	If preview.EmailAutomaticSend Then
   		preview.EmailBody = "Find enclosed the required file Test.txt"
    		preview.EmailFilename = "C:\Test.txt" ' the attachment
   		preview.EmailFileType = prELText ' send email as text
    		preview.EmailListofRecipients = "" ' to whom
    		preview.EmailSubject = "Test" ' the subject
    		preview.EndDocument prOTScreen ' choose in the taskbar the emailbutton
	End If

End Sub
See also:

preview.Subject -------------------------->
preview.EmailBody --------------------->
preview.EmailFileType --------------->
preview.EmailFileName -------------->
preview.EmailListOfRecipients ---->

[size=1]Come and visit :

Edited by - emiel on 06/21/2006 12:26:09
Go to Bottom of Page
  Previous Topic: SetEMailFormPicture - Method Topic Next Topic: DrawForm - Method  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Print Preview ActiveX © Mandix Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000 Version 3.4.02