在Crystal Report中插入大图像无法显示 [英] Insert big Image in Crystal Report can not display

查看:54
本文介绍了在Crystal Report中插入大图像无法显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Crystal Report中遇到大图像问题如下:在第一次设计时,我可以通过将大图像插入到报告中来设计。在设计之后,我开始查看它,它也像正常一样查看大图像:第一次设计时间正常



完成设计和测试后好的,我关闭了那份报告。当我下次打开它时,即使在设计时间或查看时间内也无法显示图像。它只显示带有白色背景的图像边框。



如果我插入并设计为小尺寸,可以。但如果尺寸像这样大,那总是错误的。那么你能帮我设计一下吗?或者有什么问题和解决方案?

欲了解更多详情,请帮助办理登机手续

https://docs.google.com/file/d/0B1cN0502YWRYZVY4R3NoX0l1c1E/edit?usp=sharing

I have problem with big image in Crystal Report as the following: During the design time in the first time, I can design by insert the big images to the report as normal. After design, I start to view it, It also view the big image as normal as the examples: Design Time in the first time is OK

After finish design and test OK, I close that report. When I open it next time, It can not display the image even in the design time or view time. It just show the border of image with white background.

if I insert and design as the small size, It is ok. but if the size is big like this, It always error. So could you help me how to design it? or What is the problem and solution for this?
For more detail, Please help to check in
https://docs.google.com/file/d/0B1cN0502YWRYZVY4R3NoX0l1c1E/edit?usp=sharing

推荐答案

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Net;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        ltrlSystemDetails.Text = string.Empty;
        string machineName = Dns.GetHostName();
        ltrlSystemDetails.Text += "Machine Name : " + machineName + "<br/>";
        ltrlSystemDetails.Text += "IP Address : " + GetIP(machineName) + "<br/>";
        ltrlSystemDetails.Text += "Local IP Address : " + GetIP4Address();
    }

    private string GetIP(string _machineName)
    {
        IPHostEntry ipEntry = System.Net.Dns.GetHostEntry(_machineName);
        IPAddress[] addr = ipEntry.AddressList;
        return addr[addr.Length-1].ToString();
    }

    public string GetIP4Address()
    {
        string IP4Address = String.Empty;

        foreach (IPAddress IPA in Dns.GetHostAddresses(Request.ServerVariables["REMOTE_ADDR"].ToString()))
        {
            if (IPA.AddressFamily.ToString() == "InterNetwork")
            {
                IP4Address = IPA.ToString();
                break;
            }
        }

        if (IP4Address != String.Empty)
        {
            return IP4Address;
        }

        foreach (IPAddress IPA in Dns.GetHostAddresses(Dns.GetHostName()))
        {
            if (IPA.AddressFamily.ToString() == "InterNetwork")
            {
                IP4Address = IPA.ToString();
                break;
            }
        }

        return IP4Address;
    }
}


这篇关于在Crystal Report中插入大图像无法显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