home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / mswindo / programm / misc / 4544 < prev    next >
Encoding:
Internet Message Format  |  1993-01-01  |  2.1 KB

  1. Path: sparky!uunet!usc!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!yale!mintaka.lcs.mit.edu!ai-lab!life!sbchanin
  2. From: sbchanin@ai.mit.edu (Steve Chanin)
  3. Newsgroups: comp.os.ms-windows.programmer.misc,comp.windows.ms.programmer
  4. Subject: Windows Printing
  5. Date: 1 Jan 93 20:14:28
  6. Organization: MIT Artificial Intelligence Laboratory
  7. Lines: 36
  8. Distribution: world
  9. Message-ID: <SBCHANIN.93Jan1201428@raisin-nut.ai.mit.edu>
  10. Reply-To: sbchanin@ai.mit.edu
  11. NNTP-Posting-Host: raisin-nut.ai.mit.edu
  12.  
  13.  
  14. I'm interested in buying/building a utility which can print text,
  15. tables, and graphs.  The idea is to take information that
  16. the user sees on screen and turn it into word processor quality output
  17. (i.e. headers, footers, various fonts, and embedded graphs and tables
  18. preferrably at the resolution of the printer [300dpi]).  The hope is
  19. to be able to be able to use this utility with VB apps and with SDK apps.
  20.  
  21. I'm currently trying to figure out if their is an easy way to do this
  22. is.  Any ideas?
  23.  
  24. One fairly complicated idea is to get the printer object display
  25. context (hDC) and manually work through all the text, tables, and
  26. graphs rastering each into the hDC.  In the case of text, this would
  27. involve line breaking, checking font heights, positioning the cursor,
  28. writing letters into the hDC, and moving the cursor down a line.  We
  29. have a graph library which can write itself into an hDC.  Tables would
  30. be a special case of the Text display functions.  Additionally, the
  31. code would have to detect end of page, maybe output a page number, etc.
  32.  
  33. The questions I'm interested in are:
  34. 1) Are there easier ways to do this?
  35. 2) Are there commercially available libraries of code which do this?
  36.    If not, are there libraries which get us part of the way there?
  37. 3) If we have to go with the idea described above should it be written
  38.    in Visual Basic, as a static library, or as a DLL?
  39. 3) If we have to go with the idea described above, how long will it
  40.    take to code?
  41.  
  42. Thanks,
  43. Steve
  44.  
  45.  
  46. --
  47. ===============================================================================
  48. DOMAIN: sbchanin@ai.mit.edu                                       Steven Chanin
  49.