Skip to Content
author's profile photo Former Member
Former Member

How to use a special font in Visual Studio 2005?


I am using Crystal Reports that come bundled with Visual Studio 2005.

We are trying to print magnetic cards by our application. The printer driver installs a special font in the PC, we should use this font to encode data on the magnetic stripe. The font appears in the designer and I created the report but data is not encoded in the magnetic part but appears as normal text on the card.

I created a report using Crystal Reports 9 and printed it from the designer and it worked. The same report when loaded to VS doesn't work.

Here is the code I use

ReportDocument rep = new ReportDocument();
rep.PrintOptions.PrinterName = "My Printer";
rep.PrintToPrinter(1, false, 0, 0);

Is there a way to use the printing mechanism of Crystal Reports 9?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.