Cocoa and print form

Discussion in 'Mac Programming' started by sebastijan, May 11, 2007.

  1. sebastijan macrumors member

    Joined:
    May 22, 2005
    Location:
    London, UK
    #1
    In Visual Basic I use Crystal Report for print form. It is easy. But how can I make this using Cocoa for some data?

    Where can I find example for this or can someone write this?

    Thanks.
     
  2. Eraserhead macrumors G4

    Eraserhead

    Joined:
    Nov 3, 2005
    Location:
    UK
    #2
    I assume you mean printing from a Cocoa based program?

    To do this you need to create a view which gets printed (you may have one already), if your program is document based you can then create an NSPrintOperation object and run it.

    This is covered in more detail in Chapter 24 of Aaron Hillegass's book.
     

Share This Page