Page 1 of 1

Exception on C6.3 app inside C8

Posted: Fri Jul 04, 2014 4:05 am
by Tony York
Hi All,

I have a strange problem. It is affecting ALL windows with the AX viewer. The application compiles Ok, but when I run the program and open any window with the AX Viewer it crashes.

It crashes at the same line of code every time. When I run it through the debugger, when I step to the last line shown below. It crashes. It is the same line in each procedure. When the cursor is on the END line and I press to see the next line executed (the PDFView:Rtn LONG) it crashes.

PDFView CLASS(PDFXCViewClass) ! *** Added by PDF-XChange Viewer ActiveX v3.6
OnPropertyChanged PROCEDURE(*CSTRING aPropName, LONG Flags),DERIVED ! *** Added by PDF-XChange Viewer ActiveX v3.6
OnDisplayPrompt PROCEDURE(*CSTRING aPropName, LONG Flags),DERIVED ! *** Added by PDF-XChange Viewer ActiveX v3.6
END ! *** Added by PDF-XChange Viewer ActiveX v3.6
PDFView:rtn LONG ! *** Added by PDF-XChange Viewer ActiveX v3.6

Any idea what could be causing this? I am running c6.3 through C8 IDE for this app. Until SV can fix the C9.1 issue, I cannot progress to that version.

Thanks

Tony

Re: Exception on C6.3 app inside C8

Posted: Fri Jul 04, 2014 10:26 am
by Tracker Supp-Stefan
Hi Tony,

Are you sure it is version 3.6 of the Viewer AX? As the latest build we have is 2.5.308.2:
http://tracker-software.com/product/pdf ... ctivex-sdk

I have passed this to Craig and he will try to follow up here as soon as possible as well.

Regards,
Stefan

Re: Exception on C6.3 app inside C8

Posted: Fri Jul 04, 2014 2:42 pm
by Tony York
Hi Stephan,

That's what the template says for the procedure extension that sets the AX Viewer to the Region Control.

Have I downloaded something I should not have?

I did have a registry file disappear, so I had to rebuild it, but I though I added all tpl files. I did not change any templates in the application, so maybe it has accepted v3.6 as the one to use, and not v2.5.

Should I be deleting the v3.6 templates?

Thanks

Tony

Re: Exception on C6.3 app inside C8

Posted: Fri Jul 04, 2014 7:31 pm
by Tracker - Clarion Support
Hi Tony!

Let me have a day or two to check this out.

It would be helpful if you could email me the generated CLW file containing the code that you copied into your message.

Thanks! :)

Re: Exception on C6.3 app inside C8

Posted: Fri Jul 04, 2014 10:21 pm
by Tony York
Hi Craig,

Good to see you are back once again.

Attached is one of the clw files that contains the quoted code.

See ya

Tony

Re: Exception on C6.3 app inside C8

Posted: Sat Jul 05, 2014 1:42 am
by Tracker - Clarion Support
Thanks, Tony! :D

Re: Exception on C6.3 app inside C8

Posted: Sat Jul 05, 2014 6:25 pm
by Tracker - Clarion Support
Hi Tony!

Looks like you have the really old version of the Viewer templates.

Look for PDF-XChange ActiveX Viewer v2.0 Global Extension which is the one you want to use.

Incidentally, we now recommend that you populate an OLE control and use that instead of a REGION.

Re: Exception on C6.3 app inside C8

Posted: Sun Jul 06, 2014 12:00 am
by Tony York
Thanks Craig,

For some strange reason the tpl file for v2 AX was not automatically added to the registry when I had to add all of the templates back after that problem a week or two ago when the template registry got wiped. I just added it again, and the procedures are accessible, but they have caused another couple of problems.

Noyantis command bars now have no background colour (well just black), and the resize of some controls has also gone.

Sigh......back to the drawing board

Tony

Re: Exception on C6.3 app inside C8

