473,322 Members | 1,421 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Authorization Form

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
Dec 20 '05 #1
5 1610
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/)
"rl*****@newsgroups.nospam" 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

Dec 20 '05 #2
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" <bo*******@wp.pl_(donotspam)> wrote in message
news:3E**********************************@microsof t.com...
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/)
"rl*****@newsgroups.nospam" 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

Dec 20 '05 #3
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: <rl*****@newsgroups.nospam>
| References: <uq**************@tk2msftngp13.phx.gbl>
<3E**********************************@microsoft.co m>
| 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: <#O**************@TK2MSFTNGP11.phx.gbl>
| 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" <bo*******@wp.pl_(donotspam)> wrote in message
| news:3E**********************************@microsof t.com...
| > 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/)
| >
| >
| > "rl*****@newsgroups.nospam" 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
| > >
| > >
| > >
|
|
|

Dec 21 '05 #4
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]" <st*****@online.microsoft.com> wrote in message news:DI**************@TK2MSFTNGXA02.phx.gbl...
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: <rl*****@newsgroups.nospam>
| References: <uq**************@tk2msftngp13.phx.gbl>
<3E**********************************@microsoft.co m>
| 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: <#O**************@TK2MSFTNGP11.phx.gbl>
| 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" <bo*******@wp.pl_(donotspam)> wrote in message
| news:3E**********************************@microsof t.com...
| > 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/)
| >
| >
| > "rl*****@newsgroups.nospam" 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
| > >
| > >
| > >
|
|
|

Dec 23 '05 #5
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: <rl*****@newsgroups.nospam>
| References: <uq**************@tk2msftngp13.phx.gbl>
<3E**********************************@microsoft.co m>
<#O**************@TK2MSFTNGP11.phx.gbl>
<DI**************@TK2MSFTNGXA02.phx.gbl>
| 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: <#z**************@TK2MSFTNGP09.phx.gbl>
| 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]" <st*****@online.microsoft.com> wrote in message
news:DI**************@TK2MSFTNGXA02.phx.gbl...
| > 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: <rl*****@newsgroups.nospam>
| > | References: <uq**************@tk2msftngp13.phx.gbl>
| > <3E**********************************@microsoft.co m>
| > | 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: <#O**************@TK2MSFTNGP11.phx.gbl>
| > | 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" <bo*******@wp.pl_(donotspam)> wrote in message
| > | news:3E**********************************@microsof t.com...
| > | > 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/)
| > | >
| > | >
| > | > "rl*****@newsgroups.nospam" 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
| > | > >
| > | > >
| > | > >
| > |
| > |
| > |
| >
|

Dec 27 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: nick | last post by:
Hi, How should I write the web.config file to allow some of the aspx files be executable to all users and others are required users to login? All the aspx files are in the same folder.
1
by: Shapper | last post by:
Hello, In my web site I need to restrict the access to page1.aspx, page2.aspx and page3.aspx to users which had login and which access level is "administrator". The remaining pages can be...
4
by: Johnnie Norsworthy | last post by:
ASP.NET 2.0 How do I configure my web site to require forms authorization only for a subfolder off the root? I know how to set Web.config for forms authentication for the whole site, but I need...
2
by: jack | last post by:
HI i have tried different types of form based authentications but im not able to get how to make a session level authorization. im a begginer and im not able to make that difference off like what...
2
by: Gnic | last post by:
Hi, I am a page that sit on a form authentication directory, but I have 1 or 2 pages that don't require form authentication, also I have a web service class in this directory as well, I am...
1
by: las | last post by:
I have created a web service and a simple ASP.Net page that makes calls to the web service (the page roughly mimics the standard Visual Studio web service test page). Running on //localhost, if...
1
by: teo | last post by:
Hallo, I'm performing a mass insertion from a text file to a db table with AdoNet commands, like this: myCommand.CommandText = "BULK INSERT ..." from a Win form no problem
4
by: Max2006 | last post by:
Hi, I have the following tags in my root web.config file: <authorization> <allow roles="RoleA,RoleB"/> <deny users="*"/> </authorization> I also have a public folder in my application...
2
by: Mike Placentra II | last post by:
Hi. When using Server.Transfer() to switch the request to a specific web form (as opposed to a class implementing IHttpHandler, if it makes any difference), do I have to do something special to...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.