oipi4.1 print to text file (OpenInsight)
At 03 OCT 2001 02:37:07PM Jackie Jones wrote:
We downloaded and installed the oipipro and the part 2
as of 10/3/01 We're trying to print to a text file.
1. What is the syntax of the start32 command?
Instructions say to call the message start32 on the create
event of the entry screen to the application.
Is it: Stat=Set_printer("START32")
2. The init command to export to a text file.
DECLARE FUNCTION SET_PRINTER,GET_PRINTER
$INSERT OIPRINT_EQUATES
FILENAME=TEST PRINT':@VM:
:@VM:1:@VM:'C:\J3.rtf' STAT=SET_PRINTER("INIT",FILENAME,
,,
,0)FOR I=1 TO 10
TEXT=Line ':I
STAT=SET_PRINTER("TEXT",TEXT)
NEXT I
STAT=SET_PRINTER("TERM")
RETURN 1
That doesnt do anything.
We want to export reports to a text file so we can
include them as attachments to email.
Thanks for your help.
At 03 OCT 2001 05:44PM Matthew Crozier wrote:
Jackie,
The Stat=Set_printer("START32") syntax looks OK to me. Are you calling this somehow before your export program is run? and what is returned in Stat? Also, you seem to be exporting in RTF format - Will using the 'TEXTRTF' message instead of 'TEXT' make a difference?
M@
At 03 OCT 2001 10:11PM Jackie Jones wrote:
Thanks Matthew,
After I posted that I realized I hadn't checked for errors.
There is the error -5 with the start32 command,
and the error -5 with the init command,
so maybe I didn't install it correctly after all.
Thanks though for the feedback on the start32 syntax.
And I forgot about the TEXTRTF command. Of course mine
doesnt work yet because it didnt start right.
Did you get all this to work?
At 04 OCT 2001 03:58AM Oystein Reigem wrote:
Jackie,
-5 from START32 is because you haven't got OIPI Pro properly installed. Did you download it from the Works Downloads? For a very long time the OIPI Pro downloads page contained the old 16-bit version. You might need to download and install once more.
There has also been a problem with the license. If you get a message printed across each page you should contact Revelation () to get the correct LIC file.
- Oystein -
At 04 OCT 2001 11:47AM Jackie Jones wrote:
Oystein, it works. Thanks!!!!!!!
I cant believe it works. This is great.