The Daily Click ::. Forums ::. Klik Coding Help ::. how can I create an html document and then print it as though I was printing a web page
 

Post Reply  Post Oekaki 
 

Posted By Message

dovchunder



Registered
  02/05/2007
Points
  2
3rd May, 2007 at 21:29:22 -

I would like to create formated documents with different fonts and graphics layed out the way I like and then print them. I figured this can be done in html (maybe someone knows an easier way) any Ideas?

 
n/a

blanco



Registered
  08/10/2003
Points
  66
3rd May, 2007 at 22:09:05 -

Quark XPress or Adobe InDesign are pretty good. Do you have infinite funds? Or a high-speed internet connection and contempt for copyright laws?

 
n/a

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
4th May, 2007 at 07:14:55 -

Are you talking about generating documents in Click products here? You could use the Edit Box object and generate HTML code in it... Or use the Rich Edit object. Printing would have to be done by saving the result files and opening them with a browser or text processor, though.

 
Old member (~2004-2007).

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
10th May, 2007 at 04:02:28 -

I guess you solved this?

 
Old member (~2004-2007).

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
11th May, 2007 at 02:34:21 -

Maybe he got sued for copyright infringement.

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
11th May, 2007 at 03:33:16 -

This works for me:


Create an Active X Object, and select Browser Class from the list.

This is subtly different to the "Microsoft Web Browser" control. Stick with the "Browser Class". So far as I know, it's on all systems.


As stated above, generate your html file using an edit box. You could save it in HTML, or use XML if you're a bit of a script-daddy, but anything should do.

Then do the following actions:

Custom Actions -> Part 1 -> Navigate...

From there, you add the file location that you saved to. Like this:
appdrive$ + appdir$ + "printable.html"


Next, do this action:

Custom Actions -> Part 2 -> Print...

And it'll print.

Image Edited by the Author.

 
191 / 9999 * 7 + 191 * 7
   

Post Reply



 



Advertisement

Worth A Click