HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [hylafax-users] sambafax to many users



A VBA Script (or whatever is appropriate for you mail merge source. This
example is for MS Word) that does something like this:

Sub FaxMailMerge(pagesPerFax As Integer)
    Dim i, numPages As Integer
    numPages = ActiveDocument.Content.Information(wdActiveEndPageNumber)
      
    While i <= numPages
        ActiveDocument.ActiveWindow.PrintOut _
            Range:=wdPrintFromTo, From:=Str(i), to:=Str(i + pagesPerFax
- 1)
        i = i + pagesPerFax
    Wend
End Sub

More (or any :) error checking, selection of fax printer, and selection
of number of pages per fax would be good ideas to build on.

-- chris@cencoinsurance.com 


____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null




Project hosted by iFAX Solutions