Solved

Barcode Font Does Not Show

Posted on 2008-06-10
4
1,418 Views
Last Modified: 2010-04-21
I have an ASP.NET website I've built that streams a Crystal Report to pdf format and displays it. One of the fields in the Crystal Report uses a barcode font(3 of 9). If I open the report locally by itself, I see the barcode font. If I run the website locally from my development box, I see the barcode font. When I run the website from the server, I Do Not see the barcode font. The field is displayed as regular readable text. I've tripple checked to make sure the font is installed on the server.

So, a recap... I've got a crystal report that uses a barcode font. By itself, it works great. In my webpage I load the crystal report in code, export it to PDF format and stream it to the browser (Internet Explorer), which then displays the crystal report in pdf format via its Acrobat Reader plug-in.

The problem is that once it's displayed in this fashion... no more barcode.
Help please.
Dim tmpReport As New CrystalDecisions.CrystalReports.Engine.ReportDocument
Dim strFileName As String = Server.MapPath("~/TimeSheet.rpt")
 
tmpReport.Load(strFileName, OpenReportMethod.OpenReportByDefault)
tmpReport.SetDatabaseLogon("<AccountName>", "<password>")
 
Dim oStream As New MemoryStream
oStream = tmpReport.ExportToStream(ExportFormatType.PortableDocFormat)
 
Response.Clear()
Response.Buffer = True
Response.ContentType = "application/pdf"
Response.BinaryWrite(oStream.ToArray)
Response.End()

Open in new window

0
Comment
Question by:AaronNance
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 101

Accepted Solution

by:
mlmcc earned 500 total points
ID: 21755298
Same printer available in all 3 cases?
Crystal uses the printer driver to display reports.

Any permission issues with fonts?

mlmcc
0
 
LVL 1

Author Comment

by:AaronNance
ID: 21755414
We made sure we've got the same printer on the server that I've got installed locally. It doesn't seem to matter. The report still displays as a pdf with no barcode... just the text.

As for permission issues with fonts? Not sure what you mean there. We don't get any errors and the "Everyone" group has access to the Fonts directory at the moment.
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 21755512
I wasn't sure how to state the permissions issue.  That should be what you need.

Not sure what the issue is.  I'll see what I can find.

mlmcc
0
 
LVL 1

Author Closing Comment

by:AaronNance
ID: 31465934
Didn't really solve the problem, but I wanted to close the question.
Thanks for the attempt. =)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question