cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

I have a report that uses the Generic/Text Only printer driver with the Device Font 12cpi. When it's printed (to a file) from the Crystal Reports designer the layout is correct. When I print from the runtime (latest SP, using the RAS engine) there are some alignment issues.

Any suggestions on what to look at, or known issues to be aware of?

The report is very complicated with a lot of subreports, and the alignment issues are happening in subreports. The report is from a customer and I've so far been unsuccessful in reproducing the problem in a simpler report or isolating anything different about the fields that have the problem. They all seem to be aligned and sized correctly.

0 Likes
View Entire Topic
0 Likes

Hi Bill,

Actually P2P and POC still uses the Windows DEVMODE structure to format the report based on the C++ DEVMODE structure for that printer driver. All of our printer calls get down to the core engine crpe32.dll.

We do use the TT fonts and the Glyphs embedded within the font so that may be the issue.

As for the old app it's hard to say what they were/are using and why it works without knowing what SDK it used.

All I can suggest is they use Times New Roman, it's a fixed size font so it may reduce the offsets they are seeing.

The other option that might work is to add a new printer and set the output to a file, it's be a PRN file type, use a real printer rather than the generic Windows Printer. Not sure if that would help though.

Another option is export to xml or CSV and use it as the printer source.

Can't really suggest anything else since they are comparing .NET printing to what is likely a very old platform and lots of changes obviously.

How did they configure the Generic Text printer?

Don