Click here to Skip to main content
15,908,455 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How to add barcode font for the Crystal Report version 10.2.3600.0? Here the rpt file contains barcode which is linked to a pdf file on printing. I want the font of barcode suited for the crystal report 10.2.3600.0 version and how to add the same to display barcode in the rpt file.

My code is as follows on clicking print:

//BtnPrint.Attributes.Add("OnClick", "return confirmMsgChkAndBoxSelect('KYCEmpListPopUp');");
string pdfPath = KYCReportFilePath;
WebClient client = new WebClient();
Byte[] buffer = client.DownloadData(pdfPath);
//Response.ContentType = "application/pdf";
//Response.AddHeader("content-length", buffer.Length.ToString());
Response.AddHeader("Content-Type", "application/octet-stream");
Response.AddHeader("Content-Length", buffer.Length.ToString());
Response.AddHeader("Content-Disposition", "attachment; filename="+pdfPath);

1 solution

Share this answer
Rahul 105 20-Jan-14 9:17am    
I directly just added the font of barcode to my local server. But in IIS font is not taken.
thatraja 20-Jan-14 9:19am    
You should install the font in server machine.
Rahul 105 20-Jan-14 9:49am    
I have already installed under C/Windows/Fonts/... But IIS isn't taking the font. I tried with a html page in IIS,server machine and i am having the same issue. Should I restart the server?
thatraja 20-Jan-14 10:18am    
I think so. Before restart, you could verify that by opening any editor(notepad or wordpad) & select font dialog box.
Better restart. And restart your IIS too.

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