Word Com Problems

2003-08-06 Thread Den Melton
The solution at: http://tech.irt.org/articles/js154/index.htm worked very well. Does 
anyone know how to put a page break in after each record is returned so each one 
displays on a seperate page in the document?

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Word Com Problems

2003-07-30 Thread Den Melton
The solution at: http://tech.irt.org/articles/js154/index.htm worked very well. Does 
anyone know how to put a page break in after each record is returned so each one 
displays on a seperate page in the document?
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: Word Com Problems

2003-07-30 Thread Mark Stewart
looking at http://www.asciitable.com/ shows that new page/form feed should be 
#chr(12)#. Don't know if this would work in rtf or not, never tried.

Mark

-Original Message-
From: Den Melton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 2:47 PM
To: CF-Talk
Subject: Word Com Problems


The solution at: http://tech.irt.org/articles/js154/index.htm worked very well. Does 
anyone know how to put a page break in after each record is returned so each one 
displays on a seperate page in the document?

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: Word Com Problems

2003-07-30 Thread Nathan Mische
I think \page is the control word for a required page break in RTF.

HTH

--Nathan

 -Original Message-
 From: Den Melton [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, July 30, 2003 2:47 PM
 To: CF-Talk
 Subject: Word Com Problems
 
 
 The solution at: http://tech.irt.org/articles/js154/index.htm 
 worked very well. Does anyone know how to put a page break in 
 after each record is returned so each one displays on a 
 seperate page in the document? 
 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: Word Com Problems

2003-07-30 Thread Philip Arnold
 The solution at: http://tech.irt.org/articles/js154/index.htm
 worked very well. Does anyone know how to put a page break in
 after each record is returned so each one displays on a
 seperate page in the document?

OK, first of all, writing a RTF file is NOT a COM problem, you're not
even touching COM

Anyways, in RTF \page is a page break, so write that with a space
after it and it should put a page break in

HTH



~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Word Com Problems

2002-01-22 Thread Douglas Jordon

Hi,

 I'm trying to generate an events calendar in Word via CF. I've tried
two solutions, both of which have problems:

 1. The first used CFTRY CFCATCH etc from cfcomet.com to test for a
Word instance and then launch a new if necessary. The code works, but
the problem with this one is that the winword.exes accumulate and can't
be shut down except by rebooting(Debug is grayed out). It seems that
every third or fourth call would start a new winword.exe.

 2. Writing a Server variable. The code is from Ben Forta's Advanced CF
Development. It successfully runs the first time and shuts down the
process, but any subsequent attempts get this:

 Error building an argument list for: VISIBLE

 COM error 0x8001010E. The application called an interface that was
marshalled for a different thread.

I tried changing the scope to session variables with the same result:
one success then failure.

 Any ideas? Code below

 Thanks,

 Doug Jordon

Solution 1:

!--- Try to connect to the Word application object ---
  CFTRY
 !--- If it exists, connect to it ---
  CFOBJECT
 ACTION=CONNECT
 CLASS=Word.Application
 NAME=objWord
 TYPE=COM
   CFCATCH
!---  The object doesn't exist, so create it ---
 CFOBJECT
 ACTION=CREATE
 CLASS=Word.Application
 NAME=objWord
 TYPE=COM
   /CFCATCH
 /CFTRY

Solution 2:

 !--- See if the Server object exists ---
 cfif not isdefined(Server.objWord)
   !--- Create the object ---

  CFOBJECT
 ACTION=CREATE
 CLASS=Word.Application
 NAME=objWord
 TYPE=COM
   !--- Exclusive lock in the Server scope ---
   cflock
   type=Exclusive
   scope=SERVER
   timeout=10
   throwontimeout=Yes

   !--- Pass the COM reference to the Server scope ---

 cfset Server.objWord = objWord
   /cflock
   /cfif
  !--- Read-only lock in the Server scope ---
  cflock type=READONLY
   scope=SERVER
   timeout=10
   throwontimeout=Yes
   !--- pointer to the original Server variable ---
 cfset objWord = Server.objWord
   /cflock
__
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Word Com Problems

2002-01-22 Thread Dave Hannum

Have you explored creating an RTF file in lieu of a Word document?  It's
much less resource intensive and won't crash the server like spawning
winword.exe can.

Just a thought.

Dave


- Original Message -
From: Douglas Jordon [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, January 22, 2002 1:30 PM
Subject: Word Com Problems


Hi,

 I'm trying to generate an events calendar in Word via CF. I've tried
two solutions, both of which have problems:

 1. The first used CFTRY CFCATCH etc from cfcomet.com to test for a
Word instance and then launch a new if necessary. The code works, but
the problem with this one is that the winword.exes accumulate and can't
be shut down except by rebooting(Debug is grayed out). It seems that
every third or fourth call would start a new winword.exe.

 2. Writing a Server variable. The code is from Ben Forta's Advanced CF
Development. It successfully runs the first time and shuts down the
process, but any subsequent attempts get this:

 Error building an argument list for: VISIBLE

 COM error 0x8001010E. The application called an interface that was
marshalled for a different thread.

I tried changing the scope to session variables with the same result:
one success then failure.

 Any ideas? Code below

 Thanks,

 Doug Jordon

Solution 1:

!--- Try to connect to the Word application object ---
  CFTRY
 !--- If it exists, connect to it ---
  CFOBJECT
 ACTION=CONNECT
 CLASS=Word.Application
 NAME=objWord
 TYPE=COM
   CFCATCH
!---  The object doesn't exist, so create it ---
 CFOBJECT
 ACTION=CREATE
 CLASS=Word.Application
 NAME=objWord
 TYPE=COM
   /CFCATCH
 /CFTRY

Solution 2:

 !--- See if the Server object exists ---
 cfif not isdefined(Server.objWord)
   !--- Create the object ---

  CFOBJECT
 ACTION=CREATE
 CLASS=Word.Application
 NAME=objWord
 TYPE=COM
   !--- Exclusive lock in the Server scope ---
   cflock
   type=Exclusive
   scope=SERVER
   timeout=10
   throwontimeout=Yes

   !--- Pass the COM reference to the Server scope ---

 cfset Server.objWord = objWord
   /cflock
   /cfif
  !--- Read-only lock in the Server scope ---
  cflock type=READONLY
   scope=SERVER
   timeout=10
   throwontimeout=Yes
   !--- pointer to the original Server variable ---
 cfset objWord = Server.objWord
   /cflock

__
Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Word Com Problems

2002-01-22 Thread Douglas Jordon

Sounds good. How do I do that?

Dave Hannum wrote:

 Have you explored creating an RTF file in lieu of a Word document?  It's
 much less resource intensive and won't crash the server like spawning
 winword.exe can.

 Just a thought.

 Dave
__
Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists