Convert a print to Rtf or doc

User avatar
Otto
Posts: 6396
Joined: Fri Oct 07, 2005 7:07 pm
Has thanked: 8 times
Been thanked: 1 time
Contact:

Re: Convert a print to Rtf or doc

Post by Otto »

Let me say it again: With the free developer resources we have here and the priorities - for example, variable column height in xBrowse - it's not possible.
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Silvio.Falconi
Posts: 7110
Joined: Thu Oct 18, 2012 7:17 pm

Re: Convert a print to Rtf or doc

Post by Silvio.Falconi »

I remember a long time ago there was someone who had created a class or a function to convert printouts to RTF or Doc, I should have those functions in my hard disks but I would have to search for days, I know the guy was German or Austrian but many years have passed
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Otto
Posts: 6396
Joined: Fri Oct 07, 2005 7:07 pm
Has thanked: 8 times
Been thanked: 1 time
Contact:

Re: Convert a print to Rtf or doc

Post by Otto »

I did some tests with WEBVIEW.
I create the report - the buttonbar is inside the preview - theses are html buttons!
reading the preview
let printContents = document.getElementById('tischplanPreview').innerHTML;
SendToFWH()

Code: Select all | Expand

document.getElementById('edit-btn').addEventListener('click', editbtn);
      function editbtn(evt) {
        let printContents = document.getElementById('tischplanPreview').innerHTML;
         const data = {
        text: printContents,
        btn: ''
        };
         var someData = { 'param1': data };
         var s = SendToFWH( evt.target.id, evt.type, someData )
        .then(s => {
        alert(s.result);
         })
      }
 

Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
Post Reply