Incidencia #38007

Issue with Visio IVPage.DropMany() call

Abrir Fecha: 2018-03-05 22:05 Última actualización: 2018-03-08 02:36

Informador:
Propietario:
Tipo:
Estado:
Open [Owner assigned]
Componente:
(Ninguno)
Hito:
(Ninguno)
Prioridad:
5 - Medium
Gravedad:
5 - Medium
Resolución:
Accepted
Fichero:
Ninguno

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.

Ticket History (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
  • Resolución Update from Ninguno to Accepted
  • Propietario Update from (Ninguno) to sebastiandotnet
2018-03-07 04:44 Updated by: sebastiandotnet
Comentario

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

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

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
Comentario

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

*Sebastian

2018-03-08 02:36 Updated by: lafrank
Comentario

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

Thank you for reviewing.

Attachment File List

No attachments

Editar

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