I solved that.. It printing in multiple pages.
I added the following line.

[printInfoDict setObject:filename forKey:NSPrintSavePath];


Thanks,
Ramesh.P


On Thu, Jan 7, 2010 at 10:46 AM, Ramesh P <[email protected]>wrote:

> Thanks Scott and Daniel,
>
> I tried using NSTextview. Now i can print the doc file. But it printing as
> a single page.
> My doc file has 5 pages. But it printing as a single page in very small
> size of letters.
> How to solve this?
>
> Thanks,
> Ramesh.P
>
>
>
>
> On Wed, Jan 6, 2010 at 11:34 PM, Scott Ribe <[email protected]>wrote:
>
>> > Is it possible to print a doc file using cocoa application?
>>
>> Yes, but. It is possible to load a doc file into an attributed string, put
>> it into a text view, and print that. But support is limited--it can't deal
>> with all features of doc files, so you'd need to test for your
>> application.
>>
>>
>> --
>> Scott Ribe
>> [email protected]
>> http://www.killerbytes.com/
>> (303) 722-0567 voice
>>
>>
>>
>
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to