Convert a print to Rtf or doc

Re: Convert a print to Rtf or doc

Postby Silvio.Falconi » Fri Dec 01, 2023 10:02 am

I don't want to cause controversy but as is always done in this forum... we start from a topic for example "..how do I save a print preview in Word docx..." and then there are people who don't want to impose everything 'other such as the html language for example

Please let's get back to the Title of this topic
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
Silvio.Falconi
 
Posts: 6768
Joined: Thu Oct 18, 2012 7:17 pm

Re: Convert a print to Rtf or doc

Postby Otto » Fri Dec 01, 2023 10:41 am

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
Otto
 
Posts: 6003
Joined: Fri Oct 07, 2005 7:07 pm

Re: Convert a print to Rtf or doc

Postby Silvio.Falconi » Fri Dec 01, 2023 1:20 pm

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
Silvio.Falconi
 
Posts: 6768
Joined: Thu Oct 18, 2012 7:17 pm

Re: Convert a print to Rtf or doc

Postby Otto » Fri Dec 01, 2023 11:27 pm

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 view

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
********************************************************************
User avatar
Otto
 
Posts: 6003
Joined: Fri Oct 07, 2005 7:07 pm

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: richard-service and 59 guests