C#Outlook VSTO条目类型

时间:2016-04-06 17:14:47

标签: c# visual-studio outlook vsto

我正在创建自己的自定义日记帐分录表单,我想要的其中一个是下拉菜单(如图中的那个),但它会自动填入条目类型列表(如果它存在)。是否有一些Outlook对象包含条目类型或这些类型的列表,我可以告诉下拉列表填充?

我查看了JournalItem API,但无法找到任何内容。不确定在哪里寻找这些。 https://msdn.microsoft.com/en-us/library/office/ff866277.aspx

enter image description here

1 个答案:

答案 0 :(得分:0)

使用<!DOCTYPE HTML> <html> <head> <script type="text/javascript"> window.onload = function () { var chart = new CanvasJS.Chart("chartContainer", { animationEnabled: true, legend: { cursor:"pointer", itemclick : function(e) { if (typeof (e.dataSeries.visible) === "undefined" || e.dataSeries.visible) { e.dataSeries.visible = false; } else { e.dataSeries.visible = true; } chart.render(); } }, axisY: { title: "Time" }, toolTip: { shared: true, content: function(e){ var str = ''; var total = 0 ; var str3; var str2 ; for (var i = 0; i < e.entries.length; i++){ var str1 = "<span style= 'color:"+e.entries[i].dataSeries.color + "'> " + e.entries[i].dataSeries.name + "</span>: <strong>"+ e.entries[i].dataPoint.y + "</strong> <br/>" ; total = e.entries[i].dataPoint.y + total; str = str.concat(str1); } str2 = "<span style = 'color:DodgerBlue; '><strong>"+e.entries[0].dataPoint.label + "</strong></span><br/>"; str3 = "<span style = 'color:Tomato '>Total: </span><strong>" + total + "</strong><br/>"; return (str2.concat(str)).concat(str3); } }, data: [ { type: "bar", showInLegend: true, name: "Black", color: "#000000", dataPoints: [ { y: 0.18, label: "Test"}, { y: 0.12, label: "Test 1"}, { y: 0.59, label: "Test 2"}, { y: 1.15, label: "Test 3"}, ] }, ] }); chart.render(); } </script> <script type="text/javascript" src="js/canvasjs.min.js"></script> <script type="text/javascript" src="js/chart.js"></script> </head> <body> <div id="bar" class="full-width"> <span>Results</span> </div> <br> <div id="chartContainer" style="height: 300px; width: 100%;"></div> </body> </html> 属性。可用条目列表是硬编码的。