Jump to content


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


Photo
- - - - -

Text File To .DOCX Or .DOC Converter


2 replies to this topic

#1 Ross Bevin

Ross Bevin

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 235 posts
  • Gender:Male
  • Location:Manzanillo, Colima, 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,649 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
  • 235 posts
  • Gender:Male
  • Location:Manzanillo, Colima, 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





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!