473,386 Members | 1,795 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,386 software developers and data experts.

Is this possible? Session sharing etc.

HG
Hi gurus

Sorry the rather long post...

I am facing a real world problem here, and I dunno how to approach it.
Don't even know if this is the right group...but since my app is ASP.NET I
tried here first.

I have an ASP.NET WebApp running, database tier is SQL Server 2000 in a
intranet environment.
The front end is HTML (generated from ASP.NET pages). Nothing new here.

BUT:

I want to add letter writing and reporting facilities based on the data in
SQL Server.
The lette writing has to be done in Word and the reporting in Excel. So I
though of the following scenario:

- Have a template (.dot for Word), which is hosted on the Web Server. When
the user hits the link to the template my ASP.NET page will put some
parameters in the session, before it return the requested template as
content to the browser. In the document template a VBA OnLoad eventhandler
has been implemented. What it will do, comes later.
- When the template is received at the browser, it show a new document based
on this template AND the code in the VBA OnLoad eventhandler is executed.
- The VBA code, contacts a WebService hosted on the very same webserver that
the template was received from. The WebService fetches the parameters that
were placed on the session before returned the document template, and
executes a query against the database. The result of the quuery is returned
as XML to the client (ie. still the OnLoad eventhandler)
- The VBA code, parses the XML and performs inserts at the correct places in
the new document.
- Done.!

Serveral issue arise here:
1)
Does the template show up as a new document based on that template?
2)
Does security setttings allow the OnLoad eventhandler to be executed?
3)
Does WebService call share the same session as the browser? Is it possible
to get to the parameters that the ASP.NET page placed there?

These 3 issues a crucial for the above to work.

Are there any other way... What about the WebServices ToolKit for Office XP?

Anyone please

Nov 18 '05 #1
4 1415
Hi HG:

#3 is an issue as the web service call from Office program will not
share a session with the browser. Any chance your requirements allow
you to prompt the user for a ticket number or login?

--
Scott
http://www.OdeToCode.com/

On Tue, 12 Oct 2004 12:02:05 +0200, "HG" <hg@nospam.websolver.dk>
wrote:
Hi gurus

Sorry the rather long post...

I am facing a real world problem here, and I dunno how to approach it.
Don't even know if this is the right group...but since my app is ASP.NET I
tried here first.

I have an ASP.NET WebApp running, database tier is SQL Server 2000 in a
intranet environment.
The front end is HTML (generated from ASP.NET pages). Nothing new here.

BUT:

I want to add letter writing and reporting facilities based on the data in
SQL Server.
The lette writing has to be done in Word and the reporting in Excel. So I
though of the following scenario:

- Have a template (.dot for Word), which is hosted on the Web Server. When
the user hits the link to the template my ASP.NET page will put some
parameters in the session, before it return the requested template as
content to the browser. In the document template a VBA OnLoad eventhandler
has been implemented. What it will do, comes later.
- When the template is received at the browser, it show a new document based
on this template AND the code in the VBA OnLoad eventhandler is executed.
- The VBA code, contacts a WebService hosted on the very same webserver that
the template was received from. The WebService fetches the parameters that
were placed on the session before returned the document template, and
executes a query against the database. The result of the quuery is returned
as XML to the client (ie. still the OnLoad eventhandler)
- The VBA code, parses the XML and performs inserts at the correct places in
the new document.
- Done.!

Serveral issue arise here:
1)
Does the template show up as a new document based on that template?
2)
Does security setttings allow the OnLoad eventhandler to be executed?
3)
Does WebService call share the same session as the browser? Is it possible
to get to the parameters that the ASP.NET page placed there?

These 3 issues a crucial for the above to work.

Are there any other way... What about the WebServices ToolKit for Office XP?

Anyone please


Nov 18 '05 #2
HG
Hi Scott

Thanx for answering so fast.

My worst fear just realized itself :-)

No, I was kinda suspecting that... I do not have any chance of promting for
a login as this must happen as seamlessly as possible.

BUT, that said:

I have checked out the new "developer friendly" toolkit of Office 2003,
which happens to be what I can expect to be on the client.
Intranet environment you know..... You can actually predict what is on the
client...GREAT compared to Internet solutions...

