私は visio エクスポートを作成しており、カスタム行末を含む visio テンプレート ファイルを作成しています。コードを使用して設定しようとすると、機能しません。
//Create two shapes
final IVMaster lApp = stencilObj.masters("Application");
IVShape shapeFrom = pagObj.drop(lApp, 1, 1);
IVShape shapeTo = pagObj.drop(lApp, 2, 3);
//Connect the shapes
final IVMaster connMaster = stencilObj.masters("Connection");
IVShape connection = pagObj.drop(connMaster, 2, 3);
final IVCell gluefrom1 = connection.cells("BeginX");
final IVCell glueat1 = shapeFrom.cells("PinX");
gluefrom1.glueTo(glueat1);
final IVCell gluefrom2 = connection.cells("EndX");
final IVCell glueat2 = shapeTo.cells("PinX");
gluefrom2.glueTo(glueat2);
//Set arrow ending
connection.cellsU("EndArrow").formulaForceU(new Integer(46).toString());
したがって、visio には 45 の既定の行末があり、リストの 46 番目が私のものです。45 番を設定すると機能しますが、46 番は機能しません。接続を右クリックして Format->Line に移動すると、正しい行末が選択され、プレビューも正しくなります。ドキュメントでエンディングを更新するには、もう一度エンディングを選択して [適用] をクリックする必要があります。
Visio 2007 を使用しています