Printing from a Form (OpenInsight Specific)
At 03 AUG 1998 09:26:52PM Kelly wrote:
I have a menu calling a screen to display customer details.
A button calls a program to print customer details.
When I return to the customer screen it is 'frozen'. However, I can shutdown the menu.
The basic code has been based on the on-line help:
hwnd=Get_property(@window, 'HANDLE')
stat=Print_init(0, 'Customer Details', hwnd)
status=Print_SetFont(FontStruct)
Printer On
line=Customer Details:'
status=Print_Text(line)
Printer Off
status=Print_End()
Any suggestions?
What is the relationship between Printer On/Off and Print_Init/End?
At 03 AUG 1998 11:14PM Aaron Kaplan wrote:
I'm a bit shaky on this, but I don't think you need either the Printer On or Printer Off in this situation.
At 04 AUG 1998 02:39AM Kelly wrote:
Aaron,
I tried leaving off Printer On/Off and didnt get a report.
Similarly tried removing Print_Init/End with the same result.
At 06 AUG 1998 01:05PM Mike Ruane, WinWin Solutions Inc. wrote:
Kelly-
Remove the printer on/off messages, and don't get the handle of the window to pass to the Print_Init function.
We've had plenty of trouble with the handle, such as locking, and don't send it anymore.
Hope it helps-
Mike