任务单 #38007

Issue with Visio IVPage.DropMany() call

开放日期: 2018-03-05 22:05 最后更新: 2018-03-08 02:36

报告人:
属主:
类型:
状态:
开启 [Owner assigned]
组件:
(无)
里程碑:
(无)
优先:
5 - Medium
严重性:
5 - Medium
处理结果:
Accepted
文件:

Details

I am using NetOffice v1.7.3 as a Nuget package in my c# application in order to perform Visio automation tasks.

The below example shows how I try to call an IVPage object's DropMany() method:

  1. double[] dropCoords = new double[] { 1, 2, 3, 4 };
  2. object[] dropMasters = new object[] { masterShape.ID, masterShape.ID };
  3. short[] droppedObjectIDs = new short[dropMasters.Length];
  4. page.DropMany(dropMasters, dropCoords, out droppedObjectIDs);

Executing the above code throws the below exception:

Exception has been thrown by the target of an invocation..Type mismatch. (Exception from HRESULT: 0x80020005 (DISP_E_TYPEMISMATCH)).

I am wondering if I am calling this method with the wrong parameters or is this a bug.

Thank you.

任务单历史 (3/6 Histories)

2018-03-05 22:05 Updated by: lafrank
  • New Ticket "Issue with Visio IVPage.DropMany() call" created
2018-03-07 04:34 Updated by: sebastiandotnet
  • Details Updated
  • 处理结果 Update from to Accepted
  • 属主 Update from (无) to sebastiandotnet
2018-03-07 04:44 Updated by: sebastiandotnet
评论

first of it all: the nuget feed isn't owned by netoffice officialy and seems to be the owner wont cooperate for updates. here is a supported feed: https://www.myget.org/feed/Packages/netofficefw-dev

for the topic:

to be honest, my visio skills are pretty poor. in order to reproduce the issue, can you attach a solution for testing? i want reproduce the problem in the interop assemblies then. (this is might be an out array issue, but i need to test this)

i want to wait publishing NetOffice 1.7.4.4 until we find out whats going on here.

thx *Sebastian

评论
(This comment has been deleted)
2018-03-07 05:27 Updated by: lafrank
评论

Thank you Sebastian, I will definitely create a small console app and post it. Shall I / can I post a zip file here ?

2018-03-07 18:28 Updated by: sebastiandotnet
评论

You can attach files here or just send to private.sebastian(*ätt*)web.de

*Sebastian

2018-03-08 02:36 Updated by: lafrank
评论

Sent the demo solution directly as I was unable to attach it here.

Thank you for reviewing.

Attachment File List

No attachments

编辑

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » 登录名