Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #38522 > unrolled thread

Any idea how i can format my output file with ********************Start file*********************** usinf Python 2.7

Started byMorten Engvoldsen <mortenengv@gmail.com>
First post2013-02-09 15:27 +0100
Last post2013-02-09 14:56 -0500
Articles 3 — 3 participants

Back to article view | Back to comp.lang.python


Contents

  Any idea how i can format my output file with ********************Start file*********************** usinf Python 2.7 Morten Engvoldsen <mortenengv@gmail.com> - 2013-02-09 15:27 +0100
    Re: Any idea how i can format my output file with ********************Start file*********************** usinf Python 2.7 rusi <rustompmody@gmail.com> - 2013-02-09 08:21 -0800
      Re: Any idea how i can format my output file with ********************Start file*********************** usinf Python 2.7 Terry Reedy <tjreedy@udel.edu> - 2013-02-09 14:56 -0500

#38522 — Any idea how i can format my output file with ********************Start file*********************** usinf Python 2.7

FromMorten Engvoldsen <mortenengv@gmail.com>
Date2013-02-09 15:27 +0100
SubjectAny idea how i can format my output file with ********************Start file*********************** usinf Python 2.7
Message-ID<mailman.1550.1360420037.2939.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

Hi Team,
I Have saved my output in .doc file and want to format the output with

*************Start the File ************************

Some data here


*******************End of File*****************************

Can you let me know how can i do that using Python?

[toc] | [next] | [standalone]


#38530

Fromrusi <rustompmody@gmail.com>
Date2013-02-09 08:21 -0800
Message-ID<1b30052d-a7b7-40f6-af5c-5bb6b6bc4424@4g2000pbt.googlegroups.com>
In reply to#38522
On Feb 9, 7:27 pm, Morten Engvoldsen <mortene...@gmail.com> wrote:
> Hi Team,
> I Have saved my output in .doc file and want to format the output with
>
> *************Start the File ************************
>
> Some data here
>
> *******************End of File*****************************
>
> Can you let me know how can i do that using Python?

If it were not for the doc file type, its a couple of lines of code to
do what you are asking.

With doc files however its a bit of a headache.
MSOffice doesn't script with python (as far as I know).
Best to use whatever it allows -- VBA I guess
Libreoffice allows a number of different scripting options including
python -- all poorly documented and obsolete.
eg http://www.openoffice.org/udk/python/scriptingframework/

[toc] | [prev] | [next] | [standalone]


#38537

FromTerry Reedy <tjreedy@udel.edu>
Date2013-02-09 14:56 -0500
Message-ID<mailman.1561.1360439810.2939.python-list@python.org>
In reply to#38530
On 2/9/2013 11:21 AM, rusi wrote:
> On Feb 9, 7:27 pm, Morten Engvoldsen <mortene...@gmail.com> wrote:
>> Hi Team,
>> I Have saved my output in .doc file and want to format the output with
>>
>> *************Start the File ************************
>>
>> Some data here
>>
>> *******************End of File*****************************
>>
>> Can you let me know how can i do that using Python?
>
> If it were not for the doc file type, its a couple of lines of code to
> do what you are asking.
>
> With doc files however its a bit of a headache.
> MSOffice doesn't script with python (as far as I know).

It can be with the pythonwin extensions.

> Best to use whatever it allows -- VBA I guess
> Libreoffice allows a number of different scripting options including
> python -- all poorly documented and obsolete.
> eg http://www.openoffice.org/udk/python/scriptingframework/

LibreOffice 4.0.0, released 2 days ago, upgrades the bundled Python from 
2.6 (itself an upgrade) to 3.3!
https://www.libreoffice.org/download/4-0-new-features-and-fixes/

One new addition, also from the above
'''
"LibreLogo" vector graphics language: Logo toolbar and interpreter

Logoposter en.jpg 	Turtlegraphics.png 	Logochessboard.png

The lightweight implementation (1400 lines in Python-PyUNO) uses the 
embedded Python to give a simplified programming interface to the 
excellent vector graphics of LibreOffice for graphic design and 
education (including teaching of word processing). ...
'''
I am hoping the PyUNO doc will see improvement.


-- 
Terry Jan Reedy

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web