Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / May 2005



Tip: Looking for answers? Try searching our database.

How to Print HTML document from Powerplant

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
nilesh.khemkar@patni.com - 06 May 2005 15:16 GMT
Hi,
      I want to show a HTML document which contains some image also.
Now which control should i use to display the HTML doc and how do i
print
it on "click" of print button from the same window.
         
Thanks in advance.
Regards,
Neel - 13 May 2005 13:01 GMT
Any comments for the above query.
Neel - 29 May 2005 11:58 GMT
In powerplant which control/pane/view group should i use to display
HTML file with some images, and after showing how do i print the same
on network printer or local printer.
David Phillip Oster - 29 May 2005 22:19 GMT
> In powerplant which control/pane/view group should i use to display
> HTML file with some images, and after showing how do i print the same
> on network printer or local printer.

Displaying web content:

You might take a look at /Developer/Examples/WebKit/CarbonWeb/ but watch
out: the file TWebView.cp would need to be renamed TWebView.mm for
Metrowerks, since it contains both C++ and Objective-C. I don't know if
it is 10.4 (Tiger) only. I don't know how difficult it would be to adapt
it for use in a PwerrPlant program, nor what trouble it would give you.

You also might look at HTMLRendering.h in Universal/Interfaces/CIncludes/
since it interacts nicely with ControlRefs.

Printing:

Read up in printing in PowerPlant (PowerPlant_Book.pdf, chapter 14).
Basically, in Constructor, you constuct an LPrintout to represent a
printed page, and place an LPlaceHolder in the LPrintout to hold content.

Then, inside your document's DoPrint() function you place the view that
contains the content temporarily into the placeHolder (It will move back
by isteld when the job is done.)

Signature

David Phillip Oster

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.