Solved

How to add logo on crystal report writing dynamically code?

Posted on 2011-03-21
7
674 Views
Last Modified: 2013-12-17
i have new company logo. i want to add this logo all crystal report head. But i can not drag and drop method. i have a exporter class to do this.

    public class RptExport
    {
        internal CrystalReportViewer crv { get; set; }
        internal ReportDocument rpt { get; set; }
        private FileStream fs;
        public RptExport()
        {
            crv = new CrystalReportViewer();
            rpt = new ReportDocument();
            string LogoPath = ConfigurationManager.AppSettings["CompanyLogoPath"].ToString();
            if (File.Exists(LogoPath))
            {
                fs = new FileStream(LogoPath, FileMode.Open);
                // how to load this logo ???????????????
            }
        }

Open in new window

BUT; i am writing Asp.net Application....
0
Comment
Question by:programmerist
7 Comments
 

Author Comment

by:programmerist
ID: 35178613
ARE YOU THERE?????????????????????????
0
 
LVL 3

Assisted Solution

by:kumarnimavat
kumarnimavat earned 125 total points
ID: 35179358
Hello there,

You may add dynamic content to the crystal report using the link given below. Hope this link helps you :-

http://www.c-sharpcorner.com/UploadFile/saj/CrystalReports03192006090510AM/CrystalReports.aspx
0
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 125 total points
ID: 35179953
one way of doing it would be to push the logo into a dataset as shown in "Feeding a custom chart" from http://www.emoreau.com/Entries/Articles/2006/10/Crystal-Reports--Part-II.aspx
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 12

Assisted Solution

by:Mohamed Abowarda
Mohamed Abowarda earned 250 total points
ID: 35185674
Creating Crystal Reports using C# with Datasets:
http://www.codeproject.com/KB/cs/CreatingCrystalReports.aspx
0
 
LVL 12

Assisted Solution

by:Mohamed Abowarda
Mohamed Abowarda earned 250 total points
ID: 35185699
Store the logo in the database (BLOB datatype), add BLOB field in the crystal report document and use DataSet to show the image in the crystal report document at runtime.

Additionally, the following link could help you:
http://stackoverflow.com/questions/128239/dynamically-change-an-image-in-a-crystal-report-at-runtime
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 35452375
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now