Olaf vd Sanden
16th January 2002, 18:39
Can someone help me to setup a new device in BaaN so that i can print to Outlook.
For your info:
I allready manage to setup a Word and Excel device
Thanks in advance
victor_cleto
17th January 2002, 12:35
From Baan solution 78886:
For BaanIVc, BaanB50b
Printing to email device.
How to set up email integration correctly?
Follow the next steps:
1. Using session "Device Data" (ttaad3500m000) create a new device, called EMAIL for example. Fill in:
Device Type: Rewrite File
4GL Program: ttstpconv
Argument: RTF: outlook.exe %s
Path: outlook.rtf
Page Length: 66
Notes: Take care that the PATH variable at the client computer is set correctly, in that way that the executable "outlook.exe" can be found. To test, make sure you are able to go to a DOS prompt and type outlook.exe <filename> from several different directories. It should bring up a new message window with your file attached.
Instead of RTF conversion, it is also possible to choose ASCII conversion.
The file outlook.rtf is created in %BSE% at the client pc
The following command is executed on the client pc (in this case): outlook.exe ${BSE}\outlook.rtf
So, in case the BSE path at the client pc = c:\Program Files\Baan, the command is:
outlook.exe c:\Program File\Baan\outlook.rtf
2. When printing, select device 'EMAIL'
3. Now, an email will be created, having a rtf file as attachment.
Marc S
8th May 2002, 15:51
Victor:
Three quick questions:
1. I set up an outlook device as you suggested and adjusted the path to include outlook. When I print to this device, the temp file is created no problem and no errors are reported, yet (whether Outlook is started or not) I get no new message. Am I missing something? In the MS Outlook documentation (I'm using 2000) it gives command line arguments of: outlook.exe /a "path/filename". In your device information, I don't see the "/a". Trying to add it caused an error for me.
2. Are you aware of a way to have the output not be a file, but the actual body of the outlook message? Since Outlook supports both RTF and HTML formats I would think it is possible. Any thoughts?
3. Are you aware of a way to specify the To: Address with this technique?
Thanks,
Marc
Marc S
8th May 2002, 16:56
Victor:
I did a little more looking, and it seems that the slash before the filename is the wrong one ("\" instead of "/"). Any way to switch that?
Thanks,
Marc
Hi Marc,
You can use the send message option and then click the recipients to fill in the TO, CC, BCC addresses.
I think that option might send the output as the body of the email instead of an attachment.
I cannot test that out now, because the email is not working in the BaaN-5.2, we have a case logged with BaaN.
I think you can do it with the Unix mailx command.
Another alternative is to make your own DLL, with the cmf functions to put the contents into the body of the email object.
The functions are available to use http://www.baanboard.com/programmers_manual_baanerp_help_emessage_connector_cmf_setattachmentbody
carice
10th July 2002, 09:29
Are you still looking for a solution to mail from baan?
I have a very nice solution ; if you're interested.
PV Ramone
19th July 2002, 00:11
Im interested as well.
Please tell me what I need to do to get your information.
NPRao
19th July 2002, 00:16
Hi Ramone,
Carise has posted her solution in the "Code and Utilities section" -
CODE: How to use MS OUTLOOK? (http://www.baanboard.com/baanboard/showthread.php?s=&threadid=5772)