hi,
My problem is i have created a report using Crystal Report and the font-style is Roman 20 cpi. When i preview the report in Crystal Report, the font-style is still Roman 20 cpi but when i view the report using VB.NET the font-style has changed into another font-style. And actually window xp doesn't support this type of font-style but because i'm using the OKI ML 591 printer (dotmatrix), it allows me to have the Roman 20 cpi font-style. So what is happening actually? Is there anything wrong with the Crystal Report or VB.NET? Please help me as soon as possible.

Dani AI

Generated

Quick summary and concrete troubleshooting for (and thanks to for the driver tip): Crystal Reports formats using the printer driver that the report was designed against, so the runtime printing engine can substitute fonts or change layout if the original printer/driver (or the exact fonts) are not present. (userapps.support.sap.com)

Why the OKI Roman 20 cpi looks different in VB.NET: the Microline ML591 exposes a resident "Roman" 20‑cpi hardware font, but Windows/Crystal at runtime will only use that hardware font if the same printer/driver is available (or if the driver is told to use device fonts). If the runtime machine uses a different/default printer or a driver option that downloads TrueType instead of using printer fonts, Crystal will substitute a different screen font. (manualslib.com)

Practical steps (do these in order):

  1. On the machine running the VB.NET app, open the .rpt in Crystal (or preview from your app). If you see the "invalid printer / default printer will be used" warning, install the ML591 driver or set the same printer as default. If you want consistent on‑screen formatting across machines, try File → Page Setup → check "No Printer (optimize for screen display)" and save (this forces Crystal to emulate a printer for layout). (userapps.support.sap.com)

  2. If you require the hardware Roman 20 cpi when printing (not just a preview), either:

    • Use the ML591 driver on the runtime PC and set the driver option to use printer/device fonts; or
    • Bypass Crystal for that print job and send the printer escape/control codes (ESC/P2) directly (raw printing). Microsoft shows how to send raw bytes/escape sequences from VB.NET (WritePrinter/SendBytesToPrinter). (oki.com)

Cautions and recommendations: if the report must print exactly to preprinted forms, standardize the driver/OS on every workstation or embed the form as a background image and use TrueType fonts that exist on all machines. If you try raw ESC sequences, test carefully (different firmware/emulations select fonts differently).

hi,
My problem is i have created a report using Crystal Report and the font-style is Roman 20 cpi. When i preview the report in Crystal Report, the font-style is still Roman 20 cpi but when i view the report using VB.NET the font-style has changed into another font-style. And actually window xp doesn't support this type of font-style but because i'm using the OKI ML 591 printer (dotmatrix), it allows me to have the Roman 20 cpi font-style. So what is happening actually? Is there anything wrong with the Crystal Report or VB.NET? Please help me as soon as possible.

I have run into a similar problem, I was trying to print a report to a Canon iR3300 copy machine/printer and the font looked fine on the screen but when I printed, it was completely unreadable. As it turns out, I believe the problem is with the version of CR that is packaged with .NET, but I couldn't narrow it down exactly. You could try a few things: re-setting all of your text objects to the Roman font, get the latest driver for the printer (or possibly an earlier version), check with Seagate for some updates to the CR version packaged with .NET
Hope that helps

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.