Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

Insert Object (create from pdf file) fails (OleUIInsertObjectW fails with OLEUI_IOERR_SCODEHASERROR)

$
0
0

Problem:

I am unable to insert object (create from existing pdf file) in my x64 bit application. (even same could be reproduced using wordpad.exe)

 

Environment:

OS: Windows 7 Professional + SP1 (64-bit)

Acrobat X (32-bit installer)

 

 

Procedure:

Open Wordpad application, click on 'Insert Object', choose 'Create from File', Browse and Select exsting pdf file, click 'Display As Icon' and Click 'Ok'

 

Expexted Result:

PDF should get inserted as OLE object to wordpad

 

Actual Result:

Error message "Failed to create object. Make sure the application is entered in the system registry."

API function 'OleUIInsertObjectW' returns OLEUI_IOERR_SCODEHASERROR

 

Addition Notes:

I noticed that while insterting PDF (OLE object) it search for certain registry key (AutoConvertTo) which is not available hence it fails.

Could you please suggest how to decode return error code from 'sc' part of 'OLEUIINSERTOBJECTW' (while returning 'OLEUI_IOERR_SCODEHASERROR' from 'OleUIInsertObjectW'?


Mehul



Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>