473,670 Members | 2,343 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1627
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*****@newsgr oups.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.p l_(donotspam)> wrote in message
news:3E******** *************** ***********@mic rosoft.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*****@newsgr oups.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*****@newsgr oups.nospam>
| References: <uq************ **@tk2msftngp13 .phx.gbl>
<3E************ *************** *******@microso ft.com>
| 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.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: 198.160.134.100
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP11.phx. gbl
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3660 57
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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.p l_(donotspam)> wrote in message
| news:3E******** *************** ***********@mic rosoft.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*****@newsgr oups.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("W ord.Application ")
objWord.Visible = True objWord.Documen ts.Add Replace(documen t.url,"TrxWizVC heckInfo.aspx", "VCheckAuth.doc ")
objWord.ActiveD ocument.FormFie lds("Total").Re sult = document.getEle mentById("TrxIn fo1_lblTotal"). innerText
objWord.ActiveD ocument.FormFie lds("PayerName" ).Result = document.getEle mentById("txtAc ctName").Value
objWord.ActiveD ocument.PrintOu t
'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******** ******@TK2MSFTN GXA02.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*****@newsgr oups.nospam>
| References: <uq************ **@tk2msftngp13 .phx.gbl>
<3E************ *************** *******@microso ft.com>
| 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.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: 198.160.134.100
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP11.phx. gbl
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3660 57
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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.p l_(donotspam)> wrote in message
| news:3E******** *************** ***********@mic rosoft.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*****@newsgr oups.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*****@newsgr oups.nospam>
| References: <uq************ **@tk2msftngp13 .phx.gbl>
<3E************ *************** *******@microso ft.com>
<#O************ **@TK2MSFTNGP11 .phx.gbl>
<DI************ **@TK2MSFTNGXA0 2.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.0 2F5A790"
| 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.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: 198.160.134.100
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP09.phx. gbl
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3667 86
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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("W ord.Application ")
| objWord.Visible = True objWord.Documen ts.Add
Replace(documen t.url,"TrxWizVC heckInfo.aspx", "VCheckAuth.doc ")
| objWord.ActiveD ocument.FormFie lds("Total").Re sult =
document.getEle mentById("TrxIn fo1_lblTotal"). innerText
| objWord.ActiveD ocument.FormFie lds("PayerName" ).Result =
document.getEle mentById("txtAc ctName").Value
| objWord.ActiveD ocument.PrintOu t
| '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******** ******@TK2MSFTN GXA02.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*****@newsgr oups.nospam>
| > | References: <uq************ **@tk2msftngp13 .phx.gbl>
| > <3E************ *************** *******@microso ft.com>
| > | 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.publi c.dotnet.framew ork.aspnet
| > | NNTP-Posting-Host: 198.160.134.100
| > | Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP11.phx. gbl
| > | Xref: TK2MSFTNGXA02.p hx.gbl
| > microsoft.publi c.dotnet.framew ork.aspnet:3660 57
| > | X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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.p l_(donotspam)> wrote in message
| > | news:3E******** *************** ***********@mic rosoft.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*****@newsgr oups.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
2511
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
327
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 accessed by all users without needing to login. My problem is how to set this in my web.config <authorization> tag:
4
1978
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 the root folder to allow all read access, and a single subfolder to require authorization. Thanks for any assistance. -Johnnie
2
1373
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 is form based authentication and form based authorization please help me in undestanding the difference between these two. Thanks for replying me ..
2
2472
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 wondering how can I exclude those aspx and asmx from form authentication? thanks Gnic
1
1329
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 I disable Windows Authentication in IIS, both my test page and the VS test page work just fine. But if I enable Windows Authentication, my test page gives a (401) Unauthorized error when it tries to call a web service function. Calls from the VS...
1
2002
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
5335
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 called "~/Public"
2
1638
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 have Request.IsAuthorized set properly? When searching for a solution I read that Server.Transfer() does not invoke the AuthorizeRequest event or something. Is there maybe a way to make that happen since the request is being transferred to a web...
0
8469
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
8386
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8814
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8661
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6213
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4211
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4391
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2800
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1794
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.