我的.rdl报告中具有此功能,
Public Function GetBarcodeAddress(datastring As String, serverName As String) as String
GetBarcodeAddress=String.format("http://serverName/barcode/barcode.ashx?data={0}", datastring )
End Function
最初它是“ localhost”,但是我想根据要根据服务器名在服务器名中传递的值来使其动态化
Public Function GetBarcodeAddress(datastring As String) as String
GetBarcodeAddress=String.format("http://localhost/barcode/barcode.ashx?data={0}", datastring )
End Function
但是当我更新报告时,没有生成条形码。
但是我手动运行URI可以,但是在实际报告中没有生成条形码。
我是否只需要在域名部分输入变量名?
答案 0 :(得分:1)
要使其正常工作,您需要:
<script type="text/javascript">
google.charts.load('current', {'packages':['corechart']});
google.charts.setOnLoadCallback(drawVisualization);
function drawVisualization() {
google.charts.load("current", {packages:['corechart']});
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
[ 'Element', "Density", { role: "style" } ],
${data1}
]);
var view = new google.visualization.DataView(data);
view.setColumns([0, 1,
{ calc: "stringify",
sourceColumn: 1,
type: "string",
role: "annotation" },
2]);
var options = {
title: "Density of Precious Metals, in g/cm^3",
width: 600,
height: 400,
bar: {groupWidth: "95%"},
legend: { position: "none" },
};
var chart = new google.visualization.ColumnChart(document.getElementById("ord_variation"));
chart.draw(view, options);
}}
</script>