473,398 Members | 2,812 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,398 software developers and data experts.

linking ASP to client MS Word

Hi guys

Basically, I want to be able to print labels and invoices (via MS Word) for
net orders, using our ASP site admin system.

Heres the code I've come up with...

<%
Call OpenDBConnection("data")

set labeldata = dConn.Execute("SELECT * FROM Orders ORDER BY OrderNo DESC")

address = labeldata("CartID")
firstline = labeldata("CartID")
address = address & vbCrLf & labeldata("Name") & vbCrLf &
labeldata("Address") & vbCrLf & labeldata("PostCode") & vbCrLf &
labeldata("Country")

labeldata.Close()
set labeldata = nothing

set app = createobject("Word.Application")
app.Application.Visible = True
app.Documents.Add()
app.Selection.TypeText(address)
app.Selection.WholeStory()
app.Application.MailingLabel.DefaultPrintBarCode = False
app.Application.MailingLabel.PrintOut "2160 Mini", firstline,
wdPrinterManualFeed, true, 1, 1

Call CloseDBConnection()
%>

This works fine with my localhost IIS5, however, I suspect that when I
transfer this to the webserver, it's gonna try and run Word on the server.
What we wanna do is run the code on the server, so that it loads Word on the
client machine and prints the labels.

How can this be done? Any help greatly appreciated!

Cheers
Dan
Jul 19 '05 #1
1 1490
> What we wanna do is run the code on the server, so that it loads Word on
the
client machine and prints the labels.


This is a contradiction. You can't run code on the server that even thinks
about touching Word on the client (yes, even in an Intranet scenario). You
need a client-server application, not a web page, to do this.

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
Jul 19 '05 #2

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

Similar topics

1
by: Ben | last post by:
Hi all, I'm relatively new to C++ and have a quick question concerning a better way to perform runtime linking. Currently a client wishes to create a class in a .dll. I export 2 methods from my...
20
by: Steven T. Hatton | last post by:
I just read this in the description of how C++ is supposed to be implemented: "All external object and function references are resolved. Library components are linked to satisfy external...
18
by: Mark P | last post by:
I have a bit of vb code that uses Tables.Append to programatically link tables from Oracle and DB2 datasources. The problem I am having on some client machines is that the link will take anywhere...
2
by: Matthew Wells | last post by:
Good morning... I have an Access front end that uses SQL Server linked tables. SQL Server uses Windows authentication. I have one Windows group that all Access users are a member of. I added...
6
by: Yuri Vanzine | last post by:
In asp we can run VBSCRIPT client-side which allows for 'easy' :?) ms office COM object instantiation. How do I access a Word object in ASP.NET on the client side? I would like to do spell...
1
by: Joel Barsotti | last post by:
Is there anything builtin to ASP.net that allows you to tie a text box to a button so when you press enter in the text box it emulates clicking a near by button. I've coded up some client side...
2
by: ashesman | last post by:
OK, I have written an application in MS Visual C# using .net. Is it posibble to static link into one self contained .exe file? This would certainly make distribution of a small accessory file...
1
by: Andrew Wan | last post by:
I am having problems linking an assembly object with my C object files. Am getting: Linker Warning: DOSSEG directive ignored in module asm.asm Linker Error: Undefined symbol _ASMClsV in module...
2
by: mburns | last post by:
Hello all- I was wondering if it is possible to link an Access query or table to a Word document and pull specific information into Word by manually entering a unique identifier, which would then...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.