|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Acces Denied when calling FaxDocument SubmitI have a Windows 2003 SBS server. My client is Windows XP. I wrote this VB code in Access to send faxes using the FAXCOMEX library: Dim FS As New FAXCOMEXLib.FaxServer Dim FD As New FAXCOMEXLib.FaxDocument FS.Connect "MyServer" FD.Body = "C:\Temp\test.rtf" FD.CoverPageType = fcptNONE FD.DocumentName = "Test" FD.Priority = fptHIGH FD.Recipients.Add (faxNumber) FD.Submit("MyServer") I am getting an Access Denied error on the FD.Submit line. I have the fax printer installed on my machine and I can print anything I want to it and it faxes fine. When I installed the fax printer, I provided the user name and password I set up for it and I told it to remember the password. Any ideas? Thanks Neil Hello:
Looking at the event viewer on my client, I see this error in the System Log: Event Type: Error Event Source: DCOM Event Category: None Event ID: 10006 Date: 3/7/2006 Time: 11:36:05 AM User: S-1-5-21-4152425524-3637642697-492252981-1008 Computer: STATIONR Description: DCOM got error "Class not registered " from the computer Apollo when attempting to activate the server: {5A5AA0AA-1DEB-4683-96B0-B43301E83971} For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. When I search the registry for 5A5AA0AA-1DEB-4683-96B0-B43301E83971, I get a key that belongs to HPPortResolver. Could this be related to the problem? Neil wrote:
Show quoteHide quote > *Hello all: > > I have a Windows 2003 SBS server. My client is Windows XP. > > > I wrote this VB code in Access to send faxes using the FAXCOMEX > library: > > > Dim FS As New FAXCOMEXLib.FaxServer > Dim FD As New FAXCOMEXLib.FaxDocument > > > FS.Connect "MyServer" > FD.Body = "C:\Temp\test.rtf" > > > FD.CoverPageType = fcptNONE > > > FD.DocumentName = "Test" > FD.Priority = fptHIGH > > > FD.Recipients.Add (faxNumber) > > > FD.Submit("MyServer") > > > I am getting an Access Denied error on the FD.Submit line. > > > I have the fax printer installed on my machine and I can print > anything > > I want to it and it faxes fine. When I installed the fax printer, I > provided the user name and password I set up for it and I told it to > remember the password. > > > Any ideas? > > > Thanks > Neil * -- mauriziofaseli ------------------------------------------------------------------------ Posted via http://www.codecomments.com ------------------------------------------------------------------------ Hi
In this VB code Dim objFaxDocument As New FAXCOMEXLib.FaxDocument Dim objFaxServer As New FAXCOMEXLib.FaxServer Dim objSender As FaxSender Dim JobId As Variant objFaxServer.Connect "10.65.123.5" or JobId = objFaxDocument.Submit("10.65.123.5") I have this error The fax server API sersion does not support the requested operation Same ideas ? Thanks mfas***@sirio-is.it -- mauriziofaseli ------------------------------------------------------------------------ Posted via http://www.codecomments.com ------------------------------------------------------------------------ |
|||||||||||||||||||||||