• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 227
  • Last Modified:

Printing and breakups of Entry Forms !!

Hi,
I have Frontpage '98 installed in my system and I have a big client and they have their own intranet..and they want to make a web site in which they have couple of lenghty entry forms..just a normal fill up forms with fields,check boxes and other stuff...and they want all users to fill them up and after submitting the form they want to print that form as they look like on web. so how I can do it through web i mean can I send the filled form as it is on printer ?

And second thing is all forms contains 40 to 50 fields..its a bank data actually...and no need to save..just fill and make a hard copy thats it...so how can i break the print outs of a lenghty form in couple of pieces cause its impossible to print the whole form on A4 size paper...so answer me please...

thanks.
0
zahziah
Asked:
zahziah
  • 2
1 Solution
 
lobosCommented:
Try this example....it's has a print button on the page
and the statement
hello world...

you press the button and it prints....




<HTML>
<HEAD>
<script>
function print_ms()
{
var OLECMDID_PRINT = 6;
var OLECMDEXECOPT_DONTPROMPTUSER = 2;
var OLECMDEXECOPT_PROMPTUSER = 1;

//print webpage with no prompt
WebBrowser1.ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER);
}
</script>
</HEAD>
<BODY>



<!ie browser object used for printing>
<Object ID="WebBrowser1" Width="0" Height="0"
ClassID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></Object>


Hello world!

<input type=button value="Print page" onclick="print_ms() "> 

</BODY>
</HTML>

0
 
zahziahAuthor Commented:
well it worked but tell me about the commands you've used..is this OLE commands ?
0
 
lobosCommented:
Not sure what kind of response you want but the commands are used to do the proccess for the printing.(for IE)  One command is don'tprompuser which means it will print without a prompt window.
Not sure what else to say?

0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now