We have been using the window-embedded VPE ActiveX control (OCX) in all of our Progress applications to
print reports. Now we have an application that will be server based and therefore, we need to be able to manipulate VPE data in a windowless environment. We are sending data/parameters to this application, doing the processing,
creating the report and then sending the report back to the client to be printed.
In our current implementation, using the window-embedded OCX, the server fails to run the OCX because it cannot run code within a window. We are hoping VPE has windowless coding method, an ActiveX Automation control (opposed to the OCX).
In doing some research, it looks like we need to use VpeOpenDoc() with the
VpeSetMsgCallback() to accomplish this goal. Is my assumption correct?
If so, is there any sample code for Progress showing how this is done? I saw the
example using C, but it is somewhat difficult for me to translate this to Progress
as I have only a limited knowledge of C. If you do not have an example in Progress, maybe a different language could be helpful. I have seen several references within VPE documentation to a ‘Progress’ directory with sample code; however, I cannot seem to locate this directory. Any way to get another copy of this directory or the code samples in this directory?
Also, if this is the correct method to use, do we continue to create our document using all the
other standard code for writing the lines (WRITE) and printing (PrintDoc) just like
we do when creating it using the OCX?
ANy guidence toward how to accomplish this swiftly and properly would be greatly
appreciated! Thanks in advance!