Jump to content


Click the link below to see the new game I'm developing!


Photo
- - - - -

Text File To .DOCX Or .DOC Converter


4 replies to this topic

#1 Ross Bevin

Ross Bevin

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 239 posts
  • Gender:Male
  • Location:San Miguel de Allende, GTO, Mexico

Posted 08 February 2019 - 09:42 PM

Hi everyone,

 

We give our users the ability to output a report to MS Word. We do this rather simply by naming the text file with a .doc extension and send it to Word. We have a macro that then formats the text based on a format code at the beginning of the file. When the user saves the report it gets saved as a true .DOC file. This has worked well for us over the years but is no longer ideal.

 

Does anyone use or know of a product we can purchase that will convert a .TXT file to .DOCX or .DOC? We need to be able to do this within ProIV via a SYSTEM call. E.g. a exe where we pass it file and formatting parameters.

 

Thanks in advance!

 

Regards

Ross



#2 Rob Donovan

Rob Donovan

    rob@proivrc.com

  • Admin
  • 1,652 posts
  • Gender:Male
  • Location:Spain

Posted 08 February 2019 - 09:58 PM

Hi Ross,

 

I've not tried it myself, and not sure if you're running the P4 kernel on Linux, but you could try this... https://askubuntu.co...ia-command-line

 

HTHs, Rob.



#3 Ross Bevin

Ross Bevin

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 239 posts
  • Gender:Male
  • Location:San Miguel de Allende, GTO, Mexico

Posted 09 February 2019 - 01:09 PM

Hi Rob,

 

Thanks for the information. No, we run on Windows which I think is OK for Python. I will get one of our .NET developers to take a look.

 

Thanks

Ross



#4 Marlon

Marlon

    Member

  • Members
  • PipPip
  • 49 posts
  • Gender:Not Telling
  • Location:London

Posted 26 November 2019 - 05:53 PM

Ross, any progress on this?  It's something that's probablyof use to a lot of us.


This is your captain speaking. We may experience some slight turbulance and then...explode.


#5 Ross Bevin

Ross Bevin

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 239 posts
  • Gender:Male
  • Location:San Miguel de Allende, GTO, Mexico

Posted 26 November 2019 - 06:06 PM

Hi Marlon,

 

Sorry, no. It has taken a back seat to some other projects I have been working on. I did bring this up with our CIO and he suggested I write the output with .RTF formatting and send it to Word. Since our courier font reports are fairly plain this should in theory work. When I get around to working on this I will be sure to post the solution here.

 

Regards

Ross





Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Click the link below to see the new game I'm developing!