print Treeview

print Treeview

Postby damianodec » Tue May 07, 2019 2:34 pm

Hi,
I have a dialog from .rc file, this dialog has a treeview Redefined:
Code: Select all  Expand view
DEFINE DIALOG oDlg RESOURCE "TREEDIS" FONT oFont TITLE "Visualizza distinta"

    REDEFINE SAY o_get[02] PROMPT m_GET[02] ID 201 OF oDlg
    REDEFINE SAY o_get[03] PROMPT m_GET[03] ID 202 OF oDlg 
    REDEFINE TREEVIEW oTree ID 60 OF oDlg COLOR CLR_BLACK, CLR_WHITE  //size 400 , 180 

    REDEFINE BTNBMP OBtnEscI ID 2 OF oDlg RESOURCE "chiudi"  2007   ACTION (oDlg:End() )
    REDEFINE BTNBMP OBtnExc  ID 3 OF oDlg RESOURCE "tree"   2007  ;


and this is the dialog:
Image

how can I to print or save in PDF the Treeview?

thanks.
FiveWin for xHarbour 17.09 - Sep. 2017 - Embarcadero C++ 7.00 for Win32
FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)
Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
User avatar
damianodec
 
Posts: 414
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia

Re: print Treeview

Postby Silvio.Falconi » Thu May 09, 2019 9:27 am

I'm afraid you must make .....to hand or snap of the dialog
if the trre is adatabse you can make it easy
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: 6772
Joined: Thu Oct 18, 2012 7:17 pm

Re: print Treeview

Postby Antonio Linares » Thu May 09, 2019 5:24 pm

Damiano,

oTree:HardCopy()
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: print Treeview

Postby damianodec » Mon May 13, 2019 6:47 am

hardcopy prints just actual view.
I have a lot of tree of BOM (bill of materials) with dozens of nodes, I can not to print whit hardcopy, scroll dialog and print next nodes with another hardcopy in another page.
FiveWin for xHarbour 17.09 - Sep. 2017 - Embarcadero C++ 7.00 for Win32
FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)
Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
User avatar
damianodec
 
Posts: 414
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia

Re: print Treeview

Postby Otto » Mon May 13, 2019 7:29 am

Hello,
I use winexec with DOS command tree >TXT. Then I polish TXT with strtran() function.
Best regards
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6005
Joined: Fri Oct 07, 2005 7:07 pm

Re: print Treeview

Postby Otto » Mon May 13, 2019 7:37 am

Hello,
Maybe better tree >tree.rtf
Best regards
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6005
Joined: Fri Oct 07, 2005 7:07 pm

Re: print Treeview

Postby damianodec » Mon May 13, 2019 8:22 am

hi Otto,
can you post your code?
thank you
FiveWin for xHarbour 17.09 - Sep. 2017 - Embarcadero C++ 7.00 for Win32
FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)
Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
User avatar
damianodec
 
Posts: 414
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia

Re: print Treeview

Postby Otto » Mon May 13, 2019 9:06 am

Hello,
this is my code.
Regards
Otto
Code: Select all  Expand view

#include "FiveWin.ch"

function main()
    local cText := "tree >mytree.txt"
    local cReturn := ""
    memowrit( "xtree.bat", cText)
    waitrun("xtree.bat")
    cReturn := memoread( "mytree.txt" )
    cReturn := strTran( cReturn, "Ã",  chr(25) )
    cReturn := strTran( cReturn, "ÄÄÄ",  chr(6)+chr(6)+chr(6) )
    cReturn := strTran( cReturn, "ÄÄÄ",  chr(6)+chr(6)+chr(6) )
    cReturn := strTran( cReturn, "³", "    "  )
    cReturn := strTran( cReturn, "À",  chr(3) )

    ? cReturn
   
return nil


 



Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6005
Joined: Fri Oct 07, 2005 7:07 pm

Re: print Treeview

Postby damianodec » Tue May 14, 2019 3:06 pm

Thank you Otto.
FiveWin for xHarbour 17.09 - Sep. 2017 - Embarcadero C++ 7.00 for Win32
FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)
Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
User avatar
damianodec
 
Posts: 414
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 110 guests