问题描述
如何为Crystal Report版本10.2.3600.0添加条形码字体?这里rpt文件包含条形码,该条形码在打印时链接到pdf文件。我想要适合水晶报告10.2.3600.0版本的条形码字体以及如何在rpt文件中添加相同的显示条形码。
我的代码如下点击打印:
//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.BinaryWrite(buffer);
Response.Clear();
Response.ClearHeaders();
Response.AddHeader(Content-Type,application / octet-stream);
Response.AddHeader(Content-Length,buffer.Length.ToString());
Response.AddHeader(Content-Disposition,attachment; filename =+ pdfPath);
Response.BinaryWrite(缓冲区);
响应。 Flush();
Response.End();
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.BinaryWrite(buffer);
Response.Clear();
Response.ClearHeaders();
Response.AddHeader("Content-Type", "application/octet-stream");
Response.AddHeader("Content-Length", buffer.Length.ToString());
Response.AddHeader("Content-Disposition", "attachment; filename="+pdfPath);
Response.BinaryWrite(buffer);
Response.Flush();
Response.End();
推荐答案
这篇关于如何为Crystal Report版本10.2.3600.0添加条形码字体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!