Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Authorization Form

Reply
Thread Tools

Authorization Form

 
 
Guest
Posts: n/a
 
      12-20-2005
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


 
Reply With Quote
 
 
 
 
=?Utf-8?B?QWxleGV5IEJvcnplbmtvdg==?=
Guest
Posts: n/a
 
      12-20-2005
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/)


"" 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
>
>
>

 
Reply With Quote
 
 
 
 
Guest
Posts: n/a
 
      12-20-2005
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?


"Alexey Borzenkov" <_(donotspam)> wrote in message
news:3E2EE294-66F5-45FA-BF21-...
> 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/)
>
>
> "" 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
> >
> >
> >



 
Reply With Quote
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      12-21-2005
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: <>
| References: <uq7r#>
<3E2EE294-66F5-45FA-BF21->
| 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: <#>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 198.160.134.100
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP11.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?
|
|
| "Alexey Borzenkov" <_(donotspam)> wrote in message
| news:3E2EE294-66F5-45FA-BF21-...
| > 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/)
| >
| >
| > "" 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
| > >
| > >
| > >
|
|
|

 
Reply With Quote
 
Guest
Posts: n/a
 
      12-23-2005
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","VChe ckAuth.doc")
objWord.ActiveDocument.FormFields("Total").Result = document.getElementById("TrxInfo1_lblTotal").inner Text
objWord.ActiveDocument.FormFields("PayerName").Res ult = document.getElementById("txtAcctName").Value
objWord.ActiveDocument.PrintOut
'I need to wait for Word to finish printing here...
objWord.Quit 0

Thanks.




"Steven Cheng[MSFT]" <> wrote in message news...
> 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: <>
> | References: <uq7r#>
> <3E2EE294-66F5-45FA-BF21->
> | 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: <#>
> | Newsgroups: microsoft.public.dotnet.framework.aspnet
> | NNTP-Posting-Host: 198.160.134.100
> | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP11.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?
> |
> |
> | "Alexey Borzenkov" <_(donotspam)> wrote in message
> | news:3E2EE294-66F5-45FA-BF21-...
> | > 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/)
> | >
> | >
> | > "" 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
> | > >
> | > >
> | > >
> |
> |
> |
>

 
Reply With Quote
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      12-27-2005
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: <>
| References: <uq7r#>
<3E2EE294-66F5-45FA-BF21->
<#>
<>
| 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: <#>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 198.160.134.100
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP09.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","VChe ckAuth.doc")
| objWord.ActiveDocument.FormFields("Total").Result =
document.getElementById("TrxInfo1_lblTotal").inner Text
| objWord.ActiveDocument.FormFields("PayerName").Res ult =
document.getElementById("txtAcctName").Value
| objWord.ActiveDocument.PrintOut
| 'I need to wait for Word to finish printing here...
| objWord.Quit 0
| Thanks.
| "Steven Cheng[MSFT]" <> wrote in message
news...
| > 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: <>
| > | References: <uq7r#>
| > <3E2EE294-66F5-45FA-BF21->
| > | 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: <#>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: 198.160.134.100
| > | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP11.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?
| > |
| > |
| > | "Alexey Borzenkov" <_(donotspam)> wrote in message
| > | news:3E2EE294-66F5-45FA-BF21-...
| > | > 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/)
| > | >
| > | >
| > | > "" 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
| > | > >
| > | > >
| > | > >
| > |
| > |
| > |
| >
|

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
URL Authorization does not override File Authorization? SeanRW ASP .Net Security 1 05-25-2006 06:18 AM
Excluding page authorization in a form authentication directory Gnic ASP .Net 2 03-21-2006 04:00 PM
Form authorization problem nick ASP .Net 3 07-08-2004 07:38 AM
Form Authorization Ticket Not Expiring chongo ASP .Net 1 04-28-2004 03:53 AM
FORM Authorization with POST Tim Frangioso Java 2 10-23-2003 02:09 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57