简体   繁体   English

Crystal Reports c#VS 2012 - 无法将图片添加到我的报告中,而不是显示?

[英]Crystal Reports c# VS 2012 - Can't add picture to my report, not displaying?

I'm working in Visual Studio 2012 Ultimate c# and using the designer for creating Crystal reports. 我正在使用Visual Studio 2012 Ultimate c#并使用设计器创建Crystal报表。 I want to add an image in the head section by doing: Rightclick -> Insert -> Picture and then I select the picture (png/bmp) and nothing happens. 我想在头部添加一个图像:右键单击 - >插入 - >图片,然后我选择图片(png / bmp),没有任何反应。 I tried to do this with an OLE link to the image files as well, but (besides the OLE object) no image shows up. 我尝试使用OLE链接到图像文件,但(除了OLE对象)没有图像显示。

I checked all around the web but couldn't find a solution to my problem. 我检查了网络上的所有内容,但无法找到问题的解决方案。 Any suggestions or ideas as to what can cause this or how I can circumvent the issue? 关于什么可以导致这个或如何绕过这个问题的任何建议或想法?

Ok appearently I found the cause for nothing happening by continually trying to make things happen in the designer :p. 好吧,通过不断尝试在设计师中发生事情,我发现没有任何事情发生的原因:p。

Crystal reports is quite buggy when it comes to adding pictures, first of all it does not generate a single error message when something goes wrong with loading image files. 在添加图片时,Crystal报告非常错误,首先,当加载图像文件出现问题时,它不会生成单个错误消息。 For example, Crystal reports can't support gifs or transparent images and will not show any error message when trying to load one. 例如,Crystal报表不支持GIF或透明图像,并且在尝试加载时不会显示任何错误消息。

The second (and in my case most important) cause is that by double clicking an image while loading it immediately places the image under your cursor and when your cursor is outside the drawing surface of your report it will immediately disband your picture. 第二个(在我的情况下最重要的)原因是,在加载图像时双击图像会立即将图像放在光标下,当光标位于报表的绘图表面之外时,它会立即解散图片。 Selecting the image and pressing the Enter key to confirm will allow you to move your picture onto your report. 选择图像并按Enter键确认将允许您将图片移动到报告中。

I hope this will help other people with similiar problems in the future. 我希望这将有助于将来有类似问题的其他人。

在转到插入 - >图片然后按回车确认为我工作后,单击选择图像。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM