• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Printed Reports
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Printed Reports


  • Subject: Printed Reports
  • From: Bruno Blondeau <email@hidden>
  • Date: Tue, 7 Dec 2004 11:03:58 +0100

I'm looking for Cocoa classes (or any tip which would help me write them) to print reports.


Mainly it would be something:

**** Header ****

Col A    Col B    Col C
aaaa     bbbb     cccccc
...
...
a        b        c

		Subtotal 12368

**** Footer *****
Page x/y



Should I try to use all the Cocoa features such as

- drawPageBorderWithSize for the header/footer
- adjustPageHeightNew so as to make rows fit
- ...

Or should I simply do everything myself?

In this case, what should I do so as to avoid recalculating everything each time Cocoa asks me to draw a page? For example, if Cocoa asks for page 15, I theorically have to recalculate everything to know which row is the first row in page 15, ... (unless I'm doing some caching of course)


Well, any tip would be welcome on similar experience on how to implement printing in this case (this may be an invoice, or accounts...)



-- Thanks, Bruno Blondeau


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: AppleScript to open a file using the NSObject method - (BOOL)application: openFile:
  • Next by Date: Re: How to create a button dynamically and set action in subclass
  • Previous by thread: Re: AppleScript to open a file using the NSObject method - (BOOL)application: openFile:
  • Next by thread: sending a message to the application
  • Index(es):
    • Date
    • Thread