From Office 2003 (Maybe Office XP, too, couldn't find that), Word and Excel
supports saving in XML format, that is Word ML and Excel ML.
How about this scenario then.
1)
Construct the Word/Excel ML based on a template and fill in the data
serverside.

2)
Stream the result to the client (browser) with content type
"application/ms-word". Just as you could stream a "tab-delimited-file" to
the browser nowadays with content type "application/ms.excel".

3)
Browser fires up Word/Excel and it knows exactly how to deal with the
Word/Excel ML content...

4)
Done. You have a report/letter containing the data and layout you want.

Can anyone confirm this is the way to go....maybe there's a even better
way...

Thanx in advance

Regards

Henrik
"Scott Allen" <bitmask@[nospam].fred.net> skrev i en meddelelse
news:kl********************************@4ax.com...
Hi HG:

#3 is an issue as the web service call from Office program will not
share a session with the browser. Any chance your requirements allow
you to prompt the user for a ticket number or login?

--
Scott
http://www.OdeToCode.com/

On Tue, 12 Oct 2004 12:02:05 +0200, "HG" <hg@nospam.websolver.dk>
wrote:
Hi gurus

Sorry the rather long post...

I am facing a real world problem here, and I dunno how to approach it.
Don't even know if this is the right group...but since my app is ASP.NET Itried here first.

I have an ASP.NET WebApp running, database tier is SQL Server 2000 in a
intranet environment.
The front end is HTML (generated from ASP.NET pages). Nothing new here.

BUT:

I want to add letter writing and reporting facilities based on the data inSQL Server.
The lette writing has to be done in Word and the reporting in Excel. So I
though of the following scenario:

- Have a template (.dot for Word), which is hosted on the Web Server. Whenthe user hits the link to the template my ASP.NET page will put some
parameters in the session, before it return the requested template as
content to the browser. In the document template a VBA OnLoad eventhandlerhas been implemented. What it will do, comes later.
- When the template is received at the browser, it show a new document basedon this template AND the code in the VBA OnLoad eventhandler is executed.
- The VBA code, contacts a WebService hosted on the very same webserver thatthe template was received from. The WebService fetches the parameters thatwere placed on the session before returned the document template, and
executes a query against the database. The result of the quuery is returnedas XML to the client (ie. still the OnLoad eventhandler)
- The VBA code, parses the XML and performs inserts at the correct places inthe new document.
- Done.!

Serveral issue arise here:
1)
Does the template show up as a new document based on that template?
2)
Does security setttings allow the OnLoad eventhandler to be executed?
3)
Does WebService call share the same session as the browser? Is it possibleto get to the parameters that the ASP.NET page placed there?

These 3 issues a crucial for the above to work.

Are there any other way... What about the WebServices ToolKit for Office XP?
Anyone please

Nov 18 '05 #3
Hi Henrik:

I think this approach will be better. Creating the office xml markup
server side is a lightweight approach and much better than trying to
automate Word on the web server. Microsoft SQL Reporting Services can
use this approach and it works well (better than PDF rendering from a
performance standpoint).

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 12 Oct 2004 15:53:10 +0200, "HG" <hg@nospam.websolver.dk>
wrote:
Hi Scott

Thanx for answering so fast.

My worst fear just realized itself :-)

No, I was kinda suspecting that... I do not have any chance of promting for
a login as this must happen as seamlessly as possible.

BUT, that said:

I have checked out the new "developer friendly" toolkit of Office 2003,
which happens to be what I can expect to be on the client.
Intranet environment you know..... You can actually predict what is on the
client...GREAT compared to Internet solutions...

From Office 2003 (Maybe Office XP, too, couldn't find that), Word and Excel
supports saving in XML format, that is Word ML and Excel ML.
How about this scenario then.
1)
Construct the Word/Excel ML based on a template and fill in the data
serverside.

2)
Stream the result to the client (browser) with content type
"application/ms-word". Just as you could stream a "tab-delimited-file" to
the browser nowadays with content type "application/ms.excel".

3)
Browser fires up Word/Excel and it knows exactly how to deal with the
Word/Excel ML content...

4)
Done. You have a report/letter containing the data and layout you want.

Can anyone confirm this is the way to go....maybe there's a even better
way...

Thanx in advance

Regards

Henrik
"Scott Allen" <bitmask@[nospam].fred.net> skrev i en meddelelse
news:kl********************************@4ax.com.. .
Hi HG:

#3 is an issue as the web service call from Office program will not
share a session with the browser. Any chance your requirements allow
you to prompt the user for a ticket number or login?

--
Scott
http://www.OdeToCode.com/

On Tue, 12 Oct 2004 12:02:05 +0200, "HG" <hg@nospam.websolver.dk>
wrote:
>Hi gurus
>
>Sorry the rather long post...
>
>I am facing a real world problem here, and I dunno how to approach it.
>Don't even know if this is the right group...but since my app is ASP.NETI >tried here first.
>
>I have an ASP.NET WebApp running, database tier is SQL Server 2000 in a
>intranet environment.
>The front end is HTML (generated from ASP.NET pages). Nothing new here.
>
>BUT:
>
>I want to add letter writing and reporting facilities based on the datain >SQL Server.
>The lette writing has to be done in Word and the reporting in Excel. So I
>though of the following scenario:
>
>- Have a template (.dot for Word), which is hosted on the Web Server.When >the user hits the link to the template my ASP.NET page will put some
>parameters in the session, before it return the requested template as
>content to the browser. In the document template a VBA OnLoadeventhandler >has been implemented. What it will do, comes later.
>- When the template is received at the browser, it show a new documentbased >on this template AND the code in the VBA OnLoad eventhandler is executed.
>- The VBA code, contacts a WebService hosted on the very same webserverthat >the template was received from. The WebService fetches the parametersthat >were placed on the session before returned the document template, and
>executes a query against the database. The result of the quuery isreturned >as XML to the client (ie. still the OnLoad eventhandler)
>- The VBA code, parses the XML and performs inserts at the correct placesin >the new document.
>- Done.!
>
>Serveral issue arise here:
>1)
>Does the template show up as a new document based on that template?
>2)
>Does security setttings allow the OnLoad eventhandler to be executed?
>3)
>Does WebService call share the same session as the browser? Is itpossible >to get to the parameters that the ASP.NET page placed there?
>
>These 3 issues a crucial for the above to work.
>
>Are there any other way... What about the WebServices ToolKit for OfficeXP? >
>Anyone please
>
>


Nov 18 '05 #4
HG
Hi again Scott

Tremendous, thanx...and lightwight indeed.

I will check out reporting services

/Henrik

"Scott Allen" <bitmask@[nospam].fred.net> skrev i en meddelelse
news:fe********************************@4ax.com...
Hi Henrik:

I think this approach will be better. Creating the office xml markup
server side is a lightweight approach and much better than trying to
automate Word on the web server. Microsoft SQL Reporting Services can
use this approach and it works well (better than PDF rendering from a
performance standpoint).

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 12 Oct 2004 15:53:10 +0200, "HG" <hg@nospam.websolver.dk>
wrote:
Hi Scott

Thanx for answering so fast.

My worst fear just realized itself :-)

No, I was kinda suspecting that... I do not have any chance of promting fora login as this must happen as seamlessly as possible.

BUT, that said:

I have checked out the new "developer friendly" toolkit of Office 2003,
which happens to be what I can expect to be on the client.
Intranet environment you know..... You can actually predict what is on theclient...GREAT compared to Internet solutions...

From Office 2003 (Maybe Office XP, too, couldn't find that), Word and Excelsupports saving in XML format, that is Word ML and Excel ML.
How about this scenario then.
1)
Construct the Word/Excel ML based on a template and fill in the data
serverside.

2)
Stream the result to the client (browser) with content type
"application/ms-word". Just as you could stream a "tab-delimited-file" to
the browser nowadays with content type "application/ms.excel".

3)
Browser fires up Word/Excel and it knows exactly how to deal with the
Word/Excel ML content...

4)
Done. You have a report/letter containing the data and layout you want.

Can anyone confirm this is the way to go....maybe there's a even better
way...

