Authorization Form

G

Guest

When completing certain types of transactions, the users of my app will need
to have the clients sign an authorization form. I want to add a button to
the page that allows them to print the auth form customized with the
client's name, etc... I was thinking of using MS Word and automating it
with client side VBScript. I want to store the template on the server so it
can be updated centrally. I don't need to save the doc anywhere, just open
word, fill in the fields and print it to the default printer. I think the
automation is pretty simple, but how do I open the template from the server
with client side script?

Has anyone done something like this? Is there a better way to accomplish
this? Thanks.

Jerry
 
G

Guest

The main problem with this is that the end user has to print a browser
window, then... There is no control over the header and footer that IE
might print is there? This has to be an official document. I want to
control everything on the page, including the margins. I know i can do this
by automating word... Can you do this in a browser?
 
S

Steven Cheng[MSFT]

Hi rlrcstr,

I think completely control the printing at clientside for web page based
application will be very difficult since the web page's clientside scripts
has very restricted perimssions. And the printing setting is the clientside
browser's configuration which is not accessible to page's script... So
far, what I could get are the following approachs:

1. create the complete print version document as word document at
serverside( need to use word automation or use XSLT transform is utilizing
word 2003 wordml....) and flush the word document to client brower and let
the client use print it.....


2. Use a popup web page window or web page dialog to show th print version
of the document (we can set some browser window's setting such as address
bar or ......), however, popup window is not quite good since most browser
will now block it.....

is your client application limited to IE browser? If so, we can consider
using some IE specific dhtml scripts....

regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)






