I've never tried it with VB6 & Outlook but I would suspect it to be something like:
Unregister the compiled dll, close Outlook, start vb6 app in debug mode, re-open Outlook, register the running vb6 app as an add-in and you should then be able to debug.
Presumably someone will be able to tell...
Ok, the line that is giving the problem is the 3rd line:
"WshNetwork.AddWi................4730_Black".
Check that you have the name of the printer spelt correctly, and that you have permissions to access the server where the printers are stored.
If this is all fine try adding "On Error Resume...
Hi Richard
Have you considered writing the info to a temp text file? This would give you control over the number of times you can print it, and also some (very) basic formatting options (spaces, tabs etc)? You can then delete it at the end if required.
As for the listview I'm afraid I don't...
Hi TopJack
One thing I found when using API's to set printer properties is that you need a Sys Admin who is willing to share the Printer Server to the Everyone security group, otherwise permissions will cripple all attempts to get anything to work :((
On the upside I use API's to do what you...
Hi dgillz
Outlook is a bit of a pain to code in but what you will have to do is to create a wrapper for Explorer & Inspector events, create a WithEvents Variable e.g. "Private WithEvents aContact As Outlook.ContactItem" and you should be able to access the events that way. By the sounds of it...
Maybe something like passing the machine name as an argument to a remote script/exe as it logs off? Hadn't considered it but it seems a good angle. I'll have a look into it, unless anyone can think of any cons to this approach or something else?
Thanks very much.
Asjeff
Hi Oscarse
This is a little documented pain in the proverbial. What you need to do is in MS Word go Tools|Language|Set Language. When the dialog box appears make sure that English(UK) is at the top of the list & then uncheck the "Detect Language Automatically" tickbox. This should then default...
Hi all
wondering if someone can give me some pointers. I am looking to write a script that will automatically shut down a remote pc after it has been logged off for a set amount of time (eg half an hour). Now I am presuming that I will have to install this on something like the domain...
Hi JP
You want to post this in the VBA forum, and forget about wordbasic - that was superceeded by vba. Wordbasic still works (sort of) but VBA is so much easier.
A quick note about your module name - your Module wants to be called AutoExec, Not Auto, and the sub called Main eg Sub Main()...
Hmmm - thanks macleod - now you've pointed it out I think you're right. Still, if he ever figures it out at least he'll have a way to communicate with them all!
I suspect you're right about checking the API's. If I had to guess I would start by checking the OpenSCManager API or something like...
Hi jkDiener
I attach some code that I have modified from a program I use to help you. I can't claim all the credit for this as I found this on the web and have adapted this for my own needs.
What you will need is a form module and a standard module.
Create a new form and call it frmNetSend. On...
I believe I heard it said once that this was often caused by the DLL being a self-registering dll, although I never followed up on it. Is your dll likely to be a self-register? I think that you might find as well that although you get that message in some instances it still works fine.
If...
Hi Bob
I've never done it, but I would start by firstly looking at using VBA code & referencing MAPI objects to see if I could get to it that way, or if you have Active Directory there are plenty of VBS script examples out there on retrieving information such as email addresses from AD. However...
Hi Lopko
I suspect, but can't be certain, that the MS Office spreadsheet control is not loaded on the XP computer which might be a reason why you are having this problem. What version of Office does the XP computer run? I would try copying the control from your good computer & registering it on...
Have you tried opening the Setup.lst file and amending the path relevant to your entries manually? They should be visible under either the [Bootstrap Files] section or the [Setup Files] section. Of course I recommend taking a copy of this file before you attempt to amend it, just in case.
Asjeff
hmmm - i'm guessing you're going to be quite busy!! Sorry Greg - there will be ways of keeping the code more concise than the example above, but until you start it they probably wont be obvious, and I can't help you there.
Asjeff
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.