I am trying to send a tiff file. I am not running from a web page. My code
is a winforms app running under the credentials of the currently logged on
user.
I have also tried the following Microsoft example code as is-running under
VB6. All I did was create a small text file c:\eriitemp\body.txt. Still
getting error 80070483, Operation Failed when executing the ConnectedSubmit.
Changing the body.txt file to a word doc changed the behavior slightly. Now
word visibly launched, them disappeared followed by the error 8007065E.
Can this be some sort of permissions problem?
The Microsoft Sample code:
Private Sub Form_Load()
Dim objFaxDocument As New FAXCOMEXLib.FaxDocument Dim objFaxServer As New
FAXCOMEXLib.FaxServer Dim objSender As FaxSender Dim JobID As Variant
'Error handling
On Error GoTo Error_Handler
'Connect to the fax server
objFaxServer.Connect ""
'Set the fax body
objFaxDocument.Body = "c:\ERIITemp\Body.txt"
'Name the document
objFaxDocument.DocumentName = "My First Fax"
'Set the fax priority
objFaxDocument.Priority = fptHIGH
'Add the recipient with the fax number 12225550100
objFaxDocument.Recipients.Add "12225550100", "Bud"
'Choose to attach the fax to the fax receipt
objFaxDocument.AttachFaxToReceipt = True
'Set the cover page type and the path to the cover page
objFaxDocument.CoverPageType = fcptSERVER objFaxDocument.CoverPage =
"generic"
'Provide the cover page note
objFaxDocument.Note = "Here is the info you requested"
'Provide the address for the fax receipt objFaxDocument.ReceiptAddress =
"(E-Mail Removed)"
'Set the receipt type to email
objFaxDocument.ReceiptType = frtMAIL
'Specify that the fax is to be sent at a particular time
objFaxDocument.ScheduleType = fstSPECIFIC_TIME 'CDate converts the time to
the Date data type objFaxDocument.ScheduleTime = CDate("4:35:47 PM")
objFaxDocument.Subject = "Today's fax"
'Set the sender properties.
objFaxDocument.Sender.Title = "Mr."
objFaxDocument.Sender.Name = "Bob"
objFaxDocument.Sender.City = "Cleveland Heights"
objFaxDocument.Sender.State = "Ohio"
objFaxDocument.Sender.Company = "Microsoft"
objFaxDocument.Sender.Country = "USA"
objFaxDocument.Sender.Email = "(E-Mail Removed)"
objFaxDocument.Sender.FaxNumber = "12165555554"
objFaxDocument.Sender.HomePhone = "12165555555"
objFaxDocument.Sender.OfficeLocation = "Downtown"
objFaxDocument.Sender.OfficePhone = "12165555553"
objFaxDocument.Sender.StreetAddress = "123 Main Street"
objFaxDocument.Sender.TSID = "Office fax machine"
objFaxDocument.Sender.ZipCode = "44118"
objFaxDocument.Sender.BillingCode = "23A54"
objFaxDocument.Sender.Department = "Accts Payable"
'Save sender information as default
objFaxDocument.Sender.SaveDefaultSender
'Submit the document to the connected fax server 'and get back the job ID.
JobID = objFaxDocument.ConnectedSubmit(objFaxServer)
MsgBox "The Job ID is :" & JobID(0)
Exit Sub
Error_Handler:
'Implement error handling at the end of your subroutine. This implementation
is for demonstration purposes
MsgBox "Error number: " & Hex(Err.Number) & ", " & Err.Description
End Sub
"Alex Feinman [MVP]" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> What kind of document are you trying to print?
> Is it an Office document? If so, there is a problem that is caused by
> Word/Excel trying to collect the initials from a user upon a first start.
If
> you are doing this for example from a web page, the process is running
under
> one of the special accounts (other then the current user) and the Office
> apps have not run in that profile yet. The solution is a registry patch. I
> could look it up if this is the problem you exprience
>
> "Andrew Schmidt" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > I am having trouble creating an automated fax client in .NET. I am
running
> > on XP professional. The faxing apparatus seems to be working fine when I
> > print to the fax driver from Word and other applications.
> >
> > As a first step in creating my app I have attempted to run the VB
example
> > found at
> >
>
http://msdn.microsoft.com/library/de...using_27co.asp.
> > When I load and run this example I receive the following error when
> > executing line
> > JobID = objFaxDocument.ConnectedSubmit(objFaxServer)
> >
> > 80070483, Operation Failed
> >
> > This error does not match any found on page
> >
> >
>
http://msdn.microsoft.com/library/de...using_9a2b.asp
> >
> > What does this error mean?
> > Is there a more complete list of errors than found at the above
location?
> >
> > Thanks
> > Andy
> >
> >
>
>