Solved

How to add logo on crystal report writing dynamically code?

Posted on 2011-03-21
7
677 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 70

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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

803 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