Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello,

I want to display my logo in Crystal Report, but its getting error "Missing Parameter Value".

I added parameter but its getting error.

Please help me.

Thanks in Advance.

Regards
Ankit Agarwal
Software Engineer

What I have tried:

myCRReport cr=new myCRReport();
DataTable dt = connClass.CreateKOT(Convert.ToInt32(cmbTableNo.SelectedValue));
 cr.SetParameterValue(1, Application.StartupPath + "\\Logo\\" + dt.Rows[0]["Logo"].ToString()); 
            cr.SetDataSource(dt);
            
            cr.PrintOptions.PaperOrientation = PaperOrientation.Portrait;
            cr.PrintOptions.PaperSize = PaperSize.PaperA5;
            cr.PrintToPrinter(1,false, 0, 15);// Error "Missing Parameter value"
Posted
Updated 24-Jan-18 22:28pm

The best solution is to stop using Crystal reports. :)

(I'm not a Crystal Reports expert, but I did stay at a Holiday Inn Express last night.)
 
Share this answer
 
Refer the below link

[^]
 
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