Click here to Skip to main content
15,919,893 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Logevent Pin
progload7-Dec-05 7:10
progload7-Dec-05 7:10 
GeneralRe: Logevent Pin
r1nuts7-Dec-05 7:44
r1nuts7-Dec-05 7:44 
GeneralRe: Logevent Pin
progload7-Dec-05 7:58
progload7-Dec-05 7:58 
QuestionCant able to access data from oracle database into VB from multiple tables Pin
santosh5617-Dec-05 6:06
santosh5617-Dec-05 6:06 
AnswerRe: Cant able to access data from oracle database into VB from multiple tables Pin
KaptinKrunch7-Dec-05 6:23
KaptinKrunch7-Dec-05 6:23 
QuestionRe: Cant able to access data from oracle database into VB from multiple tables Pin
santosh5617-Dec-05 9:07
santosh5617-Dec-05 9:07 
QuestionCitrix showing too many printers in VB6 PrintDialog Pin
1MCR7-Dec-05 4:02
1MCR7-Dec-05 4:02 
Questionfailed to create outlook object Pin
hestekae7-Dec-05 2:45
hestekae7-Dec-05 2:45 
i want to open a prefilled mail message.
the parameters are:
- to
- subject
- an attachment file
on my workstation the next code works fine:

Public Class SendFile
Private oApp As Object
Private oNameSpace As Object
Private olMailItem As Integer = 0
Private olByValue As Integer = 1

Public Sub New(ByVal AttachmentName As String)
'Return a reference to the MAPI layer
oApp = CreateObject("Outlook.Application")
oNameSpace = oApp.GetNamespace("MAPI")

'login with the currently user
oNameSpace.Logon(Nothing, Nothing, True, True)
OpenMessage(AttachmentName)
End Sub

Private Sub OpenMessage(ByVal AttachmentName As String)
Dim oMailItem As Object = oApp.CreateItem(olMailItem)

Dim oAttachments = oMailItem.Attachments
oAttachments.Add(AttachmentName, olByValue)


'open mailformular
oMailItem.Display()
End Sub
End Class


but on a citrix metaframe system (Windows 2000 Server installed) it fails with

-- ActiveX component can't create object

what's wrong about it?

stephan
AnswerRe: failed to create outlook object Pin
Brent Lamborn9-Dec-05 11:02
Brent Lamborn9-Dec-05 11:02 
QuestionUserControl with Custom-Constructor Pin
vocaris7-Dec-05 2:30
vocaris7-Dec-05 2:30 
AnswerRe: UserControl with Custom-Constructor Pin
Christian Graus7-Dec-05 14:51
protectorChristian Graus7-Dec-05 14:51 
GeneralRe: UserControl with Custom-Constructor Pin
vocaris8-Dec-05 5:16
vocaris8-Dec-05 5:16 
QuestionPrinting a windows form Pin
johnjsm7-Dec-05 1:41
johnjsm7-Dec-05 1:41 
Questionstoring and retrieving images to sql server using VB6 Pin
Roy_Joseph7-Dec-05 0:45
Roy_Joseph7-Dec-05 0:45 
AnswerRe: storing and retrieving images to sql server using VB6 Pin
Brent Lamborn9-Dec-05 11:04
Brent Lamborn9-Dec-05 11:04 
GeneralRe: storing and retrieving images to sql server using VB6 Pin
Roy_Joseph9-Dec-05 18:35
Roy_Joseph9-Dec-05 18:35 
QuestionBUG 3020 Pin
Jan van der Peet7-Dec-05 0:27
Jan van der Peet7-Dec-05 0:27 
AnswerRe: BUG 3020 Pin
Dave Kreskowiak7-Dec-05 3:54
mveDave Kreskowiak7-Dec-05 3:54 
QuestionHow to get list of message in OE or ms outlook Pin
Mekong River6-Dec-05 20:41
Mekong River6-Dec-05 20:41 
AnswerRe: How to get list of message in OE or ms outlook Pin
vocaris7-Dec-05 2:59
vocaris7-Dec-05 2:59 
GeneralRe: How to get list of message in OE or ms outlook Pin
Mekong River7-Dec-05 4:19
Mekong River7-Dec-05 4:19 
GeneralRe: How to get list of message in OE or ms outlook Pin
Mekong River7-Dec-05 14:50
Mekong River7-Dec-05 14:50 
GeneralRe: How to get list of message in OE or ms outlook Pin
vocaris8-Dec-05 4:59
vocaris8-Dec-05 4:59 
GeneralRe: How to get list of message in OE or ms outlook Pin
Mekong River8-Dec-05 10:56
Mekong River8-Dec-05 10:56 
Questionmoving forms to the mouse pointer on desktop in vb6 Pin
Roy_Joseph6-Dec-05 20:03
Roy_Joseph6-Dec-05 20:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.