I have been using VPE with Alaska Xbase for the last 5 years with very little problems. However, when I try the version 4.0 I am having some difficulty. The reason why I am interested in purchasing version 4.0 is the HTML export feature.
The 1st problem that I was having was that VPEWrite was locking up the system. Thus, I made a very short program to narrow down the problem.
hDoc := VpeOpenDoc(oDA:GetHWnd(),"Title")
// THe options were removed in try to eliminate those as problems
If hDoc = 0
<Error Message>
Break
EndIf
VpeWrite(hDoc,1000,1000,200,200,"Hello World")
VpeWrite(hDoc,1200,1200,200,200,"Hello World")
VpeLine(hDoc,1500,1500,200,200)
VpePrintDoc(hDoc)
VpeCloseDoc(hDoc)
dllfunction VpeOpenDoc(oParent,cHdg,nOptions) using stdcall from VPEp3240.dll
dllfunction VpeCloseDoc(hDoc) using stdcall from VPEp3240.dll
dllfunction VpePrintDoc(hDoc,lShwPrtDialog) using stdcall from VPEp3240.dll
dllfunction VpeWrite(hDoc,x1, y1, x2, y2, cField) using stdcall from VPEp3240.dll
Instead of resolving the problem, I am getting a different problem.
Now, instead of locking up the computer. the printer will print a blank (with demo banner) page. I have been able to get several of the other VPE fucntions to works (PageBreak, Preview & printer setup). I just cannt get anything to print. I am hoping that once I figure out the printing problem, I may be able to resolve the lock up problem.
I am using Windows XP. I have uninstalled 3.6 on the computer that I am testing the program.
Can you provide me with some guidance on what I should try to do in order to figure out my printing problem.
Thanks
Kevin