Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/33.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 水晶报表中的OLE对象_C#_Asp.net_Crystal Reports - Fatal编程技术网

C# 水晶报表中的OLE对象

C# 水晶报表中的OLE对象,c#,asp.net,crystal-reports,C#,Asp.net,Crystal Reports,我很困惑如何在Crystal Report中使用OLE对象 我正在执行以下步骤:- (RC-Insert-OLE对象)。 从文件中选择:选择图像并将Ole对象放置到Crystal Report 但是,在这样做之后,如果您试图显示预览,那么这里将不会显示任何内容 因此,请描述一下这背后的问题。例如,您想将ole对象添加到报表中 在c#net中,您可以这样做 首先,必须向项目添加引用 我通常使用CRAXDRT.dll和CrystalDecisions.Shared.dll,然后您可以使用下面的代码将

我很困惑如何在Crystal Report中使用OLE对象

我正在执行以下步骤:-

(RC-Insert-OLE对象)。 从文件中选择:选择图像并将Ole对象放置到Crystal Report

但是,在这样做之后,如果您试图显示预览,那么这里将不会显示任何内容


因此,请描述一下这背后的问题。

例如,您想将ole对象添加到报表中 在c#net中,您可以这样做 首先,必须向项目添加引用 我通常使用CRAXDRT.dll和CrystalDecisions.Shared.dll,然后您可以使用下面的代码将ole对象添加到报表中:

CRAXDRT.OleObject to3 = report2.Sections[i].AddPictureObject("YourPictureName.bmp", 0, 0);
to3.Height = 1600;  //just a number as height
to3.Width = 1250;   //just a number as width
to3.Left = 0;       //the left part of the object will be start from the value which you set for this property
to3.Top = 0;        //the top part of the object will be start from the value which you set for this property

例如,您需要将ole对象添加到报表中 在c#net中,您可以这样做 首先,必须向项目添加引用 我通常使用CRAXDRT.dll和CrystalDecisions.Shared.dll,然后您可以使用下面的代码将ole对象添加到报表中:

CRAXDRT.OleObject to3 = report2.Sections[i].AddPictureObject("YourPictureName.bmp", 0, 0);
to3.Height = 1600;  //just a number as height
to3.Width = 1250;   //just a number as width
to3.Left = 0;       //the left part of the object will be start from the value which you set for this property
to3.Top = 0;        //the top part of the object will be start from the value which you set for this property