I’m having trouble with converting Crystal Reports to PDF’s and RTF’s, using this code:
//save report as pdf in location where it can be viewed in browser repDoc.ExportToDisk(ExportFormatType.PortableDocFormat, strPDFLocation);
//save report as rtf for printing
repDoc.ExportToDisk(ExportFormatType.RichText, strRTFLocation);
The code works fine, but the font sizes get changed. Example, if I use Arial 8 in Crystal, it will be Arial 7.5 in the RTF document and appears to be even smaller in the PDF. I tried increasing the font to 8.5 in Crystal so I could get an 8 in RTF, but I can’t get everything to fit on 3 pages then. This is for compliance documents which have to meet a PUC requirement regarding font size, and the group of documents can’t be more than 8 pieces of paper or we’ll have to go to a larger envelope which costs more to mail.
I’ve searched Google for answers and most of them say this problem is caused by different print drivers on different servers, but I’m doing everything on my PC so the drivers are the same for everything.
Hopefully someone has an idea that might help.
//save report as pdf in location where it can be viewed in browser repDoc.ExportToDisk(ExportFormatType.PortableDocFormat, strPDFLocation);
//save report as rtf for printing
repDoc.ExportToDisk(ExportFormatType.RichText, strRTFLocation);
The code works fine, but the font sizes get changed. Example, if I use Arial 8 in Crystal, it will be Arial 7.5 in the RTF document and appears to be even smaller in the PDF. I tried increasing the font to 8.5 in Crystal so I could get an 8 in RTF, but I can’t get everything to fit on 3 pages then. This is for compliance documents which have to meet a PUC requirement regarding font size, and the group of documents can’t be more than 8 pieces of paper or we’ll have to go to a larger envelope which costs more to mail.
I’ve searched Google for answers and most of them say this problem is caused by different print drivers on different servers, but I’m doing everything on my PC so the drivers are the same for everything.
Hopefully someone has an idea that might help.