derkleinemas
11-28-2006, 01:17 PM
Ho,ho,ho from Germany....:beerchug:
hope you are be aible to help me to fill up these code..I want to sent a Groupwisemail by an eventhandler on a Data page..but into the body i want to paste from clipboard..
First i call a access function to do a screenshot by an keyevent...
Set objAc = CreateObject ("Access.Application")
objAc.OpenCurrentDatabase"C:\Dokumente und Einstellungen\Alle\Desktop\db5_Backup.mdb"
objAc.Visible = false
'clip takes a screenshot from active window
objAc.Application.Run "clip"
objAc.Application.CloseCurrentDatabase
objAc.Application.Quit
Set wshshell=Nothing
Set objAc=Nothing
Now Groupwise...
Dim x, b
Dim Mldg, Stil, Titel, Hilfe, Ktxt, Antwort, Text1
Dim sFile
Dim objGroupWise
Dim objAccount
Dim objMessages
Dim objMessage
Dim objMailBox
Dim objRecipients
Dim objRecipient
Dim objMessageSent
Dim Subject, Recipient , Bodytext
x = Beratermail.value'Recipient
Subject = "Neue Terminvereinbarung!!"
Recipient = x
Bodytext = b' any idea to get data from clipboard into body?
Set objGroupWise = CreateObject("NovellGroupWareSession")
Set objAccount = objGroupWise.Login
Set objMailBox = objAccount.MailBox
Set objMessages = objMailBox.Messages
Set objMessage = objMessages.Add("GW.MESSAGE.MAIL", "Draft")
Set objRecipients = objMessage.Recipients
Set objRecipient = objRecipients.Add(Recipient)
With objMessage
.Subject = Subject
.Bodytext=Bodytext' Clipboard...:banghead:......
End With
Set objMessageSent = objMessage.Send
Set objGroupWise = Nothing
Set objAccount = Nothing
Set objMailBox = Nothing
Set objMessages = Nothing
Set objMessage = Nothing
Set objRecipients = Nothing
Set objAttachments = Nothing
Set objRecipient = Nothing
Set objAttachment = Nothing
Set objOleAttachPaste = Nothing ' ' ' ' ' -->
....any idea?
regards from Germany....
hope you are be aible to help me to fill up these code..I want to sent a Groupwisemail by an eventhandler on a Data page..but into the body i want to paste from clipboard..
First i call a access function to do a screenshot by an keyevent...
Set objAc = CreateObject ("Access.Application")
objAc.OpenCurrentDatabase"C:\Dokumente und Einstellungen\Alle\Desktop\db5_Backup.mdb"
objAc.Visible = false
'clip takes a screenshot from active window
objAc.Application.Run "clip"
objAc.Application.CloseCurrentDatabase
objAc.Application.Quit
Set wshshell=Nothing
Set objAc=Nothing
Now Groupwise...
Dim x, b
Dim Mldg, Stil, Titel, Hilfe, Ktxt, Antwort, Text1
Dim sFile
Dim objGroupWise
Dim objAccount
Dim objMessages
Dim objMessage
Dim objMailBox
Dim objRecipients
Dim objRecipient
Dim objMessageSent
Dim Subject, Recipient , Bodytext
x = Beratermail.value'Recipient
Subject = "Neue Terminvereinbarung!!"
Recipient = x
Bodytext = b' any idea to get data from clipboard into body?
Set objGroupWise = CreateObject("NovellGroupWareSession")
Set objAccount = objGroupWise.Login
Set objMailBox = objAccount.MailBox
Set objMessages = objMailBox.Messages
Set objMessage = objMessages.Add("GW.MESSAGE.MAIL", "Draft")
Set objRecipients = objMessage.Recipients
Set objRecipient = objRecipients.Add(Recipient)
With objMessage
.Subject = Subject
.Bodytext=Bodytext' Clipboard...:banghead:......
End With
Set objMessageSent = objMessage.Send
Set objGroupWise = Nothing
Set objAccount = Nothing
Set objMailBox = Nothing
Set objMessages = Nothing
Set objMessage = Nothing
Set objRecipients = Nothing
Set objAttachments = Nothing
Set objRecipient = Nothing
Set objAttachment = Nothing
Set objOleAttachPaste = Nothing ' ' ' ' ' -->
....any idea?
regards from Germany....