This content has been marked as final. Show 4 replies
One thing i noticed that could cause the problem is that you would need to listern for EVENTID_FILEEVENT_ONSETFILE after calling setFile() to ensure the file is completed loading before calling printIt(). So in your code the button should call setFile() and you need another function to handle EVENTID_FILEEVENT_ONSETFILE (please see the sample VB application ship with the product - AxJVueAXControl1_onFileEvent function) and call printIt() from there.
Hope this help
One thing i noticed that could cause the problem is that you need to wait for the file completed loading before calling printIt(). You may look at the VB sample shipped with the product and search for function AxJVueAXControl1_onFileEvent that handles the ONSETFILE event. In your code the button should call setFile() and in an function handles ONSETFILE event and call printIt() from there.
Hope this help,
Hi and Thanks for the suggestion on looking for the ONSETFILE.
I've looked at the example and have a question whether I wait for the EVENTID_FILEEVENT_ONSETFILE or the EVENTID_FILEEVENT_ONSETTINGFILE.
It seems that EVENTID_FILEEVENT_ONSETTINGFILE is shown after the EVENTID_FILEEVENT_ONSETFILE when I output the debug.
do you have an extened example of a working sub heading? here is mine.
Private Sub avPrintDrawing_onFileEvent(ByVal sender As System.Object, ByVal e As AxJVueAXLib.IID_ISource_onFileEventEvent) Handles avPrintDrawing.onFileEvent