Hello,

I have the following code and am working in Visual Studio 2013:

            ComponentSynchronizer Synchronizer = new ComponentSynchronizer();
            Synchronizer.DocumentViewer =                   (FineReaderVisualComponents.DocumentViewer)axDocumentViewer2.GetOcx();
            IEngineLoader loader = new FREngine.OutprocLoader();
            IEngine engine = loader.GetEngineObject("xxx");
            engine.ParentWindow = this.Handle.ToInt32();
            engine.ApplicationTitle = this.Text;

            document = engine.CreateFRDocumentFromImage(@"mypdf.pdf", null);

            Synchronizer.Document = document;
            //axDocumentViewer2.FRDocument = document;
            document.Close();

But both Synchronizer.Document = document; and axDocumentViewer2.FRDocument = document; cause a COMException in the dll AxInterop.FineReaderVisualComponents.

The details state "Access violation - no RTTI data!".

Best Regards

asked 09 May '16, 10:29

dns's gravatar image

dns
113

edited 09 May '16, 10:36


Please sorry for the delay with response.

It is impossible to use Visual Components together with the OutprocLoader object, as the components need to work with the Engine internal objects and in case of the OutprocLoader usage they will be in the separate processes. Please see the Developer's Help file > Guided Tour > Programming Aspects > Different Ways to Load the Engine Object for details.

link

answered 12 May '16, 12:21

Oksana%20Serdyuk's gravatar image

Oksana Serdyuk ♦♦
1.4k16

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×5
×4
×3
×2
×1

Asked: 09 May '16, 10:29

Seen: 2,104 times

Last updated: 12 May '16, 12:21

© 2016 ABBYY. All rights Reserved. www.ABBYY.com | Privacy Policy | Legal