本文介绍了VB.NET中的Crystal Report转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我对VB.NET中的Crystal Report有点困惑.
当我在C#.NET中使用以下代码时,没有问题:

Hi Everybody,

I have a little bit confusion about Crystal Report in VB.NET.
when i use the following code in C#.NET,there is no Problem:

crTable = (CrystalDecisions.CrystalReports.Engine.Table)arrTables[0];



但是,我更改为VB.NET.问题开始了
我的vb代码在那里:



Nevertheless, I change to VB.NET.the problem starts
my vb code is there:

crTable = DirectCast(arrTables(0), CrystalDecisions.CrystalReports.Engine.Table)



显影时间出错.
错误消息:"value of type''CrystalDecisions.CrystalReports.Engine.Table'' cannot be converted to ''1-dimensional array of CrystalDecisions.CrystalReports.Engine.Table''."

这段代码有什么问题.请指导我. :confused:



There is error in developing time.
error message: "value of type''CrystalDecisions.CrystalReports.Engine.Table'' cannot be converted to ''1-dimensional array of CrystalDecisions.CrystalReports.Engine.Table''."

What wrong with this code. please, guide me. :confused:

推荐答案


crTable = arrTables(0)


这篇关于VB.NET中的Crystal Report转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 22:23