Help to resolve Unexpected end of file comes with get_Cells method

  • Thread starter shailendrasingh823
  • Start date
S

shailendrasingh823

Hi There,

I am trying to drop shapes on page randomly & after connected
them.Please see this link which I am trying to follow. just try to
implement this if u r getting same problem.


http://msdn2.microsoft.com/en-us/library/aa722522.aspx
Here the code line


int databaseKeyValue =
newShape.get_Cells(_VisioPropCellPrefix +
_IDColumn).get_ResultInt((short)Visio.VisUnitCodes.visNumber, 0);


in addItemsToDrawing Function


I am getting Unexpected end of file error.


I have added method public static void ReadANamedCustomProperty(
Microsoft.Office.Interop.Visio.Shape customPropertyShape,
string cellName, bool isLocalName)

which used to check existing of CELL.


but it's showing me customPropertShape is null not found



Can anybody try the same example if u can because today another new
message is coming ,"The Server threw an exception (Exception from
HResult:0X80010105(RPC_E_SERVERFAULT).It will not get much time just
u
have to add Microsoft.Office.Interop.Visio Refference . & use the
same
code.


When I try to get the array of shape IDs from the method


Array dataRowIDs = itemsRecordset.GetDataRowIDs(string.Empty); in
addShapesToDrawing function so it's giving me 1,2,3,4,5 But in Items
table ID has 2,3,4,5,6 just same like microsoft example.I think Some
problem is there .


if anybody can tell me how to read the DATARECORDSETS value,





Can anybody help me out for this.


Shail
 
J

JuneTheSecond

One of the step to prevent the end of file error might be to replace the line
private const string _VisioPropCellPrefix = "Prop.";
with the new line
private const string _VisioPropCellPrefix = "Prop._VisDM_";
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top