Solved

How to add logo on crystal report writing dynamically code?

Posted on 2011-03-21
7
679 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

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…
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…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

696 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