PC Review


Reply
Thread Tools Rate Thread

Create a Text file from Excel

 
 
=?Utf-8?B?TXVydGh5?=
Guest
Posts: n/a
 
      6th Mar 2007
I am trying to create a report, in text format from Excel.

So far I have been successful in creating an object, and put the records
line by line with WriteLine method.

In text-based reports, the common requirement is putting headers, footers,
and more importantly, setting the number of lines per page. I used a line
counter in my program.

What I need to know is:

1. How will I tell Excel to put a page break in the text file being created?

2. How will I tell Excel to make some headings bold? or Underlined?

Murthy
 
Reply With Quote
 
 
 
 
Tim Williams
Guest
Posts: n/a
 
      6th Mar 2007
Plain text has no line breaks or formatting.
If you need that kind of report you'll have to use a different format, such as maybe HTML or Word.

--
Tim Williams
Palo Alto, CA


"Murthy" <(E-Mail Removed)> wrote in message news:631E90F3-97EE-4169-82D3-(E-Mail Removed)...
> I am trying to create a report, in text format from Excel.
>
> So far I have been successful in creating an object, and put the records
> line by line with WriteLine method.
>
> In text-based reports, the common requirement is putting headers, footers,
> and more importantly, setting the number of lines per page. I used a line
> counter in my program.
>
> What I need to know is:
>
> 1. How will I tell Excel to put a page break in the text file being created?
>
> 2. How will I tell Excel to make some headings bold? or Underlined?
>
> Murthy



 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      6th Mar 2007
I bet you meant that plain text files don't have page breaks.

Line breaks are pretty common in text files <bg>.

Tim Williams wrote:
>
> Plain text has no line breaks or formatting.
> If you need that kind of report you'll have to use a different format, such as maybe HTML or Word.
>
> --
> Tim Williams
> Palo Alto, CA
>
> "Murthy" <(E-Mail Removed)> wrote in message news:631E90F3-97EE-4169-82D3-(E-Mail Removed)...
> > I am trying to create a report, in text format from Excel.
> >
> > So far I have been successful in creating an object, and put the records
> > line by line with WriteLine method.
> >
> > In text-based reports, the common requirement is putting headers, footers,
> > and more importantly, setting the number of lines per page. I used a line
> > counter in my program.
> >
> > What I need to know is:
> >
> > 1. How will I tell Excel to put a page break in the text file being created?
> >
> > 2. How will I tell Excel to make some headings bold? or Underlined?
> >
> > Murthy


--

Dave Peterson
 
Reply With Quote
 
Tim Williams
Guest
Posts: n/a
 
      6th Mar 2007
Err... yes - I did mean page breaks.
Thanks for the catch.



--
Tim Williams
Palo Alto, CA


"Dave Peterson" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> I bet you meant that plain text files don't have page breaks.
>
> Line breaks are pretty common in text files <bg>.
>
> Tim Williams wrote:
> >
> > Plain text has no line breaks or formatting.
> > If you need that kind of report you'll have to use a different format, such as maybe HTML or Word.
> >
> > --
> > Tim Williams
> > Palo Alto, CA
> >
> > "Murthy" <(E-Mail Removed)> wrote in message news:631E90F3-97EE-4169-82D3-(E-Mail Removed)...
> > > I am trying to create a report, in text format from Excel.
> > >
> > > So far I have been successful in creating an object, and put the records
> > > line by line with WriteLine method.
> > >
> > > In text-based reports, the common requirement is putting headers, footers,
> > > and more importantly, setting the number of lines per page. I used a line
> > > counter in my program.
> > >
> > > What I need to know is:
> > >
> > > 1. How will I tell Excel to put a page break in the text file being created?
> > >
> > > 2. How will I tell Excel to make some headings bold? or Underlined?
> > >
> > > Murthy

>
> --
>
> Dave Peterson



 
Reply With Quote
 
 
 
Reply

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create a UTF-8 text file from excel VBA mah_kum_70 Microsoft Excel Misc 1 29th Apr 2006 10:12 PM
Help - Can Excel create a text file?? Acube Microsoft Excel Programming 3 18th Dec 2005 06:15 PM
Can I use Excel to create this text file? =?Utf-8?B?QmlnSWFu?= Microsoft Excel Worksheet Functions 4 15th Sep 2005 03:06 PM
How to create text file from selected excel data Per Magnus L?vold Microsoft Excel Programming 2 22nd Jul 2004 05:26 PM
Create and write a simple text file in Excel/VBA Thomas Wieser Microsoft Excel Programming 4 13th Apr 2004 10:24 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:32 PM.