- This topic is empty.
-
AuthorPosts
-
December 19, 2002 at 4:15 pm #2630
Anonymous
MemberI have an application that loops through customers, and for each customer sends a fax. I am printing to a Winfax server.
The first send works fine, but the next send opens the message manager and the cover page is missing all of the information passed (the appropriate invoice pages due follow the corrupt cover page).
FYI – I’ve already downloaded and installed the revised quick cover page.
Here is the code I am working with:
ret = sendObj.ResetGeneralSettings
Do Until sendObj.IsReadyToPrint() <> 0
DoEvents
Loopret = sendObj.LeaveRunning
‘ret = sendObj.RemoveAllRecipients
ret = sendObj.SetResolution(1)
ret = sendObj.SetPreviewFax(0)
ret = sendObj.SetUseCover(1)
ret = sendObj.SetQuickCover(1)
ret = sendObj.SetCoverText(“Invoice Detail”)
ret = sendObj.SetNumber(fax_number)
ret = sendObj.SetTo(contact)
ret = sendObj.SetSubject(“Invoices for Current Month”)
ret = sendObj.AddRecipient
ret = sendObj.SetDeleteAfterSend(1)
ret = sendObj.ShowSendScreen(1)
ret = sendObj.SetPrintFromApp(1)
ret = sendObj.Send(0)
DoEventsnum = Printer.TextHeight(“V”)
Printer.PaintPicture LoadPicture(“ahaa_logo.blk.bmp”), 500, 300‘ PRINT INVOICES FOR THE CURRENT CUSTOMER
July 29, 2003 at 1:25 am #4441Anonymous
Memberdo you create/destroy the sendobject each time?
you will need to do this for every send -
AuthorPosts
- You must be logged in to reply to this topic.