PDA

View Full Version : Printing to 3rd party Fax printer driver


Unregistered
October 25, 2002, 23:36:43
I'm using TxText v9.0 sp5 to print to a 3rd party fax printer driver, FaxMan (http://www.data-tech.com), and all the header/footer information gets lost once the document is sent through their printer driver.

This isn't really an error with TxText or with Faxman as I've been able to print to a variety of printer drivers, including WinFax, with TxText successfully and I've been able to send documents to Faxman with other applications. But I really need to get these two applications to work together.

I've contacted Faxman help and they gave me the rather useless tidbit below. I've also tried printing to Faxman after saving the document and reloading into TxText in a variety of formats: Word, RTF, and Txtext format.

Can you guys give me any insight into what might be the problem? Thanks.

Faxman Help answer:

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
"When using Word 97, Word 2000 and possibly earlier versions of Word to print to the FaxMan Win 95 printer driver, tables and grids are printed incorrectly. The text is improperly located or placed. This is due to the way Word lays out the text and tables.

To fix this behavior in Word:

1. Select the Options option on the Tools menu. The option dialog appears.
2. Click the Compatibility tab.
3. Select the 'Use Printer Metrics to Lay Out Document' option.
4. Click OK

Tables and grids will now print properly in Word.

Word XP does not seem to be troubled by this issue and works fine without changing this setting."


This message was originally posted by Cathy Boland in the old TX Text Control Support Forum.

Unregistered
October 28, 2002, 16:24:10
We print to FaxMan Jr without problem. We do note that the TX.ViewMode must be either page or Page ext. In draft mode, the h/f's don't print.


This message was originally posted by Vann Joe in the old TX Text Control Support Forum.

Unregistered
October 29, 2002, 01:58:04
Yes, that is helpful. However, I'm still having problems. The .ViewMode must be set to Page or PageExt during runtime, not design time, which is not a problem.

But what is a problem is that to get the headers and footers to print correctly to the FaxMan printer, I have to load a document with headers and footers set THREE times into the TxText control. Yes, this is weird (I have spent all afternoon playing with this so I know I'm not losing my mind). The first fax will have no headers/footers, the second one has the header not positioned correctly (too far to the left), the third time faxes/prints perfectly. Loading another document into the control that does not have headers or footers will force the process to been done all over again to get the correct print/fax.

I just can't figure out what settings I need to correct on the TxText control so that I don't have to load the document 3 times to get the desired results.

I'm loading the document with the following code:


Private Sub LoadFile(strFileName As String)
'load the fax txText control with the word document
If Len(txTextFaxDoc.Text) > 0 Then
txTextFaxDoc.ResetContents
End If

txTextFaxDoc.ViewMode = 2
txTextFaxDoc.Load strFileName, 0, 9, False
txTextFaxDoc.Refresh

End Sub

I've also tried to turn on the headers/footers manually with this line after the load command:

txTextFaxDoc.HeaderFooter = txTextFaxDoc.HeaderFooter + txHeader + txFooter + txFirstHeader + txFirstFooter

All that does is completely supress the header/footer output to the Faxman printer driver.
I also tried the same line before the load command with the same results.

I'm printing with the following code:

wPages = txTextFaxDoc.CurrentPages
For iPage = 1 To wPages
Printer.Print
txTextFaxDoc.PrintDevice = Printer.hDC
txTextFaxDoc.PrintPage iPage
Printer.NewPage
Next iPage

Printer.EndDoc

Please help!


This message was originally posted by Cathy Boland in the old TX Text Control Support Forum.

Unregistered
October 31, 2002, 17:20:02
Hi Cathy,

With a non-visible TX form, you've gotta perform actions that with a visible TX form TX itself takes care of. I've put into ALL CAPS commands I think you need:

Private Sub LoadFile(strFileName As String)
'load the fax txText control with the word document
If Len(txTextFaxDoc.Text) > 0 Then
txTextFaxDoc.ResetContents
TXTEXTFAXDDOC.HEADERFOOTER = 0
End If

txTextFaxDoc.ViewMode = 2
txTextFaxDoc.Load strFileName, 0, 9, False

IF TXFAXDOC.HEADERFOOTER AND 2 THEN
TXFAXDOC.HEADERFOOTERACTIVATE (TXFIRSTHEADER)
TXFAXDOC.HEADERFOOTERACTIVATE (TXMAINTEXT)
END IF

IF TXFAXDOC.HEADERFOOTER AND 1 THEN
TXFAXDOC.HEADERFOOTERACTIVATE (TXHEADER)
TXFAXDOC.HEADERFOOTERACTIVATE (TXMAINTEXT)
END IF

IF TXFAXDOC.HEADERFOOTER AND 8 THEN
TXFAXDOC.HEADERFOOTERACTIVATE (TXFIRSTFOOTER)
TXFAXDOC.HEADERFOOTERACTIVATE (TXMAINTEXT)
END IF

IF TXFAXDOC.HEADERFOOTER AND 4 THEN
TXFAXDOC.HEADERFOOTERACTIVATE (TXFOOTER)
TXFAXDOC.HEADERFOOTERACTIVATE (TXMAINTEXT)
END IF

DOEVENTS

txTextFaxDoc.Refresh

End Sub

ALSO, this line won't give you the desired results:
txTextFaxDoc.HeaderFooter = txTextFaxDoc.HeaderFooter + txHeader + txFooter + txFirstHeader + txFirstFooter

You would need:
txTextFaxDoc.HeaderFooter = txHeader + txFooter + txFirstHeader + txFirstFooter


This message was originally posted by Vann Joe in the old TX Text Control Support Forum.