Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Create a Word document using ASP and RTF Specification

Posted on 2006-06-16
5
Medium Priority
?
357 Views
Last Modified: 2006-11-18
Hi,

I am creating the word document using ASP and RTF Specification. In the word document that i generate following needs to be implemented.

Font to be set to Arial
Some table cells background color should be set to red, yellow,light grey or green.
In the table cells verticalalignment and horizontal alignment are required.
Table border color should be set to black.

Could you please someone help me in implementing the above ones.

Mahesh.
0
Comment
Question by:thotamahesh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
5 Comments
 

Author Comment

by:thotamahesh
ID: 16922293
As of now i am using the following samle code for the background color but it is not working.

cTBL="{\colortbl;\red0\green0\blue0;\red0\green0\blue255;" & _
          "\red0\green255\blue255;\red0\green255\blue0;" & _
          "\red255\green0\blue255;\red255\green0\blue0;" & _
          "\red255\green255\blue0;\red255\green255\blue255;}"
MyFile.WriteLine(cTBL)

sRTF = "\trowd\trhdr\trgaph15\trleft20\trrh262" & _
          "\cellx1500\cellx3000\cellx4500\cellx6000\cellx7500\cellx9000" & _
          "\pard\intbl\ql\cb6\b Project Name \cb0\b0\par\cell" & _
          "\pard\intbl\ql XYZ \par\cell" & _
          "\pard\intbl\ql\b Project Manager \b0\par\cell" & _
          "\pard\intbl\ql ABC \par\cell" & _
              "\pard\intbl\ql\b Report Month \b0\par\cell" & _
          "\pard\intbl\ql June \par\cell" & _
          "\pard\intbl\row"
   MyFile.WriteLine(sRTF)


after including the cb6 also the background color is not set in my word document.
0
 
LVL 12

Accepted Solution

by:
peterxlane earned 2000 total points
ID: 16922364
Create the document in Microsoft Word and save it as RTF.  Then open it up with Notepad to see how it should be formatted...

0
 

Author Comment

by:thotamahesh
ID: 16930402
when I create a the RTF document containing tables...if I open the RTF doc in notepad then junk charcaters are getting displayed.
0
 

Author Comment

by:thotamahesh
ID: 16930529
anyone can explain how my above problems can be solved.
it would be great if some sample code is provided.
0
 

Author Comment

by:thotamahesh
ID: 16941257
any one explain why the below 3 characters {,} and | characters are displayed on the generated RTF document. How to display those characters in the RTF document
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question