VB.NET“从“位图”类型到“字符串”类型的转换无效。

时间:2021-03-16 07:14:44

标签: vb.net

我正在尝试将位图转换为字符串,但出现错误 这是我下面的代码

oSheet.Shapes.AddPicture(My.Resources.ResourceManager.GetObject("blh_low_opacity"),
Microsoft.Office.Core.MsoTriState.msoFalse,
Microsoft.Office.Core.MsoTriState.msoCTrue, 96, 10, 700, 500)

及其显示

System.InvalidCastException: 'Conversion from type 'Bitmap' to type 'String' is not valid.'

你们能给我一些提示和提示,告诉我如何解决这个问题吗?提前致谢

0 个答案:

没有答案
相关问题