Exception on C6.3 app inside C8

PDF-XChange Viewer SDK
Simple DLL and ActiveX

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Chris - Tracker Supp, Tracker Supp-Stefan

Post Reply
Tony York
User
Posts: 43
Joined: Thu Apr 17, 2008 6:33 am

Exception on C6.3 app inside C8

Post by Tony York » Fri Jul 04, 2014 4:05 am

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

User avatar
Tracker Supp-Stefan
Site Admin
Posts: 13557
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Exception on C6.3 app inside C8

Post by Tracker Supp-Stefan » Fri Jul 04, 2014 10:26 am

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

Tony York
User
Posts: 43
Joined: Thu Apr 17, 2008 6:33 am

Re: Exception on C6.3 app inside C8

Post by Tony York » Fri Jul 04, 2014 2:42 pm

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

Tracker - Clarion Support
Site Admin
Posts: 1412
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: Exception on C6.3 app inside C8

Post by Tracker - Clarion Support » Fri Jul 04, 2014 7:31 pm

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! :)
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

Tony York
User
Posts: 43
Joined: Thu Apr 17, 2008 6:33 am

Re: Exception on C6.3 app inside C8

Post by Tony York » Fri Jul 04, 2014 10:21 pm

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
Attachments
scanmgr002.zip
(12.34 KiB) Downloaded 118 times

Tracker - Clarion Support
Site Admin
Posts: 1412
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: Exception on C6.3 app inside C8

Post by Tracker - Clarion Support » Sat Jul 05, 2014 1:42 am

Thanks, Tony! :D
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

Tracker - Clarion Support
Site Admin
Posts: 1412
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: Exception on C6.3 app inside C8

Post by Tracker - Clarion Support » Sat Jul 05, 2014 6:25 pm

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.
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

Tony York
User
Posts: 43
Joined: Thu Apr 17, 2008 6:33 am

Re: Exception on C6.3 app inside C8

Post by Tony York » Sun Jul 06, 2014 12:00 am

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

Tracker - Clarion Support
Site Admin
Posts: 1412
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: Exception on C6.3 app inside C8

Post by Tracker - Clarion Support » Mon Jul 14, 2014 8:38 pm

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. :)
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

Tony York
User
Posts: 43
Joined: Thu Apr 17, 2008 6:33 am

Re: Exception on C6.3 app inside C8

Post by Tony York » Mon Jul 14, 2014 10:35 pm

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

Tracker - Clarion Support
Site Admin
Posts: 1412
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: Exception on C6.3 app inside C8

Post by Tracker - Clarion Support » Mon Jul 14, 2014 10:40 pm

Hi Tony!

Glad it's working out for you!

If you have any other Tracker issues please don't hesitate to post them here.
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

Tony York
User
Posts: 43
Joined: Thu Apr 17, 2008 6:33 am

Re: Exception on C6.3 app inside C8

Post by Tony York » Mon Jul 14, 2014 11:40 pm

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

Tracker - Clarion Support
Site Admin
Posts: 1412
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: Exception on C6.3 app inside C8

Post by Tracker - Clarion Support » Tue Jul 15, 2014 12:13 am

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.
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

Tony York
User
Posts: 43
Joined: Thu Apr 17, 2008 6:33 am

Re: Exception on C6.3 app inside C8

Post by Tony York » Tue Jul 15, 2014 12:52 am

Hi Craig,

I am getting a no matching procedure on this.

Just how do I implement this method.

Thanks

Tony

Tracker - Clarion Support
Site Admin
Posts: 1412
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: Exception on C6.3 app inside C8

Post by Tracker - Clarion Support » Tue Jul 15, 2014 1:13 am

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)
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

Tony York
User
Posts: 43
Joined: Thu Apr 17, 2008 6:33 am

Re: Exception on C6.3 app inside C8

Post by Tony York » Tue Jul 15, 2014 1:18 am

Stupid me. I took the [ ] brackets literally

Now to try again

See ya

Tony

Tony York
User
Posts: 43
Joined: Thu Apr 17, 2008 6:33 am

Re: Exception on C6.3 app inside C8

Post by Tony York » Tue Jul 15, 2014 1:22 am

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

Tracker - Clarion Support
Site Admin
Posts: 1412
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: Exception on C6.3 app inside C8

Post by Tracker - Clarion Support » Tue Jul 15, 2014 4:02 am

Hi Tony!

Grats on getting it to work! :D
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

Tony York
User
Posts: 43
Joined: Thu Apr 17, 2008 6:33 am

Re: Exception on C6.3 app inside C8

Post by Tony York » Tue Jul 15, 2014 4:20 am

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

Tracker - Clarion Support
Site Admin
Posts: 1412
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: Exception on C6.3 app inside C8

Post by Tracker - Clarion Support » Fri Jul 18, 2014 5:40 pm

Hi Tony!

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

http://www.tracker-software.com/forum3/ ... 38&t=22086
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

Tony York
User
Posts: 43
Joined: Thu Apr 17, 2008 6:33 am

Re: Exception on C6.3 app inside C8

Post by Tony York » Fri Jul 18, 2014 10:09 pm

Hi Craig,

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

Tracker - Clarion Support
Site Admin
Posts: 1412
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: Exception on C6.3 app inside C8

Post by Tracker - Clarion Support » Fri Jul 18, 2014 10:32 pm

Hi Tony!

Just posted an answer there. :)
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

Post Reply