Posted: Mon Jul 14, 2014 8:38 pm
by Tracker - Clarion Support
Hi Tony!

Have you gotten that Noyantis problem solved?

We've never had problems with our software and Noyantis before but other strange things have happened now and then. :)

Re: Exception on C6.3 app inside C8

Posted: Mon Jul 14, 2014 10:35 pm
by Tony York
Hi Craig,

Yes, the command bars rectified themselves, but I cannot remember what it was (if anything) I did that may have helped. The resize issue is being looked at by Andy, and he thinks he has found the issue but I have to wait for his next release of the report controls to find out for sure.

Thanks

Tony

Re: Exception on C6.3 app inside C8

Posted: Mon Jul 14, 2014 10:40 pm
by Tracker - Clarion Support
Hi Tony!

Glad it's working out for you!

If you have any other Tracker issues please don't hesitate to post them here.

Re: Exception on C6.3 app inside C8

Posted: Mon Jul 14, 2014 11:40 pm
by Tony York
Thanks Craig,

I only have one other thing, and that is a method call for the scanning functions to replace having to use the button.

I have been waiting a while :wink:

See ya

Tony

Re: Exception on C6.3 app inside C8

Posted: Tue Jul 15, 2014 12:13 am
by Tracker - Clarion Support
Hi Tony!

We don't have full support for scanning from the Viewer ActiveX, but you can use this command to trigger the scanner:

Code: Select all

ExecuteCommandID(36462[, 0])
If you specify the second parameter ([, 0]) then you should see the scanner dialog; omit it for NO dialog.

Re: Exception on C6.3 app inside C8

Posted: Tue Jul 15, 2014 12:52 am
by Tony York
Hi Craig,

I am getting a no matching procedure on this.

Just how do I implement this method.

Thanks

Tony

Re: Exception on C6.3 app inside C8

Posted: Tue Jul 15, 2014 1:13 am
by Tracker - Clarion Support
Hi Tony!

You need to precede it with "PDFView:rtn = PDFView."

This is based on what you sent me in scanmgr002.clw.

Also your two options are:

Code: Select all

PDFView:rtn = PDFView.ExecuteCommandID(36462)

Code: Select all

PDFView:rtn = PDFView.ExecuteCommandID(36462, 0)

Re: Exception on C6.3 app inside C8

Posted: Tue Jul 15, 2014 1:18 am
by Tony York
Stupid me. I took the [ ] brackets literally

Now to try again

See ya

Tony

Re: Exception on C6.3 app inside C8

Posted: Tue Jul 15, 2014 1:22 am
by Tony York
Works a treat, now I can get rid of the button on the AX toolbar and put it up into the Noyantis Command Bar Ribbon.

Thanks a million

Tony

Re: Exception on C6.3 app inside C8

Posted: Tue Jul 15, 2014 4:02 am
by Tracker - Clarion Support
Hi Tony!

Grats on getting it to work! :D

Re: Exception on C6.3 app inside C8

Posted: Tue Jul 15, 2014 4:20 am
by Tony York
One last thing I just stumbled across. How do I add the language files for OCR. I added a sub folder called ocrdats and included the two english files, but it does not show the primary language in the OCR window.

So what do I have to do to get that window to show the english language in the drop down list (presently empty)

Thanks

Tony

Re: Exception on C6.3 app inside C8

Posted: Fri Jul 18, 2014 5:40 pm
by Tracker - Clarion Support
Hi Tony!

As this is essentially a new topic, let's continue in this thread:

http://www.tracker-software.com/forum3/ ... 38&t=22086

Re: Exception on C6.3 app inside C8

Posted: Fri Jul 18, 2014 10:09 pm
by Tony York
Hi Craig,

Yep..that's why I started it :D

Re: Exception on C6.3 app inside C8

Posted: Fri Jul 18, 2014 10:32 pm
by Tracker - Clarion Support
Hi Tony!

Just posted an answer there. :)