Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
stephenhardesty #1
Writing Word with CFContent
I can write a simple word document using cfcontent. However, I do not seem to be able to impose any formatting on it. Does anyone out there have any experience with this?
stephenhardesty Guest
-
CFCONTENT
Hello, Is it possible to use <CFCONTENT> within a frame or table layout? seems when I run my code (which is a pop up window), the <cfcontent>... -
cfchart image not exporting to Word when using cfcontent
Hello all, I'm using cfcontent (see code below) to output formatted query results into MS Word, but the cfchart I am creating (see code below) does... -
CFCONTENT and SSL
I've read several online forums concerning the CFCONTENT - PDF problem but haven't seen anything similar to the problem I'm having... I'm... -
Writing a pdf from word using acrobat 4 vs 6 - Missing Graphics
I want to write a version 4 compatible pdf from word. The pdf will be viewed via an internet browser. If I use acrobat 4 no problems. If however I... -
Problem with writing ms-word hheader through ASP.NET(VB.NET)
Hi, I have to generate a word or rtf file on the fly whould have a Header and footer both but i m not able to include the header and footer in... -
stephenhardesty #2
Writing Word with CFContent
I can write a simple word document using cfcontent. However, I do not seem to be able to impose any formatting on it. Does anyone out there have any experience with this?
stephenhardesty Guest
-
Pete Thomas #3
Re: Writing Word with CFContent
One technique is to create a template in word embed your vars #myvar# etc then save to RTF format.
Then open up the template and add it with your necessary CF logic and serve under cfcontent
Pete Thomas Guest
-
kyle969 #4
Re: Writing Word with CFContent
Try creating the document in Word, formatting it how you want, then save it as
HTML. Open the HTML file in dreamweaver and inspect the formatting styles. You
should be able to implement the same style attributes in you document to
reproduce the formatting.
kyle969 Guest
-
-
HeloWorld #6
Re: Writing Word with CFContent
Okely dokely....
I have a question,
How do you go about assigning the relevant styles to the relevant text?
I assume I use the RANGE from the word object model, but i am having some real
difficulty in redifining the new rane to attribute the new formatting to.
I currently have
cfset objdocuments = objword.Documents>
<cfset newdoc = objdocuments.add()>
<cfset docrange = newdoc.range(0)>
<cfset docrange.font.bold = true>
<cfset docrange.text = "Hello this is a test">
<cfset docfilepath = expandpath("hellowayne.doc")>
<cfset newdoc.saveas(docfilepath)>
<cfset newdoc.close()>
this works great and Bolds the whole new text.
how do I now add further text? and apply a different formatting to the new
text?
HeloWorld Guest



Reply With Quote

