ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 6th, 2003, 01:49 AM
rajashika rajashika is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 10 rajashika User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
How to :insert page breaks......

Hi all,

Preparing a report form in word file using ASP.

How to insert page breaks in word file through ASP to perform a
client side report.


thank in advance

with regards
Raj

Reply With Quote
  #2  
Old November 6th, 2003, 04:09 AM
Pain Pain is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Sheffield, UK
Posts: 94 Pain User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via ICQ to Pain
page break as in the html equivalent of <br> ?

response.write("<br>") (or any other tag you wish)

Reply With Quote
  #3  
Old November 6th, 2003, 11:39 PM
rajashika rajashika is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 10 rajashika User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question page break in word

Hi Pain,

I tried with Response.write but its not working.
i wann the page break in word file.

i am sending an attachment of ASP file.Plz have look.

with regards
Rajneesh
Attached Files
File Type: asp asample.asp (8.0 KB, 208 views)

Reply With Quote
  #4  
Old November 7th, 2003, 03:25 AM
Pain Pain is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Sheffield, UK
Posts: 94 Pain User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via ICQ to Pain
Hi

I took a look and the only three things that I noticed were:

1. The structure of your SQL statement needs looking at - extra spacing in the statement _can_ (not always) cause problems.
2. Im assuming that you want the information to be displayed on this page. I would recommend that you try using rs.Fields("myvar").value rather than just rs.Fields("myvar")
3. 'Response.Write "<meta http-equiv=""refresh"" content=" "0;url="& sfilename &""">" shouldnt go at the bottom of the page, but at the top. It shouldnt have to go in a response.write function. It should go where it says

<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
in between the <head> tags

Otherwise, i cant see why response.write wouldnt work, unless its because its missing a response.end at the end

Reply With Quote
  #5  
Old November 7th, 2003, 04:39 AM
m3ckon m3ckon is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Sheffield UK
Posts: 69 m3ckon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 57 sec
Reputation Power: 5
I thought it was just

MyFile.WriteLine("\pard \page")

Reply With Quote
  #6  
Old November 8th, 2003, 02:19 AM
rajashika rajashika is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 10 rajashika User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi Pain,
I tried the steps suggested by u
1. created the system DSN
2. when i tried to merge the data source with the designed MsWord document it is giving the following error:

ORA-12541: TNS:No listener
Driver's SQLSetConnectAttr Failed


if i go for File DSN is it possible or not......

with regards
Rajneesh

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > How to :insert page breaks......


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway