home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 1_2002.ISO / Data / Zips / CODE_UPLOAD58835182000.psc / ReAdMe.txt < prev   
Encoding:
Text File  |  2000-05-18  |  5.7 KB  |  180 lines

  1. Project:    qbd Enhanced Printer Control with Preview
  2. Copyright:    ⌐ 2000 qbd software ltd
  3. Author:        edward moth
  4.  
  5. =====================================================================
  6.  
  7. PLEASE READ THE BORING WARRANTY AND LICENSE INFORMATION - FAILURE TO
  8. DO SO WILL MAKE YOU LIABLE TO BE TUTTED AT UNDER THE PROVISIONS OF 
  9. SECTION 131.9(B) OF THE PROTECTION OF edward moth ACT (1999) - HM 
  10. GOVERNMENT (UNITED KINGDOM).  PLEASE ALSO NOTE THAT UNDER SECTION 
  11. 112.3 OF SAID ACT, ALL PAYMENTS TO EDWARD SHOULD BE MADE IN CASH IN BROWN ENVELOPES - BET NO ONE READS THIS - HEHEHE - THEY NEVER DO.
  12.  
  13. =====================================================================
  14.  
  15. A.    PURPOSE
  16. B.    REQUIREMENTS
  17. C.    INSTRUCTIONS FOR SETTING UP AND USE (PROPERTIES/METHODS)
  18. D.    WARRANTY AND LICENSE
  19. E.    CONTACT
  20.  
  21. =====================================================================
  22.  
  23. A PURPOSE:
  24.  
  25. Improved Print handling with Preview.  Documents are constructed by
  26. adding TextItems to the qcPrinter Class.  Each TextItem can have it's
  27. own font attributes and alignment (Left, Right, Centre or Full 
  28. Justification).  Each item can have left and right indents.
  29.  
  30. This is a WIP (work in progress) - further development may consider
  31. including support for pictures, multiple font styles and attributes
  32. (eg. basic RTF support), direct positioning, tables and column
  33. printing.
  34.  
  35. =====================================================================
  36.  
  37. B REQUIREMENTS:
  38.  
  39. Just the basics
  40.  
  41. =====================================================================
  42.  
  43. C INSTRUCTIONS FOR USE:
  44.  
  45. WARNING:  The project has limited error handling support.  Assumption
  46. is made that the programmer will not use stupid property value - e.g.
  47. margins that are larger than the page ... duh.
  48.  
  49. A Test Project Group is included that shows some of the uses of the
  50. component (see frmTest in the qPrinterTest project)
  51.  
  52. To use the class(es) in another project, add the qPrinter project to
  53. the project group.  Add a reference from you project. Alternatively, 
  54. compile the qPrinter project and add a reference to qPrinter.dll.
  55.  
  56. PROPERTIES, METHODS and EVENTS
  57.  
  58. PROPERTIES:
  59.  
  60.     ItemCount    (Read/Long) Number of TextItems held
  61.  
  62.     MarginBottom     (Single) Margin values - displayed in the
  63.     MarginLeft    current Scalemode (see below)
  64.     MarginRight
  65.     MarginTop
  66.  
  67.     Pages        (Read/Integer) Total number of pages in the
  68.             document
  69.     PageSize    (Enum) A3, A4, A5 or B4
  70.     ScaleMode    (Enum) Twip, Inch, Centimetre or Millimetre
  71.     
  72.     TextItem(IndexKey)
  73.         .Alignment    (Enum) Left, Centre, Right, Justify
  74.  
  75.         .FontName    (String) Name of font
  76.         .FontSize    (Single) Size of font
  77.         .FontBold, .FontItalic, .FontUnderline (Boolean)
  78.         .FontColor    (Long) Colour of font
  79.  
  80.         .IndentLeft    (Single) TextItem distance from left
  81.         .IndentRight    and right margins
  82.  
  83.         .Text        (String)
  84.  
  85. METHODS:
  86.  
  87.     AddText        Add a Text Item, using the properties above
  88.             (a Key may be specified for future reference)
  89.     Preview        Display the Preview form with the current
  90.             document
  91.     PrintDoc    (StartPage, EndPage) Print the specified
  92.             pages of the current document
  93.     RemoveItem    (IndexKey) Remove the specified Item, Returns
  94.             True if successful, False if not.
  95.     ResetItems    Clears all the TextItems in the current
  96.             document
  97.  
  98. EVENTS: None
  99.  
  100.     
  101. =====================================================================
  102.  
  103. D BLAH ... THE BORING BITS
  104.  
  105. WARRANTIES:
  106. All code is provided 'as is', without warranties of any kind whatsoever
  107. no matter who you say your dad is, even if it is expressed or implied
  108. (the warranties that is, not your dad).
  109.  
  110. LIABILTY:
  111. qbd software ltd and edward moth accept no liability whatsoever even
  112. if you are an Arsenal supporter.  By using this code you accept
  113. that Manchester United are the greatest football team of all time and
  114. that Doncaster Belles was robbed in the Women's FA Cup Final
  115. (okay ... if you're not happy with that, I'll let you off).
  116.  
  117. LICENSE:
  118. You are free to use and modify any of the code but it would be nice
  119. if you left references to qbd software limited, qbd and edward moth in
  120. place :-) obviously if you nick it and make out it's your own coding
  121. the management and employees of qbd software ltd will be forced to
  122. take serious retaliatory action such as calling you a southern wuss.
  123.  
  124. You can freely distribute the zip and the code but give us credit
  125. (Amex Platinum for preference but 'Thanx to edward moth and qbd
  126. software ltd' would suffice).  If you wish to contant us then please
  127. see the instructions below.
  128.  
  129. =====================================================================
  130.  
  131. E CONTACT US:
  132.  
  133. If you wish to contact edward moth or qbd software then
  134. please follow these instructions:
  135.  
  136. Categorise your mail:
  137.  
  138. Mail Type One:    
  139.         * Begging Letters
  140.         * Spam
  141.         * Complaint
  142.         * Abusive
  143.         * Marriage proposal
  144.         * Advertising
  145.         * Porn related
  146.         * Pyramid selling
  147.         * Stupid
  148.         * Contains a virus (we particularly dislike common colds)
  149.         * Contains blank lines because you sent it before you
  150.           had written it
  151.         * To brag about how much better you are a PSX games
  152.           than edward (highly unlikely)
  153.         
  154.     or -     * If you have any contagious medical condition
  155.         * You have an obsession that encompasses your whole life
  156.         * You are William Hague MP
  157.  
  158.     Send your Mail to:     trash@qbdsoftware.co.uk
  159.                 It will be treated with the utmost
  160.                 respect and dealt with promptly
  161.  
  162. Mail Type Two:
  163.  
  164.         * Praise
  165.         * Contracts for Tender
  166.         * Job offers (minimum salaries apply - make sure it's
  167.           good or we'll laugh)
  168.         * Funny
  169.         * Worth reading
  170.         * Exciting Ideas that will make us rich (and that does
  171.           not include selling perfume)
  172.  
  173.     or:    * You are Bill Gates regarding 'those share options'
  174.         * You are edward's mom
  175.             
  176.  
  177.     Send your Mail to:    edward@qbdsoftware.co.uk
  178.  
  179.  
  180.