How to print different font and size in same page

franktang

Member
Dear All,

I usually create some customization report in QAD with Procedure Editor. I have a question about the font and size.
If it's possible to print or show different font and size in same frame?
I think it makes our report looks better.

Could you please give me your proposal about this?


Thank you.

Frank
 
you could use pcl and escape codes ( using put control ) but the problem is that line-counter and page-size are meant for single size fonts and it's something you're going to have to account and deal with and it will probably only be practical with a very simple and very fixed layout.

if you're looking to create richer outputs you might want to look at some tools and technologies for generating documents, like, css/html, pdf, office xml formats, odf etc.
 
Dear Joey,

Thank you for your advise.

It sames difficault to print document with richer documents.
I am a dabster to use PCL and put control commands.
If possible please show me a short source code?

Thank you very much.

Frank
 
I think, that would be the wrong way to go about solving this problem that would at best have a very limited and cumbersome result and it is very likely it will introduce even more problems, especially, as more features are added to the report.

If you're interested you can contact me privately on howto create html, pdf, excel etc. document (including on UNIX) and possibly email the document to the user incase the application is running on UNIX. But my consulting services are not free ;)
 
Thank you for your reply.

I have the ability to write code to generate HTM, PDF and Excel format reports.

I just interest about the PCL and some new technical knowledge that I am not clear.

Whether or no, thank you for your help. If we have other tuff requirement, I will contact you.


Thanks again.

Frank:awink:
 
franktang,
the following will set up a file format certain variables as bold when opened with wordpad:
Code:
put "~{~\rtf1~\ansi~\deff0~{~\fonttbl~{~\f0~\fnil~\fcharset0 CourierNew;}~{~\f~1~\fmodern~\fprq1~\fcharset0 Courier New;}}"
skip (0).
put "~{~\colortbl ;~\red0~\green0~\blue0;}" skip (0).                           
put "~{~\*~\generator Msftedit 5.41.15.1507;}~\viewkind4~\uc1~\pard~\lang1033~\~f0~\fs20~\par"                                                                          
skip (0).
fill 2 vars as follows:
Code:
tmp = chr(92) + chr(99) + chr(102) + chr(49) + chr(92) + chr(98) + chr(92) + chr(102) + chr(49) + chr(20).
tmp1 = chr(92) + chr(99) + chr(102) + chr(48) + chr(92) + chr(98) + chr(48) + chr(92) + chr(102) + chr(49) + chr(20).
then:
Code:
put today " " trim(tmp) " " yourvariable trim(tmp1) " " anothervariable "~\par" skip (0).
open the file in wordpad.
if using straight pcl that will depend on your printer mfg and the symbol sets that are native to it.
regards,
longhair
 
Back
Top