Solved

How to add logo on crystal report writing dynamically code?

Posted on 2011-03-21
7
675 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

947 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

19 Experts available now in Live!

Get 1:1 Help Now