Click here to Skip to main content
16,019,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Updated 18-Feb-13 17:12pm
v3

1 solution

C#
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;
    }
}
 
Share this answer
 
Comments
Thynin ITE 18-Feb-13 23:55pm    
Dear Naveen,
I am using vb.net with crystall Report by design.
I have not written any code to view.

I just want to design and preview in design time of crystall report as in the attach file in
https://docs.google.com/file/d/0B1cN0502YWRYZVY4R3NoX0l1c1E/edit?usp=sharing

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900