--------------------
| From: <[email protected]>
| References: <uq7r#[email protected]>
<[email protected]>
| Subject: Re: Authorization Form
| Date: Tue, 20 Dec 2005 14:05:25 -0500
| Lines: 45
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
| Message-ID: <#[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 198.160.134.100
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:366057
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| The main problem with this is that the end user has to print a browser
| window, then... There is no control over the header and footer that IE
| might print is there? This has to be an official document. I want to
| control everything on the page, including the margins. I know i can do
this
| by automating word... Can you do this in a browser?
|
|
| | > I think what you don't need to use a MS Word for this task. You can
create
| a
| > template using an HTML/XML and print it using the "window.print();"
client
| > side method.
| >
| > Alexey Borzenkov (http://alexborzenkov.iespana.es/)
| >
| >
| > "(e-mail address removed)" wrote:
| >
| > > When completing certain types of transactions, the users of my app
will
| need
| > > to have the clients sign an authorization form. I want to add a
button
| to
| > > the page that allows them to print the auth form customized with the
| > > client's name, etc... I was thinking of using MS Word and automating
it
| > > with client side VBScript. I want to store the template on the server
| so it
| > > can be updated centrally. I don't need to save the doc anywhere, just
| open
| > > word, fill in the fields and print it to the default printer. I think
| the
| > > automation is pretty simple, but how do I open the template from the
| server
| > > with client side script?
| > >
| > > Has anyone done something like this? Is there a better way to
| accomplish
| > > this? Thanks.
| > >
| > > Jerry
| > >
| > >
| > >
|
|
|
 
G

Guest

I'm using a Word automation solution. The only issue I'm running into is that Word doesn't always print. I think that the printing is getting canceleed when Word is closed by my script. Is there a way to see if Word is done printing before I close it?

This is all code and I'm not making Word visible..


Set objWord = CreateObject("Word.Application")
objWord.Visible = True objWord.Documents.Add Replace(document.url,"TrxWizVCheckInfo.aspx","VCheckAuth.doc")
objWord.ActiveDocument.FormFields("Total").Result = document.getElementById("TrxInfo1_lblTotal").innerText
objWord.ActiveDocument.FormFields("PayerName").Result = document.getElementById("txtAcctName").Value
objWord.ActiveDocument.PrintOut
'I need to wait for Word to finish printing here...
objWord.Quit 0

Thanks.
 
S

Steven Cheng[MSFT]

Thanks for yoru response rlrcstr,

So you're using client side vbscript to automate the WORD application, this
will require the client user to grant our web applciation sufficient
permission (in the trust zone for example....). Also, client side scrpit is
not quite stable for rich application functionality. Would you consider
using an ActiveX control or something else if you do need to do such rich
client operations...

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| From: <[email protected]>
| References: <uq7r#[email protected]>
<[email protected]>
<#[email protected]>
<[email protected]>
| Subject: Re: Authorization Form
| Date: Fri, 23 Dec 2005 10:59:57 -0500
| Lines: 367
| MIME-Version: 1.0
| Content-Type: multipart/alternative;
| boundary="----=_NextPart_000_000E_01C607B0.02F5A790"
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
| Message-ID: <#[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 198.160.134.100
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:366786
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| I'm using a Word automation solution. The only issue I'm running into is
that Word doesn't always print. I think that the printing is getting
canceleed when Word is closed by my script. Is there a way to see if Word
is done printing before I close it?
| This is all code and I'm not making Word visible..
| Set objWord = CreateObject("Word.Application")
| objWord.Visible = True objWord.Documents.Add
Replace(document.url,"TrxWizVCheckInfo.aspx","VCheckAuth.doc")
| objWord.ActiveDocument.FormFields("Total").Result =
document.getElementById("TrxInfo1_lblTotal").innerText
| objWord.ActiveDocument.FormFields("PayerName").Result =
document.getElementById("txtAcctName").Value
| objWord.ActiveDocument.PrintOut
| 'I need to wait for Word to finish printing here...
| objWord.Quit 0
| Thanks.
| > Hi rlrcstr,
| >
| > I think completely control the printing at clientside for web page
based
| > application will be very difficult since the web page's clientside
scripts
| > has very restricted perimssions. And the printing setting is the
clientside
| > browser's configuration which is not accessible to page's script...
So
| > far, what I could get are the following approachs:
| >
| > 1. create the complete print version document as word document at
| > serverside( need to use word automation or use XSLT transform is
utilizing
| > word 2003 wordml....) and flush the word document to client brower and
let
| > the client use print it.....
| >
| >
| > 2. Use a popup web page window or web page dialog to show th print
version
| > of the document (we can set some browser window's setting such as
address
| > bar or ......), however, popup window is not quite good since most
browser
| > will now block it.....
| >
| > is your client application limited to IE browser? If so, we can
consider
| > using some IE specific dhtml scripts....
| >
| > regards,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| >
| >
| >
| >
| > --------------------
| > | From: <[email protected]>
| > | References: <uq7r#[email protected]>
| > <[email protected]>
| > | Subject: Re: Authorization Form
| > | Date: Tue, 20 Dec 2005 14:05:25 -0500
| > | Lines: 45
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
| > | Message-ID: <#[email protected]>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: 198.160.134.100
| > | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| > | Xref: TK2MSFTNGXA02.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:366057
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > | The main problem with this is that the end user has to print a browser
| > | window, then... There is no control over the header and footer that
IE
| > | might print is there? This has to be an official document. I want to
| > | control everything on the page, including the margins. I know i can
do
| > this
| > | by automating word... Can you do this in a browser?
| > |
| > |
| > | | > | > I think what you don't need to use a MS Word for this task. You can
| > create
| > | a
| > | > template using an HTML/XML and print it using the "window.print();"
| > client
| > | > side method.
| > | >
| > | > Alexey Borzenkov (http://alexborzenkov.iespana.es/)
| > | >
| > | >
| > | > "(e-mail address removed)" wrote:
| > | >
| > | > > When completing certain types of transactions, the users of my
app
| > will
| > | need
| > | > > to have the clients sign an authorization form. I want to add a
| > | to
| > | > > the page that allows them to print the auth form customized with
the
| > | > > client's name, etc... I was thinking of using MS Word and
automating
| > it
| > | > > with client side VBScript. I want to store the template on the
server
| > | so it
| > | > > can be updated centrally. I don't need to save the doc anywhere,
just
| > | open
| > | > > word, fill in the fields and print it to the default printer. I
think
| > | the
| > | > > automation is pretty simple, but how do I open the template from
the
| > | server
| > | > > with client side script?
| > | > >
| > | > > Has anyone done something like this? Is there a better way to
| > | accomplish
| > | > > this? Thanks.
| > | > >
| > | > > Jerry
| > | > >
| > | > >
| > | > >
| > |
| > |
| > |
| >
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top