Classic ASP ProfessionalFor advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
I have a local 2003 MS Word SP2 - When I create word docs using ASP it all works fine, saves fine, views fine - no problems here.
However
The SOE I am coding for is 2003 MS Word SP1 - When I run the same code the word doc gets built, but the doc opens with all my table borders on. It is a heirachial type workflow doc with loads of tables, or the potential to have loads due to it all being built by user inputs, etc
A print preview does not include the borders, nor when its printed.
BTW: I have placed my style sheet inside the .asp page, no include is present. Am creating the doc like so:
Response.ContentType = "application/msword"
1..Any ideas how to get rid of these annoying borders?
2..Any ideas of the syntax to dictate the file name also? It defaults to the page name of the ASP file which generates the doc. I wish to place the date and a database value as the file name (if achieved I do realize the user can change this)
Would very much like to upgrade to SP2 however this is a very strict SOE (Defence), this is not an option.
Your web site has some great tips on creating .xls files. I have used your wisdom in the past however I can not see anyting to resolve my problem there. It was the first place I looked, after Wrox of course...
The CSS thing. I always use absolute paths where ever possible. To avoid any potential issues I have included my styles in the head of the page, therefore no referece neccesary. By trial end error I thought this was the best move, do you agree?
My 2 issues remain:
1..How to dictate the file name rather than it defaulting to the .asp page name which generates the file
2..How to get rid od these annoying table borders when its viewed in Word as described in my initial post