Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


Using DDE commands to launch WinFax from within FileMaker Pro

Keywords: FileMaker Pro WinFax DDE 

Question:

I am trying to automate faxing with Filemaker Pro. What happens is when I execute the print command from FileMaker Pro, the "Delrina WinFax PRO Send" window opens, and the script halts until I cancel the script comand. Any idea why this is happening?

Answer:

In DDEPoke string below, note mixing of single and double quotes.
     ---------------------------------------------------------------
 ;This script is launched from FileMaker Pro, after
 ;launching the Print command (Print current record to WInFax)
 

 ;This consists of text copied from FileMaker Pro:
 ;DDEPoke(channel,'sendfax','recipient("111-1111",       
 ;"","","Barney Rubble","BRR","Fred Flintstone",              
 ;"Pebbles","Our Place")') 
					     
 FaxDest = ClipGet() 
 
 channel = DDEInitiate ("faxmng32","TRANSMIT")
 If channel != 0
	 result = %FaxDest%    ;;;;;;the percent signs are necessary here;;;;;;;;;;
	 DDETerminate(channel)
	 If result == @FALSE
		 Message("DDE Execute Failed",result)
	 else
		 Message("DDE Execute Operation complete",result)   
		 Exit
	 endif
 else
	 Message("DDE operation unsuccesful", "Check your syntax")
 endif
 
 WinActivate("FileMaker Pro")
 Sendkey("^{enter}")

Article ID:   W13010
Filename:   Using DDE commands for WinFax.txt