Thanx in advance

Regards

Henrik
"Scott Allen" <bitmask@[nospam].fred.net> skrev i en meddelelse
news:kl********************************@4ax.com.. .
Hi HG:

#3 is an issue as the web service call from Office program will not
share a session with the browser. Any chance your requirements allow
you to prompt the user for a ticket number or login?

--
Scott
http://www.OdeToCode.com/

On Tue, 12 Oct 2004 12:02:05 +0200, "HG" <hg@nospam.websolver.dk>
wrote:

>Hi gurus
>
>Sorry the rather long post...
>
>I am facing a real world problem here, and I dunno how to approach it.
>Don't even know if this is the right group...but since my app is ASP.NET
I
>tried here first.
>
>I have an ASP.NET WebApp running, database tier is SQL Server 2000 in
a >intranet environment.
>The front end is HTML (generated from ASP.NET pages). Nothing new here. >
>BUT:
>
>I want to add letter writing and reporting facilities based on the datain
>SQL Server.
>The lette writing has to be done in Word and the reporting in Excel.
So I >though of the following scenario:
>
>- Have a template (.dot for Word), which is hosted on the Web Server.

When
>the user hits the link to the template my ASP.NET page will put some
>parameters in the session, before it return the requested template as
>content to the browser. In the document template a VBA OnLoad

eventhandler
>has been implemented. What it will do, comes later.
>- When the template is received at the browser, it show a new document

based
>on this template AND the code in the VBA OnLoad eventhandler is executed. >- The VBA code, contacts a WebService hosted on the very same

webserverthat
>the template was received from. The WebService fetches the parameters

that
>were placed on the session before returned the document template, and
>executes a query against the database. The result of the quuery is

returned
>as XML to the client (ie. still the OnLoad eventhandler)
>- The VBA code, parses the XML and performs inserts at the correct
placesin
>the new document.
>- Done.!
>
>Serveral issue arise here:
>1)
>Does the template show up as a new document based on that template?
>2)
>Does security setttings allow the OnLoad eventhandler to be executed?
>3)
>Does WebService call share the same session as the browser? Is it

possible
>to get to the parameters that the ASP.NET page placed there?
>
>These 3 issues a crucial for the above to work.
>
>Are there any other way... What about the WebServices ToolKit for
OfficeXP?
>
>Anyone please
>
>

Nov 18 '05 #5

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

Similar topics

0
by: iotaivy | last post by:
wo have several sites on a same server and these sites use subdomains of a top domain,such as www.mycom.com, admin.mycom.com, forum.mycom.com.now we want these sites to share the session state(such...
3
by: Keith Patrick | last post by:
I have an app (A) that has a link to another (B) app that it spawns in a new window. The new window has a link back to app A, opening a third window (let's call it A2). The problem is, I need A2...
4
by: Daniel | last post by:
Hi I am having a problem sharing session between SSL and non-SSL asp.net pages I have F5 BigIP with sticky sessions working fine, but the problem is tha sticky session applies at the port level...
3
by: Mark | last post by:
Ok, I know that .net inherently does not share session data across asp.net projects, but is there any decent work around to this. We already have a big chunk of our application using the asp.net...
6
by: Andrew Robinson | last post by:
I am running two servers with a hardware network load balancing device. I know that to share session information between the two servers I need to implement some type of SQL based session...
7
by: Doug | last post by:
An ASP.NET session cookie set on "www.mydomain.com" can not be accessed on "search.mydomain.com"; hence, a new session and cookie are being created on every sub-domain. This is occuring because...
5
by: Soren S. Jorgensen | last post by:
Hi, I've got a web-app thats activated by a call to a aspx page from ASP, I need to go back to the ASP session and get some simple data saved in that session. I have no possiblity to do...
7
by: Victor | last post by:
I've got two domain names sharing the same IP address that use ASP VBScript If I set a session variable with domain 1, it is only available for domain 1 - this is correct? If I set an...
8
by: antonyliu2002 | last post by:
We are extending a web application written in classic ASP long time ago. We will add more components to this web application in ASP.NET 2.0. To use the web application, our web users will have...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.