Click here to Skip to main content
15,884,629 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am creating a windows application using 2010 C#.net, In my sales form I am selecting a company, company logo display in picturebox and select a next company next company logo display in picturebox. How to pass logo images from windows form to crystal report viewer. Give me any one ideas.


What I have tried:

I am creating a windows application using 2010 C# .net, In my sales form I am selecting a company, company logo display in picturebox and select a next company next company logo display in picturebox. How to pass logo images from windows form to crystal report viewer. Give me any one ideas.
Posted
Updated 28-Sep-22 11:17am

1 solution

Take a look here: Dynamic Image Location by using a parameter[^]

Quote:
This is straight out of "The Complete Reference: Crystal Report XI" by George Peck, a book worth having around:
Insert a picture in your report. You have to start with some picture, it doesn't matter which one.
Right click on the picture and choose Format Graphic from the popup Format menu.
Click the picture tab in the Format Editor dialog.
Click the Graphic Location formula button at the bottom of that page.
Drag and drop your parameter into the formula section.
Save it.
Now when you pass your parameter, you should not enclose it in quotes: that will not compute. Just pass the path to the image and the image name, such as c:\pics\cat.bmp.
This is covered on pages 183-185 of Peck's book.
I hope this helps.
 
Share this answer
 

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