Thanks John,
I tried using the New keyword and I got an error saying that I had the wrong number of arguments so I tried adding an argument which needed to be of type System.IO.TextWriter
So I tried declaring a Textwriter and got more trouble:-
Dim wrtrText As New System.IO.TextWriter()
Dim...
I am trying to dynamically change properties on an Image and then render the image to the browser. RenderControl looks like it would do the trick but I can't figure out how to use the HTMLTextWriter.
If possible, I would also like perform some functionality like Response.Write but this doesn't...
I am not sure what problems you are encountering but the DatePicker must be using the Date subtype as its value which means that no matter what the date "looks like" to the user, the date can be handled in the code correctly. There are a number of functions that can be used to...
Thanks Sandy, the code that you have written is helpful in understanding the email object a bit more. However, we needed the same address to be seen in the user's inbox and the SendOnBehalfOfName property works perfectly for this irrespective of who uses the application. The ReplyRecipients...
From what I understand, you can't send an email in this manner. You need permission to send an email from the address supplied. For example, I have permission for the inbox/account of it@company.com although my personal email account is si@company.com. That's how my code manages to work in this...
Thanks for the help guys. Turns out that there is an easy way of doing what I was after.
The actually code I needed was:-
objMail.SentOnBehalfOfName = <from address>
Now when the MailItem is viewed, the From address is filled in.
Security to check whether the user can send email as somebody...
Hi
I have some reports that I have created that I would like to use a trusted connection to refresh the data. I am using the CRViewer on a webpage.
Is there a way of allowing a trusted connection without a password prompt?
The report needs to be secure so passing passwords as parameters in...
I have tried this code and it it seems to be ok until an attempt is made to send the email. This is the error I got:-
-834207657 Could not complete the operation. One or more parameter values are not valid.
The above error occurred both when I used the Send method as well as when using the...
Hi
I have created an email from a VB project that works fine apart from one thing. I want to be able to change the address that the email is sent from.
You can do this is Outlook manually but I want to do it in code.
How can this be done?
Thanks
SiFitz [afro]
I have got the code to work on a number of different machines so it appears that the class is registered. The problem is down to user profiles. It works for my user profile but nobody else's.
The EXE file has full permission for everybody to use it and the keys in the registry allow full...
Thanks, but that was not what I was looking for. I have managed to perform the task I was after, but it probably isn't as efficient as if I was able to perform an immediate filter rather than test the full folder for matches in my code.
Si [afro]
...criteria. I have a large amount of files and a number of criteria to meet.
The first criteria I have is a filename filter. In VB you can use the Dir Function with a filter string. e.g. *.gif for all GIF files. Is there a method like this within the FileSystemObject?
Thanks,
Si Fitz [afro]
Hi,
I have a custom made ActiveX EXE placed on the server that I call from client machines.
I can get a class to work fine for me (that is on any PC that I am logged into), but for any other user profiles, it fails.
Can anybody tell me where I may be going wrong?
Thanks,
Si
Further...
I have checked versions of the application and DLL version and they are fine.
The application has been working with the same DLL since it was created regardless of the version of the application. The DLL was created before the application so that hasn't been a problem. Until now, both...
I am going to have a look at the typelib but I am not able to at the minute. Selfish user needs the PC...
As for testing the project without binary compatibility, I have tried it (I ran the DLL in Debug mode with no compatibility and referenced this DLL from the EXE code) and it works fine.
I...
Thanks for the reply,
I have gone though the registry and I have checked for any reference to the DLL name, class name and CLSIDs. It all seems OK.
What I wanted to do was step through the DLL project code on the problem pc from main EXE project code. My project has binary compatibility but...
I have a DLL I have created in VB and my application calls classes from this DLL. I have installed the application and DLL on all client machines and all have been fine except one. This machine does not have conflicting versions of the DLL. Also, I haven't change the project from an ActiveX Exe...
I would like to send email automatically and wonder how I can do it best.
Attempt 1
I have tried using the MAPIMessages Control but I really want to get rid of the prompt telling the user "A program is trying to send email...". Even setting MAPIMessages.Action = 3 (from...
Thanks Mark but I can't get this to work. It looks such a simple solution so I am hoping that I have just made a silly mistake.
I want to use CDONTS.NewMail on the server so I have created a Key on the server in the following location:-...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.