Hi iammann,
You can't add signature directly. You need to save your signature as image file and then add Image on crystal Report.
To display image(signature) follow the below steps.
1. Open report design. From Crystal Reports - Insert tool select Picture which open DialogBox to select image.
2. Select the image(signature) and click open and then place in the report where you want to display the image.
3. After inserting the image you can drag it to move/resize.
I have created an example using the below article.
HTML
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true" />
C#
protected void Page_Load(object sender, EventArgs e)
{
ReportDocument crystalReport = new ReportDocument();
crystalReport.Load(Server.MapPath("~/CustomerReport.rpt"));
Customers dsCustomers = GetData("SELECT TOP 10 CustomerID,Freight FROM Orders");
crystalReport.Database.Tables[0].SetDataSource(dsCustomers.Tables["Table"]);
CrystalReportViewer1.ReportSource = crystalReport;
}
private Customers GetData(string query)
{
string conString = ConfigurationManager.ConnectionStrings["constr"].ConnectionString;
SqlCommand cmd = new SqlCommand(query);
using (SqlConnection con = new SqlConnection(conString))
{
using (SqlDataAdapter sda = new SqlDataAdapter())
{
cmd.Connection = con;
sda.SelectCommand = cmd;
using (Customers dsCustomers = new Customers())
{
sda.Fill(dsCustomers);
return dsCustomers;
}
}
}
}
Output