topic
stringlengths
1
63
text
stringlengths
1
577k
explorerBar and Vistamenu together ?
Silvio. The truth that with attitudes like yours the desires extract of answering you, is incredible that on trying to help yourself you ill-treat the persons with your answers, it is not that we do not read the messages, simply we answer you what we know, which we do not know do not answer it, I hope that you change your terrible attitude. Regards.
explorerBar and Vistamenu together ?
[quote:370q97mo]Silvio. The truth that with attitudes like yours the desires extract of answering you, is incredible that on trying to help yourself you ill-treat the persons with your answers, it is not that we do not read the messages, simply we answer you what we know, which we do not know do not answer it, I hope that you change your terrible attitude. Regards.[/quote:370q97mo] I Agree. Politeness is worldwide.
explorerBar and Vistamenu together ?
+1
explorerBar and Vistamenu together ?
[quote="Silvio.Falconi":381pith7]SORRY joseluisysturiz and Ariel [b:381pith7] WHY YOU NOT READ THE QUESTION BEFORE TO ANSWER ?[/b:381pith7] I asked a test with explorerBar and Vistamenu together into a Main Window ....[/quote:381pith7] Silvio, the next question type, "which have no knowledge answer below mine, thanks." I do not speak English, so I use google translator, but they will understand the message. Case Closed.
explorerBar and Vistamenu together ?
Dear Antonio, Dear Daniel, Dear Ariel Sorry, I asked if was possible have a windows with explorerBar and Vista menu together in a window main [b:m44m1d8c]Ariel answered me first " VistaMenu NO funciona con MDI"[/b:m44m1d8c] [b:m44m1d8c]JosèLuis answered me "in windows trabaja sin problema, en MDI no lo he probado, mira sample vistamn1.prg, saludos""[/b:m44m1d8c] But I asked only if it was possible a window with ExplorerBAr and Vistamenu and Not only Vistamenu control in a Window... Perhaps I have a logic problem as sad Daniel or I could be also terrible attitudes Eh Eh Eh .... it is sure !!!! The Truly .....Someone does not read well my questions, and not knowing how to respond tries to answer my questions with other arguments, without realizing that the subject was indeed another and then this someone says I have terrible attitudes, perhaps also a personal foul I humbly ask you to forgive me if I have angered some of you but it was not my intentions!!!!!
explorerBar on the right
[img:3s4qe738]https&#58;//i&#46;postimg&#46;cc/kMHjN8jS/jjjjjjjjjjj&#46;jpg[/img:3s4qe738] how do i create an explorebar all the way to the right as it is marked in the figure with the red arrow? in the left (oclient) part I show a windows I tried wih [code=fw:3s4qe738]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oWnd, oBar, oMenu<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oExBar,oPanel1<br />&nbsp; &nbsp;SetGetColorFocus<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MDI</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"FWH18.08: DIALOG IN MDICHILD WINDOW"</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">32</span> <span style="color: #000000;">2007</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"MDIDLG-OLD"</span> <span style="color: #0000ff;">CENTER</span> <span style="color: #0000ff;">ACTION</span> DlgInMdiChildOld<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"MDIDLG-NEW"</span> <span style="color: #0000ff;">CENTER</span> <span style="color: #0000ff;">ACTION</span> CreateDialog<span style="color: #000000;">&#40;</span> AS_MDICHILD <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"silvio"</span> <span style="color: #0000ff;">CENTER</span> <span style="color: #0000ff;">ACTION</span> CreateDialog2<span style="color: #000000;">&#40;</span> AS_MDICHILD <span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"DIALOG"</span> &nbsp; &nbsp; <span style="color: #0000ff;">CENTER</span> <span style="color: #0000ff;">ACTION</span> CreateDialog<span style="color: #000000;">&#40;</span> AS_DIALOG <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oExBar = TExplorerBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oExBar:<span style="color: #000000;">nLeft</span>:=<span style="color: #000000;">500</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oExBar:<span style="color: #000000;">nRight</span>:=<span style="color: #000000;">200</span><br />&nbsp; &nbsp; oPanel1 = oExBar:<span style="color: #000000;">AddPanel</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"One"</span>, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\p</span>eople.bmp"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; oWnd:<span style="color: #000000;">oRight</span> = oExBar<br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd</div>[/code:3s4qe738]
explorerBar on the right
Try with [code=fw:26ktdqg5]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oExBar:<span style="color: #000000;">nRight</span>:=<span style="color: #000000;">700</span><br />&nbsp;</div>[/code:26ktdqg5]
explorerBar on the right
[quote="cnavarro":4uuxdka7]Try with [code=fw:4uuxdka7]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oExBar:<span style="color: #000000;">nRight</span>:=<span style="color: #000000;">700</span><br /> </div>[/code:4uuxdka7][/quote:4uuxdka7] not run
explorerBar on the right
[code=fw:3a2t2xtf]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;oExBar = TExplorerBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> , <span style="color: #000000;">300</span>, , , oWnd <span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oExBar:nLeft &nbsp;:= 500</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oExBar:<span style="color: #000000;">nRight</span> :=<span style="color: #000000;">200</span><br />&nbsp; &nbsp; oPanel1 = oExBar:<span style="color: #000000;">AddPanel</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"One"</span>, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\p</span>eople.bmp"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp;</div>[/code:3a2t2xtf]
explorerBar on the right
[quote="cnavarro":23qs97y1][code=fw:23qs97y1]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   oExBar = TExplorerBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> , <span style="color: #000000;">300</span>, , , oWnd <span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//           oExBar:nLeft  := 500</span><br />           oExBar:<span style="color: #000000;">nRight</span> :=<span style="color: #000000;">200</span><br />    oPanel1 = oExBar:<span style="color: #000000;">AddPanel</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"One"</span>, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\p</span>eople.bmp"</span> <span style="color: #000000;">&#41;</span><br /><br /> </div>[/code:23qs97y1][/quote:23qs97y1] here not run
explorerBar y MDI
TExplorerBa y ventana MDI no funciona, [url=http&#58;//imageshack&#46;us/photo/my-images/861/dibujogx&#46;jpg/:3azo6e1n][img:3azo6e1n]http&#58;//img861&#46;imageshack&#46;us/img861/2017/dibujogx&#46;jpg[/img:3azo6e1n][/url:3azo6e1n] Uploaded with [url=http&#58;//imageshack&#46;us:3azo6e1n]ImageShack.us[/url:3azo6e1n] [code=fw:3azo6e1n]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oWnd, oExBar, oPanel1, oPanel2, oPanel3, oPanel4<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> bClick := <span style="color: #000000;">&#123;</span> | o | <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> o:<span style="color: #000000;">GetText</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"FWH Class TExplorerBar"</span> <span style="color: #0000ff;">MDI</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">SetSize</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">350</span>, <span style="color: #000000;">600</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oExBar = TExplorerBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oPanel1 = oExBar:<span style="color: #000000;">AddPanel</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"One"</span>, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\p</span>eople.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel1:<span style="color: #000000;">lSpecial</span> = .T.<br />&nbsp; &nbsp;oPanel1:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"First item"</span>, bClick, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\a</span>dditem.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel1:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Second item"</span>, bClick, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\c</span>opy.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;oPanel2 = oExBar:<span style="color: #000000;">AddPanel</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Two"</span>, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\c</span>ase.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel2:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"First item"</span>, bClick, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\a</span>dddbf.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel2:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Second item"</span>, bClick, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\d</span>elete0.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel2:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Third item"</span>, bClick, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\e</span>nvelope.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel2:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Fourth item"</span>, bClick, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\c</span>opy.bmp"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oPanel3 = oExBar:<span style="color: #000000;">AddPanel</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Three"</span>, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\g</span>raphics.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel3:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"First item"</span>, bClick, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\a</span>dddbf.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel3:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Second item"</span>, bClick, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\d</span>elete0.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel3:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Third item"</span>, bClick, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\e</span>nvelope.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oPanel4 = oExBar:<span style="color: #000000;">AddPanel</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Four"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel4:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"First item"</span>, bClick, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\a</span>dditem.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel4:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Second item"</span>, bClick, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\c</span>opy.bmp"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">oClient</span> = oExBar<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span></div>[/code:3azo6e1n]
explorerBar y MDI
Hola el punto es que los mensajes no llegan al objeto oWnd, sino al frame que se crea por el entorno MDI, entonces colgemos del alli la explorer y controlamos manualmente le tamaño con el resize [code=fw:1zazemnu]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oWnd, oExBar, oPanel1, oPanel2, oPanel3, oPanel4<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> bClick := <span style="color: #000000;">&#123;</span> | o | <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> o:<span style="color: #000000;">GetText</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oPanel<br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"FWH Class TExplorerBar"</span> <span style="color: #0000ff;">MDI</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">SetSize</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">350</span>, <span style="color: #000000;">600</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oExBar = TExplorerBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> , , , , oWnd:<span style="color: #000000;">oWndClient</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oPanel1 = oExBar:<span style="color: #000000;">AddPanel</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"One"</span>, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\p</span>eople.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel1:<span style="color: #000000;">lSpecial</span> = .T.<br />&nbsp; &nbsp;oPanel1:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"First item"</span>, bClick, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\a</span>dditem.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel1:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Second item"</span>, bClick, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\c</span>opy.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;oPanel2 = oExBar:<span style="color: #000000;">AddPanel</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Two"</span>, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\c</span>ase.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel2:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"First item"</span>, bClick, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\a</span>dddbf.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel2:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Second item"</span>, bClick, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\d</span>elete0.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel2:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Third item"</span>, bClick, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\e</span>nvelope.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel2:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Fourth item"</span>, bClick, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\c</span>opy.bmp"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oPanel3 = oExBar:<span style="color: #000000;">AddPanel</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Three"</span>, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\g</span>raphics.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel3:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"First item"</span>, bClick, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\a</span>dddbf.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel3:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Second item"</span>, bClick, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\d</span>elete0.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel3:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Third item"</span>, bClick, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\e</span>nvelope.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oPanel4 = oExBar:<span style="color: #000000;">AddPanel</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Four"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel4:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"First item"</span>, bClick, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\a</span>dditem.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel4:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Second item"</span>, bClick, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\c</span>opy.bmp"</span> <span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">bResized</span> = <span style="color: #000000;">&#123;</span> | nType, nWidth, nHeight | <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> nWidth != <span style="color: #00C800;">NIL</span>, oExBar:<span style="color: #0000ff;">move</span><span style="color: #000000;">&#40;</span> , , , nHeight <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; <br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:1zazemnu]
explorerBar y MDI
Daniel, agradezco tu pronta respuesta, ha mejorado un poco, pero al mover de lado la MDI CHILD, o incluso al maximinizarla, deja un efecto raro manchado sobre la texplorerbar, saludos.. [url][URL=http://imageshack.us/photo/my-images/16/texplorer.jpg/][img:2smbsedv]http&#58;//img16&#46;imageshack&#46;us/img16/5449/texplorer&#46;jpg[/img:2smbsedv][/url] Uploaded with [url=http&#58;//imageshack&#46;us:2smbsedv]ImageShack.us[/url:2smbsedv][/url]
explorerBar y MDI
Hola entonces no invadamos nosotros el espacio del MDI y dejemosle el trabajo a fivewin [code=fw:3qy5vq7p]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oWnd, oExBar, oPanel1, oPanel2, oPanel3, oPanel4<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> bClick := <span style="color: #000000;">&#123;</span> | o | <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> o:<span style="color: #000000;">GetText</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"FWH Class TExplorerBar"</span> <span style="color: #0000ff;">MDI</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">SetSize</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">350</span>, <span style="color: #000000;">600</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oExBar = TExplorerBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> , , , , oWnd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oPanel1 = oExBar:<span style="color: #000000;">AddPanel</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"One"</span>, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\p</span>eople.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel1:<span style="color: #000000;">lSpecial</span> = .T.<br />&nbsp; &nbsp;oPanel1:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"First item"</span>, bClick, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\a</span>dditem.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel1:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Second item"</span>, bClick, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\c</span>opy.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;oPanel2 = oExBar:<span style="color: #000000;">AddPanel</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Two"</span>, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\c</span>ase.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel2:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"First item"</span>, bClick, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\a</span>dddbf.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel2:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Second item"</span>, bClick, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\d</span>elete0.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel2:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Third item"</span>, bClick, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\e</span>nvelope.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel2:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Fourth item"</span>, bClick, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\c</span>opy.bmp"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oPanel3 = oExBar:<span style="color: #000000;">AddPanel</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Three"</span>, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\g</span>raphics.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel3:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"First item"</span>, bClick, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\a</span>dddbf.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel3:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Second item"</span>, bClick, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\d</span>elete0.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel3:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Third item"</span>, bClick, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\e</span>nvelope.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oPanel4 = oExBar:<span style="color: #000000;">AddPanel</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Four"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel4:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"First item"</span>, bClick, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\a</span>dditem.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel4:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Second item"</span>, bClick, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\c</span>opy.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; <br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">oLeft</span> = oExBar<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:3qy5vq7p]
explorerBar y MDI
the best way is to use the tfsdi class of José Luis Sánchez Navarro
explorerBar y MDI
Excelente, Daniel, ya funciona, gracias.
explorerBar y MDI
Mr. Silvio, my idea is to use only FWH. GRACIAS.
explorerBar y MDI
cesar, y donde le puedo cambiar el ancho a la explorerbar? saludos paco
explorerBar y MDI
sysctrl2, Tfsdi i a only FWH DIALOG style .nor. 4 !!!! (no border) you can insert explorerbar a t left and grid at right and it run ok good
explorerBar y el MENU POPUP
Como hago para que me muestre el menu el la posicion donde doy el click EL codiog bloque lo que colocado asi { || ::ShowPop1(nRow, nCol) } y tambien asi pero me muestra el menu en para parte superior. En este caso le di Clik a grupos [img] <!-- m --><a class="postlink" href="http://imageshack.us/photo/my-images/98/dibujodg.jpg/">http://imageshack.us/photo/my-images/98/dibujodg.jpg/</a><!-- m --> [/img] [code=fw:38ko9mpa]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />   ::<span style="color: #000000;">oExBar</span> = TExplorerBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">36</span>,<span style="color: #000000;">2</span>,::<span style="color: #000000;">oWdlcx</span>:<span style="color: #000000;">nWidth</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">-5</span>,::<span style="color: #000000;">oWdlcx</span>:<span style="color: #000000;">nHeight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,::<span style="color: #000000;">oWdlcx</span><span style="color: #000000;">&#41;</span><br /><br />    ::<span style="color: #000000;">iaContl</span>    := <span style="color: #000000;">&#123;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #ff0000;">" "</span>,<span style="color: #ff0000;">" "</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">385</span>,<span style="color: #000000;">35</span>,::<span style="color: #000000;">l2007</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,memvar->x_tmotor,<span style="color: #000000;">0</span>,<span style="color: #000000;">4</span>,<span style="color: #000000;">0</span>,memvar->x_tfado,::<span style="color: #000000;">oWdlcx</span><span style="color: #000000;">&#125;</span><br />    ::<span style="color: #000000;">iMatValid</span>  := <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"C"</span>,<span style="color: #ff0000;">"PXP0009_1"</span>,<span style="color: #ff0000;">"PROG_VENDED"</span>,<span style="color: #ff0000;">"R1"</span>,<span style="color: #ff0000;">"xls0009.xls"</span>,<span style="color: #ff0000;">"BROW_LISTA"</span>,X_TIPBROW,<span style="color: #ff0000;">"1"</span>,<span style="color: #000000;">0</span>,<span style="color: #ff0000;">" "</span>,<span style="color: #ff0000;">" "</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#125;</span><br /><br />   ::<span style="color: #000000;">oPanel1</span> = ::<span style="color: #000000;">oExBar</span>:<span style="color: #000000;">AddPanel</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Contable"</span>, <span style="color: #ff0000;">"people.bmp"</span> <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// no se puede usar imagenes como recursos</span><br />   ::<span style="color: #000000;">oPanel1</span>:<span style="color: #000000;">lSpecial</span> = .T.<br />   ::<span style="color: #000000;">oPanel1</span>:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Representante de Ventas"</span>, ::<span style="color: #000000;">bClick</span>, <span style="color: #ff0000;">"OK"</span> <span style="color: #000000;">&#41;</span><br />   ::<span style="color: #000000;">oPanel1</span>:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Zona de Ventas"</span>, ::<span style="color: #000000;">bClick</span>, <span style="color: #ff0000;">"OK"</span> <span style="color: #000000;">&#41;</span><br />   ::<span style="color: #000000;">oPanel1</span>:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Plantas"</span>, ::<span style="color: #000000;">bClick</span>, <span style="color: #ff0000;">"OK"</span> <span style="color: #000000;">&#41;</span><br />   ::<span style="color: #000000;">oPanel1</span>:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Sector Industrial"</span>, ::<span style="color: #000000;">bClick</span>, <span style="color: #ff0000;">"OK"</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#91;</span>b<span style="color: #000000;">&#93;</span>::<span style="color: #000000;">oPanel1</span>:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Grupos"</span>, <span style="color: #000000;">&#123;</span> || ::<span style="color: #000000;">ShowPop1</span><span style="color: #000000;">&#40;</span>nRow, nCol<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, <span style="color: #ff0000;">"OK"</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#91;</span>/b<span style="color: #000000;">&#93;</span></div>[/code:38ko9mpa]
explorerbar Menu
I used until now Vtaskbar of C5 . Now I tried to use explorerbar of Fivetech but I have many problems for a sample it is possible add a menupopup near a menuitem of explorerbar?
explorerbar Menu
Please post screenshot and prg example, thanks
explorerbar Menu
with vtaskbar I can make this DEFINE VMENUITEM OF oBar ; CAPTION "Elenco movimenti" ; IMAGE "GRID_IMPRIMIR2" ; MENU Stampa_Mov(oApp():oGrid,oCont,oBar); LEFT 10 where Stampa_Mov is a normal function with menupopup type Function Stampa_Mov(oGrid,oCont,oBar) Local oMenuStampa MENU oMenuStampa POPUP MENUITEM "Elenco Movimenti" ENDMENU return oMenuStampa [img:3lm2tfu6]https&#58;//s14&#46;postimg&#46;org/fgdtwgeq9/testv&#46;jpg[/img:3lm2tfu6] Note : with Explorerbar I cannot link a popupmenu and all menuitem is made with turl ( only font under )
explorerbar Menu popup
is it possible insert a popup menu on one Item of Menu exploerbar ?
explorerbar Menu popup
Look [code=fw:1s67xjlw]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />.../...<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> bClick1 := <span style="color: #000000;">&#123;</span> | o | MnuButton<span style="color: #000000;">&#40;</span> , , , o <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />.../...<br /><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Explorer"</span>, bClick1, <span style="color: #ff0000;">"C:<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\B</span>itmaps<span style="color: #000000;">\1</span>6date.bmp"</span>, , CLR_BROWN, , <span style="color: #000000;">&#41;</span><br />.../...<br /><br /><br /><span style="color: #00C800;">Function</span> MnuButton<span style="color: #000000;">&#40;</span> nR, nC, nF, oParent <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oMenu<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aCoors<br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> nR &nbsp; := oParent:<span style="color: #000000;">nBottom</span><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> nC &nbsp; := oParent:<span style="color: #000000;">nRight</span><br />&nbsp; &nbsp;aCoors &nbsp; &nbsp; &nbsp; := ScreenToClient<span style="color: #000000;">&#40;</span> oParent:<span style="color: #000000;">hWnd</span>, <span style="color: #000000;">&#123;</span> nR, nC <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">MENU</span> oMenu <span style="color: #0000ff;">POPUP</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #000000;">2015</span> ;<br />&nbsp; &nbsp; &nbsp; COLORMENU CLR_WHITE, CLR_BROWN<br /><br />.../...<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ENDMENU</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">MENU</span> oMenu <span style="color: #00C800;">AT</span> aCoors<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> + oParent:<span style="color: #000000;">nHeight</span>, oParent:<span style="color: #000000;">nRight</span> <span style="color: #0000ff;">OF</span> oParent<br /><br />&nbsp;</div>[/code:1s67xjlw]
explorerbar Menu popup
For next version I added in method lButtondown Now is more easy [code=fw:3p4telqt]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bAction</span>, <span style="color: #00C800;">Self</span>, nRow, nCol, nFlags <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:3p4telqt]
explorerbar Menu popup
must be a data type " oPopup" on CLASS TTaskPanel my advise and insert here METHOD AddLink( cPrompt, bAction, cBitmap, oFnt, nClrT, nClrP, nClrO , oPopup,lpopup ) wheh the lpopup is true it must drwar an arrow at left if ::oPopup != nil ->>>>>>>>>>>>>>draw arrow endif then on texplorerbar class when there is oUrlLink:bAction = bAction if oItem:oPopup != nil oItem:oPopup:Activate( x , y,oExp, .f. ) the problem My advice is on Urlink class because My advice [b:3bo0slaa] you must before modify the Urlink class [/b:3bo0slaa] and insert the possibility to insert a popup menu and the you can insert the popup on texplorerbar it not easy this because Texplorerbar is made with foots.... if the author inserted the items in the same way as the menu and did not use the Urlnk class we could now have the popup menu directly. And then the menu options can not have special effects like the colors of win10 or office2007 but only an underlined word. this I could understand for an initial state just to try but in the long run nothing has changed for which remained the urllnk even if I had long ago the lib of that author where the menu options were different and I made it allready [img:3bo0slaa]https&#58;//s9&#46;postimg&#46;org/v1t4da8db/mmm&#46;jpg[/img:3bo0slaa] remember when I need an arrow with turlink ? then I cannot insert it on urlink
export .jrc files
Hi, Is there any tool to export those files (.jrc) to Excel or DBF? Thanks
export Dataflex files to Excel or DBF
Hello, Anyone did it?. I will appreciate any help. Thanks.
export PDF from excel
Hi, I have my exe that makes a file excel... [code=fw:321wm0tg]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oExcel := CREATEOBJECT<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Excel.Application"</span> <span style="color: #000000;">&#41;</span> <br />oBook := oExcel:<span style="color: #000000;">Workbooks</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br />oWorkBook := oExcel:<span style="color: #000000;">Workbooks</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br />oWorkBook:<span style="color: #000000;">Sheets</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Foglio1"</span><span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">Select</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>    <br />oWorkBook:<span style="color: #000000;">Sheets</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Foglio1"</span><span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">Name</span> := <span style="color: #ff0000;">"Dati"</span><br />...<br /> </div>[/code:321wm0tg] then I save this file and export to pdf... [code=fw:321wm0tg]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oExcel:<span style="color: #000000;">WorkSheets</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">PageSetup</span>:<span style="color: #000000;">PrintTitleRows</span> := <span style="color: #ff0000;">"$1:$2"</span> <br />oExcel:<span style="color: #000000;">WorkSheets</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">PageSetup</span>:<span style="color: #000000;">CenterFooter</span> := <span style="color: #ff0000;">"Pagina &P di &N"</span>    <br />oExcel:<span style="color: #000000;">WorkSheets</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">PageSetup</span>:<span style="color: #000000;">Orientation</span> := <span style="color: #000000;">2</span><br />oExcel:<span style="color: #000000;">WorkSheets</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">PageSetup</span>:<span style="color: #000000;">PaperSize</span> := <span style="color: #000000;">9</span>           <br />oExcel:<span style="color: #000000;">WorkSheets</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">PageSetup</span>:<span style="color: #000000;">Zoom</span> := .f.              <br />oExcel:<span style="color: #000000;">WorkSheets</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">PageSetup</span>:<span style="color: #000000;">FitToPagesWide</span> := <span style="color: #000000;">1</span>  <br />oExcel:<span style="color: #000000;">WorkSheets</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">PageSetup</span>:<span style="color: #000000;">FitToPagesTall</span> := .f.        <br />oExcel:<span style="color: #000000;">WorkSheets</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">ExportAsFixedFormat</span><span style="color: #000000;">&#40;</span> xlTypePDF,cFilePDF<span style="color: #000000;">&#41;</span>       <br /><br />oWorkBook:<span style="color: #000000;">SaveAs</span><span style="color: #000000;">&#40;</span>Filename:=cFileMail, FileFormat:=<span style="color: #000000;">52</span><span style="color: #000000;">&#41;</span>  <br /> </div>[/code:321wm0tg] this exe is on a server and Windows Task scheduler run this exe every night (02.00). when I run this exe by my double click mouse that works fine but when it run by Windows Task scheduler I get this error: Application =========== Path and name: C:\batchDcasta\LAVCEN.EXE (64 bits) Size: 5,244,928 bytes Compiler version: Harbour 3.2.0dev (r1904111533) FiveWin version: FWH 19.06 C compiler version: Microsoft Visual C++ 19.20.27508 (64-bit) Windows version: 6.2, Build 9200 Time from start: 0 hours 0 mins 25 secs Error occurred at: 05-07-2023, 06:00:35 Error description: (DOS Error -2147352567) WINOLE/1006 Unable to set the PaperSize property for the PageSetup class. (0x800A03EC): Microsoft Excel Args: [ 1] = N 9 Stack Calls =========== Called from: => TOLEAUTO:_PAPERSIZE( 0 ) Called from: lavcen.prg => MAIN( 657 ) any solution? thanks
export TREPORT to Excel in Preview
Hello, I need to export some TREPORTS to Excel. The ideal will be as the Preview exports to Excel and Word, to include Excel. Is it possible please?. Thank you very much. Regards!
export TREPORT to Excel in Preview
Para eso hay buscador [url:1uajejq6]http&#58;//forums&#46;fivetechsupport&#46;com/search&#46;php?keywords=report+excel&terms=all&author=&sc=1&sf=all&sk=t&sd=d&sr=topics&st=0&ch=300&t=0&submit=Search[/url:1uajejq6]
export TREPORT to Excel in Preview
Adolfo, Thank you. I did it before <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) -->. But REPEXCEL does not work with latest Harbour builds. I also read in somewhere that Mr. Nages was preparing this feature, as it is requested from many users. Best regards,
export TREPORT to Excel in Preview
If the report is simple, you may use oReport:ToExcel(). This method is available for quite sometime. Any feedback is appreciated.
export TREPORT to Excel in Preview
Hello, i did not know that method. But it is not working: This is a sample: [code=fw:1o2bkydo]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"report.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"inkey.ch"</span><br /><br /><span style="color: #00C800;">Function</span> main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oFont1, oFont2<br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oReport<br /><br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont1 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"ARIAL"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-10</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont2 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"ARIAL"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-10</span> BOLD<br /><br /><br /><br />&nbsp; &nbsp; &nbsp;SetKey<span style="color: #000000;">&#40;</span>VK_F2, <span style="color: #000000;">&#123;</span> || oReport:<span style="color: #000000;">ToExcel</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp;USE TEST &nbsp;<span style="color: #00C800;">NEW</span><br />&nbsp; &nbsp; &nbsp;dbgotop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br /><br />&nbsp; &nbsp; &nbsp;REPORT oReport <span style="color: #0000ff;">TITLE</span> &nbsp;<span style="color: #ff0000;">"*** Mi Primer Reporte ***"</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">FONT</span> oFont1, oFont2 ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PREVIEW CAPTION <span style="color: #ff0000;">"Mensaje del título"</span><br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">//oReport:bPreInit:= { || DbGoTop() }</span><br /><br />&nbsp; &nbsp; &nbsp;COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"St"</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">DATA</span> Test->State<br /><br />&nbsp; &nbsp; &nbsp;COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Nombre"</span>, <span style="color: #ff0000;">"Apellido"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">DATA</span> &nbsp;Test->First, Test->Last<br /><br />&nbsp; &nbsp; &nbsp;COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Direccion"</span>, <span style="color: #ff0000;">"Ciudad"</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">DATA</span> &nbsp;Test->Street, Test->City<br /><br />&nbsp; &nbsp; &nbsp;COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">" &nbsp; Salario"</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">DATA</span> &nbsp;Test->Salary ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TOTAL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">RIGHT</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"9,999,999"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">FONT</span> <span style="color: #000000;">2</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">9</span><br /><br /><br /><br />&nbsp; &nbsp; &nbsp;END REPORT<br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> REPORT oReport<br /><br /><br />&nbsp; &nbsp; &nbsp;CLOSE TEST<br /><br />&nbsp; &nbsp; &nbsp;oFont1:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;oFont2:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />&nbsp;</div>[/code:1o2bkydo] I get: Error description: (DOS Error -2147352567) WINOLE/1006 Argument error: _FORMULA Args: [ 1] = C =SUBTOTAL( 9, D4:D5) Stack Calls =========== Called from: => TOLEAUTO:_FORMULA( 0 ) Called from: .\source\classes\REPORT.PRG => TREPORT:TOEXCEL( 2313 ) Called from: test.prg => (b)MAIN( 18 ) If I edit report.ch and comment out: [code=fw:1o2bkydo]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">if</span> lTotal<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">for</span> nCol := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nCols<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oCol &nbsp; &nbsp; := ::<span style="color: #000000;">aColumns</span><span style="color: #000000;">&#91;</span> nCol <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> oCol:<span style="color: #000000;">lTotal</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WITH OBJECT oSheet:<span style="color: #000000;">Cells</span><span style="color: #000000;">&#40;</span> nRow, nCol <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">//:Formula := "=SUBTOTAL( 9, " + ;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// &nbsp; oSheet:Range( oSheet:Cells( nFirstRow, nCol ), ;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// &nbsp; oSheet:Cells( nRow - 1, nCol ) ):Address( .f., .f. ) + ")"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nFont := Eval<span style="color: #000000;">&#40;</span> oCol:<span style="color: #000000;">bTotalFont</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> != aFont<span style="color: #000000;">&#91;</span> nCol <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">xlSetFont</span><span style="color: #000000;">&#40;</span> oSheet:<span style="color: #000000;">Cells</span><span style="color: #000000;">&#40;</span> nRow, nCol <span style="color: #000000;">&#41;</span>, ::<span style="color: #000000;">aFont</span><span style="color: #000000;">&#91;</span> nFont <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">next</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp;</div>[/code:1o2bkydo] I get an Excel with headers and titles but no content: <!-- m --><a class="postlink" href="http://i44.tinypic.com/34xgfv5.png">http://i44.tinypic.com/34xgfv5.png</a><!-- m --> I am sorry about the bad news. Thank your for our help and support. regards,
export TREPORT to Excel in Preview
This is test.dbf: <!-- m --><a class="postlink" href="http://uploaded.to/file/qpght3lt">http://uploaded.to/file/qpght3lt</a><!-- m -->
export TREPORT to Excel in Preview
First, please try with a simple sample. Please add the line oReport:bInit := { || TEST->( dbGoTop() ) } This is necessary. Please also remove the TOTAL clause and make a single line report. Please let me know the result and then we shall make the enhancements you may like to have. About error [quote:lwhn8kop]Error description: (DOS Error -2147352567) WINOLE/1006 Argument error: _FORMULA Args: [ 1] = C =SUBTOTAL( 9, D4:D5) [/quote:lwhn8kop] The formula "SUBTOTAL" works well with English International installation of Excel. For installations in other languages we need to substitute "SUBTOTAL" with the keyword of the language of installation. Depending on your feedback, we shall make the improvements necessary.
export TREPORT to Excel in Preview
Hello, Thanks for reply. Yes, with your code it is working fine: oReport:bInit := { || TEST->( dbGoTop() ) } But, does not do it automatically Treport?. Can´t it be done by default in ToExcel() method?. Sure, in spanish function SUBTOTAL is SUBTOTALES. But I still get the error. I use Excel 2003.
export TREPORT to Excel in Preview
[quote="lucasdebeltran":1aw0m8cc] Yes, with your code it is working fine: oReport:bInit := { || TEST->( dbGoTop() ) } But, does not do it automatically Treport?. Can´t it be done by default in ToExcel() method?. [/quote:1aw0m8cc] The way TReport was originally written, it only knows how to go forward. It does not know how to go to the top or go backwards. Also it does not know if the source data is dbf or array or something else. By the time preview is generated, TReport has already traversed the data till eof. Now if we ask TReport to go to top again and export to excel, we need to tell TReport how to go to Top of the data. I proposed to use bInit, because I did not want to add another data/variable for this purpose alone. Now, please let me know whether the ToExcel() method is working with two or more lines in a column. Depending on your feedback and needs let me see to what extent we can improve this method. [quote:1aw0m8cc]Sure, in spanish function SUBTOTAL is SUBTOTALES. But I still get the error. I use Excel 2003.[/quote:1aw0m8cc] I guess you corrected the source of TReport. Please correct like this: Instead of this line: [code=fw:1aw0m8cc]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oSheet:<span style="color: #000000;">Cells</span><span style="color: #000000;">&#40;</span> nRow, nCol <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Formula</span> := <span style="color: #ff0000;">"=SUBTOTAL(9,"</span> + cAdr + <span style="color: #ff0000;">")"</span><br />&nbsp;</div>[/code:1aw0m8cc] please substitute [code=fw:1aw0m8cc]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oSheet:<span style="color: #000000;">Cells</span><span style="color: #000000;">&#40;</span> nRow, nCol <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Formula</span> := <span style="color: #ff0000;">"=SUBTOTALES(9;"</span> + cAdr + <span style="color: #ff0000;">")"</span><br />&nbsp;</div>[/code:1aw0m8cc] Please note ; (semi-colon) after "SUBTOTALES(9" I shall be glad if you can give me your feedback on this.
export TREPORT to Excel in Preview
Mr. Nages, Thank you very much. Yes, know it is working fine with SUBTOTALES(9;. In case of array, what is the equivalent for oReport:bInit := { || dbGoTop() }?. In order to avoid the use of bInit, I modified ToExcel() method and I added a dbgotop(). It is working fine. My aim is to detect if datasoruce is a dbf or an Array. How can I detect is an array is the datasource of the Report?. I think I can check bSkip?. In a DBF is always nil. Best regards
export TREPORT to Excel in Preview
me parece que pueedes usar el metodo del propio xbrowse ::GoTop() ya que este metodo hara el salto al primer registro y ya se encarga de determinar si es un rdd o un array. salu2 carlos vargas
export TREPORT to Excel in Preview
[quote="carlos vargas":2lf8iq2h]me parece que pueedes usar el metodo del propio xbrowse ::GoTop() ya que este metodo hara el salto al primer registro y ya se encarga de determinar si es un rdd o un array. salu2 carlos vargas[/quote:2lf8iq2h] This discussion is about METHOD ToExcel() of TReport. This is independent of XBrowse.
export TREPORT to Excel in Preview
That´s right. But it is a good idea to create a new method in TReport, oreport:gotop(), so it´s called in ToExcel() method at beginning: ::gotop()
export TREPORT to Excel in Preview
rao, <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> its correct, trport <> xbrowse. sorry for my fault. salu2
export TREPORT to Excel in Preview
Up. [quote:20kvqz65]But it is a good idea to create a new method in TReport, oreport:gotop(), so it´s called in ToExcel() method at beginning: ::gotop()[/quote:20kvqz65]
export TREPORT to Excel in Preview
Mr. Rao, Could be please included in upcomming FW 12.04 please?. And what about including a new icon at rpreview?. Best regards,
export TREPORT to Excel in Preview
Hello, There is a bug with accents: [img:960z0l77]http&#58;//i47&#46;tinypic&#46;com/f1co42&#46;png[/img:960z0l77] This is the code: [code=fw:960z0l77]<div class="fw" id="{CB}" style="font-family: monospace;">REPORT oReport <span style="color: #0000ff;">TITLE</span> &nbsp;<span style="color: #ff0000;">"*** Mi Primer Reporte con tílde ***"</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">FONT</span> oFont1, oFont2 ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PREVIEW CAPTION <span style="color: #ff0000;">"Mensaje del título"</span><br /><br /><br />&nbsp; &nbsp; &nbsp;oReport:<span style="color: #000000;">bInit</span> := <span style="color: #000000;">&#123;</span> || dbGoTop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #000000;">&#125;</span><br /><br /><br /><br /><br />&nbsp; &nbsp; &nbsp;COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"St"</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">DATA</span> Test->State<br /><br />&nbsp; &nbsp; &nbsp;COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Nombre"</span>, <span style="color: #ff0000;">"Apellido"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">DATA</span> &nbsp;Test->First, Test->Last<br /><br />&nbsp; &nbsp; &nbsp;COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Dirección"</span>, <span style="color: #ff0000;">"Población Ciudad"</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">DATA</span> &nbsp;Test->Street, Test->City, <span style="color: #ff0000;">""</span><br /><br />&nbsp; &nbsp; &nbsp;COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">" &nbsp; Salario"</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">DATA</span> &nbsp;Test->Salary ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TOTAL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">RIGHT</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"9,999,999"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">FONT</span> <span style="color: #000000;">2</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">9</span><br /><br /><br /><br />&nbsp; &nbsp; &nbsp;END REPORT</div>[/code:960z0l77] Thank you.
export TREPORT to Excel in Preview
Hi, I also detected that HEADER and FOOTER of REPORT are not exported into Excel. Please, could be fixed?. Thanks.
export TREPORT to Excel in Preview
Hello, Sorry to bother. PICTURES are not handled too. Regards
export TREPORT to Excel in Preview
Up. Thanks <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) -->.
exportacion ficheros .jrc
Hola: ¿Añguno conoce alguna utilidad para exportar ficheros .jrc a Excel o DBF?. Muchas gracias.
exportando datos en fivedbu
Muy buenas a todos. Estoy usando fivedbu y lo encuentro un software fantástico ya que es el único con el que he logrado leer unos archivos dbu que al parecer no son muy comunes (ya que con ningún otro software logro visualizar sus datos, y no me permite abrirlo desde excel), la cuestión es que necesito utilizar esta data y para ello debo copiarla en alguna otra base de datos donde poder trabajarla (excel, sql, etc), sin embargo aun no logro exportar los datos, y estas son las formas en las que estoy tratando de exportarlos: 1- copiar/pegar: funciona perfecto pero solo puedo copiar un registro a la vez y tengo que exportar 20.000 registros. 2- exportar a excel a través de la opción "reporte": la aplicación se cae y me muestra el siguiente mensaje: Error description: (DOS Error -2147352567) WINOLE/1007 No se puede obtener la propiedad Paste de la clase Worksheet. (0x800A03EC): Microsoft Excel 3- exportar a sql a traves de la opcion "ADO abrir" proveedor SQL server Native Client 11.0 (al hacer test connection, no genera errores) al conectar la aplicación se cae y me muestra el siguiente mensaje: no se puede conectar a Provider=SQLNCLI11.1;Persist Security Info=False;User ID=XXX;Initial Catalog=XXX;Data Source=XXX;Initial File Name="";Server SPN="" (omiti datos sensibles XXX) Como verán es primera vez que trabajo con este tipo de archivos por lo que desconozco si estoy haciendo algo mal. Cualquier ayuda me sirve y de antemano muchas gracias.
exportar Dataflex a Excel/DBF
Hola amigos, Alguno ha podido exportar de Dataflex a Excel o DBF?. Muy agradecido.
exportar a Excel TREPORTS
Hola, Necesito exportar algunos REPORTS a Excel. Lo ideal sería añadir una opción al Preview, junto con las ya existentes de exportar a PDF y a Word. ¿Sería posible por favor?. Muchas gracias. Salu2
exportar a Excel TREPORTS
Usa Fast report... si mas no me equivoco tambien es posible con xbrowse...
exportar a Excel TREPORTS
Hola, Sí, esa opción ya la había pensado. Lo que sucede es que son unos informes bastante complejos. Pensé que si se exportaba a PDF y Word desde el preview, ¿por qué no Excel que es mucho más útil?.
exportar a Excel TREPORTS
Para eso hay buscador [url:3qsof0ff]http&#58;//forums&#46;fivetechsupport&#46;com/search&#46;php?keywords=report+excel&terms=all&author=&sc=1&sf=all&sk=t&sd=d&sr=topics&st=0&ch=300&t=0&submit=Search[/url:3qsof0ff]
exportar a Excel TREPORTS
Adolfo, Ya lo utilicé antes. Muchas gracias. La clase REPEXCEL no me funciona con las últimas versiones de harbour. Y leí en algún post que Mr. Nages tenía algo preparado para añadir, ya que es algo que se viene pidiendo desde hace mucho tiempo!!. Salu2
exportar a Excel TREPORTS
[quote="lucasdebeltran":34x23sow]Hola, Sí, esa opción ya la había pensado. Lo que sucede es que son unos informes bastante complejos. Pensé que si se exportaba a PDF y Word desde el preview, ¿por qué no Excel que es mucho más útil?.[/quote:34x23sow] Con FAST REPORT se puede hacer DE TODO... y exportar a donde quieras...
exportar a Excel TREPORTS
Lucas. Yo uso hasta el momento la lib Repexcel (W7 64) sin mayores inconvenientes (centrado pie de pagina), solo que uso XHarbour + FWH 1006. ¿Cual es el problema que te da?, veamos si es posible hacer algo al respecto, si te interesa Repexcel, claro. Saludos.
exportar a Excel TREPORTS
Hola Francisco, Muchas gracias. El problema es que la librería usa una versión vieja del rpreview.prg. Pero ya lo tengo más o menos en marcha. Os dejo la lib por si alguno le interesa para Harbour 3.1 <!-- m --><a class="postlink" href="http://uploaded.to/file/o1f8nbns">http://uploaded.to/file/o1f8nbns</a><!-- m --> Muchas gracias a Remomans y a José Murgosa por la contribución. Salu2
exportar a Excel TREPORTS
Antonio, ¿Tenéis previsto implementarlo en Fivewin?. No hay nada de código en C, sólo unos cambios en treport y en rpreview.prg (añadir el botón y la opción en el menú). Salu2
exportar a Excel TREPORTS
For simple reports you may try oReport:ToExcel()
exportar a Excel desde xbrowse con :toExcel
Gente: Buenas Tardes se puede enviar a excel desde xbrowse pero no todos los registros que se visualizan en el xbrowse sino solo los que cumplan alguna condicion utilizando toExcel Si es posible, podria darme un ejemplo por favor? Gracias
exportar a Excel desde xbrowse con :toExcel
artu01: Sugerencia, filtra los registros en el xBrowse y exportas los que te queden. Saludos
exportar a Excel desde xbrowse con :toExcel
Si Armando ,eso es justamente lo que haré sino tengo otra alternativa. Gracias
exportar a Excel desde xbrowse con :toExcel
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&p=233995#p233995">viewtopic.php?f=3&p=233995#p233995</a><!-- l -->
exportar a excel lineas adic. que no aparecen en el xbrowse
Hola busco hacer eso de arriba. Al excel que va a mostrar los resultados desde xbrowse, se le puede poner encabezados, subtitulos o fecha de exp. que no estuvieron definidas cuando arme el xbrowse?
exportar a excel lineas adic. que no aparecen en el xbrowse
oSheet := oBrw:ToExcel() Now, use the oSheet object and write in that Sheet, whatever you want to add extra.
exportar a excel lineas adic. que no aparecen en el xbrowse
Thanks Mr. Rao
exportar a excel lineas adic. que no aparecen en el xbrowse
Exporto a excel con xbrowse sin problema El problema es cuando quiero agregarle mas cosas a esa hoja me aparecen errores como por ejemplo: [code=fw:2qbta8bx]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">800</span>,<span style="color: #000000;">500</span> <span style="color: #0000ff;">PIXEL</span><br /><br />   @ <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">OF</span> oDlg ;<br />         DATASOURCE <span style="color: #ff0000;">"DATA"</span> ;<br />         COLUMNS <span style="color: #ff0000;">"material"</span>, <span style="color: #ff0000;">"descrip"</span>, <span style="color: #ff0000;">"mes01"</span>,<span style="color: #ff0000;">"mes02"</span>,<span style="color: #ff0000;">"mes03"</span>,<span style="color: #ff0000;">"mes04"</span>, <span style="color: #ff0000;">"mes05"</span>,<span style="color: #ff0000;">"mes06"</span>,<span style="color: #ff0000;">"mes07"</span>,<span style="color: #ff0000;">"mes08"</span>,<span style="color: #ff0000;">"mes09"</span>, <span style="color: #ff0000;">"mes10"</span>, <span style="color: #ff0000;">"mes11"</span>, <span style="color: #ff0000;">"mes12"</span>;<br />         HEADERS <span style="color: #ff0000;">"Material"</span>, <span style="color: #ff0000;">"Descripcion"</span>,<span style="color: #ff0000;">"Enero"</span>,<span style="color: #ff0000;">"Febrero"</span>,<span style="color: #ff0000;">"Marzo"</span>,<span style="color: #ff0000;">"Abril"</span>,<span style="color: #ff0000;">"Mayo"</span>,<span style="color: #ff0000;">"Junio"</span>,<span style="color: #ff0000;">"Julio"</span>,<span style="color: #ff0000;">"Agosto"</span>,<span style="color: #ff0000;">"Septiembre"</span>,<span style="color: #ff0000;">"Octubre"</span>,<span style="color: #ff0000;">"Noviembre"</span>,<span style="color: #ff0000;">"Diciembre"</span><br /> <br />   oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oDlg:<span style="color: #000000;">oClient</span> := oBrw<br />   <br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> ;<br />   <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span>DlgMenu1<span style="color: #000000;">&#40;</span>oDlg,oBrw<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>  <br />   <br />   data-><span style="color: #000000;">&#40;</span>dbCloseArea<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">Function</span> DlgMenu1<span style="color: #000000;">&#40;</span>oDlg,oBrw<span style="color: #000000;">&#41;</span><br />  <span style="color: #00C800;">local</span> oMenu, oBar<br /> <br />  <span style="color: #0000ff;">MENU</span> oMenu <span style="color: #000000;">2007</span>                                          <br />       <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Excel"</span>  <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> CargaEx<span style="color: #000000;">&#40;</span>oBrw<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />       <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Salir"</span>  <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  <span style="color: #0000ff;">ENDMENU</span><br />  oDlg:<span style="color: #000000;">SetMenu</span><span style="color: #000000;">&#40;</span>oMenu<span style="color: #000000;">&#41;</span><br /> <br />  <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> cargaex<span style="color: #000000;">&#40;</span>obrw<span style="color: #000000;">&#41;</span><br />    oExcel:=oBrw:<span style="color: #000000;">toexcel</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    oExcel:<span style="color: #000000;">Rows</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Insert</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    nLin:=<span style="color: #000000;">1</span>  <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> <br /> </div>[/code:2qbta8bx] Consigo este error [url=https&#58;//postimages&#46;org/:2qbta8bx][img:2qbta8bx]https&#58;//i&#46;postimg&#46;cc/sgjDvYvZ/error1&#46;png[/img:2qbta8bx][/url:2qbta8bx] [code=fw:2qbta8bx]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> cargaex<span style="color: #000000;">&#40;</span>obrw<span style="color: #000000;">&#41;</span><br />    oExcel:=oBrw:<span style="color: #000000;">toexcel</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #B900B9;">//oExcel:Rows(1):Insert()</span><br />    nLin:=<span style="color: #000000;">1</span>  <br />    oExcel:<span style="color: #000000;">Columns</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"F:L"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">delete</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">-4159</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">Nil</span><br /> </div>[/code:2qbta8bx] Aqui otro error [url=https&#58;//postimages&#46;org/:2qbta8bx][img:2qbta8bx]https&#58;//i&#46;postimg&#46;cc/7PtpgSs2/error2&#46;png[/img:2qbta8bx][/url:2qbta8bx] He intentado de otra forma pero igual consigo error al exportar a excel [code=fw:2qbta8bx]<div class="fw" id="{CB}" style="font-family: monospace;"><br />      oExcel:= TOleAuto<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Excel.Application"</span> <span style="color: #000000;">&#41;</span><br />      oExcel:<span style="color: #000000;">WorkBooks</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      oExcel:<span style="color: #000000;">Visible</span> := .T.<br />      oSheet:=oExcel:<span style="color: #000000;">ActiveSheet</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      nFilM :=<span style="color: #000000;">2</span> <br />      oRs:<span style="color: #000000;">movefirst</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">Do</span> <span style="color: #00C800;">While</span> !oRs:<span style="color: #000000;">Eof</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />        cDesMat:= oRs:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"descrip"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />        oSheet:<span style="color: #000000;">Cells</span><span style="color: #000000;">&#40;</span> nFilM,  <span style="color: #000000;">1</span>  <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := cDesMat<br />        nFilm++<br />        <span style="color: #00C800;">Do</span> <span style="color: #00C800;">While</span> !oRs:<span style="color: #000000;">Eof</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> .and. cDesMat=oRs:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"descrip"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />          nMes:=oRs:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"mes"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />          <span style="color: #00C800;">Do</span> <span style="color: #00C800;">While</span> !oRs:<span style="color: #000000;">Eof</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> .and. cDesMat=oRs:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"descrip"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> .and. nMes=oRs:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"mes"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />            cMovi:=oRs:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"movim"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />            nSumPesI:=<span style="color: #000000;">0</span><br />            <span style="color: #00C800;">Do</span> <span style="color: #00C800;">While</span> !oRs:<span style="color: #000000;">Eof</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> .and. cDesMat=oRs:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"descrip"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> .and. nMes=oRs:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"mes"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ;<br />             .and. cMovi=oRs:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"movim"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br />                nSumPesI+=oRs:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"pnet"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />              oRs:<span style="color: #000000;">movenext</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />            <span style="color: #00C800;">EndDo</span>  <br />            <span style="color: #00C800;">do</span> <span style="color: #00C800;">case</span><br />              <span style="color: #00C800;">case</span> cMovi=<span style="color: #ff0000;">'A'</span><br />                oSheet:<span style="color: #000000;">Cells</span><span style="color: #000000;">&#40;</span> nFilM,  <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">NumberFormat</span> := <span style="color: #ff0000;">"##.##0,00"</span><br />                oSheet:<span style="color: #000000;">Cells</span><span style="color: #000000;">&#40;</span> nFilM,  <span style="color: #000000;">2</span>  <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := nSumPesI<br />              <span style="color: #00C800;">case</span> cMovi=<span style="color: #ff0000;">'I'</span><br />                oSheet:<span style="color: #000000;">Cells</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>nFilM<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span>,  <span style="color: #000000;">&#40;</span>nMes<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">NumberFormat</span> := <span style="color: #ff0000;">"##.##0,00"</span><br />                oSheet:<span style="color: #000000;">Cells</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>nFilM<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span>,  <span style="color: #000000;">&#40;</span>nMes<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span>  <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := nSumPesI<br />              <span style="color: #00C800;">case</span> cMovi=<span style="color: #ff0000;">'S'</span>  <br />                  oSheet:<span style="color: #000000;">Cells</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>nFilM<span style="color: #000000;">+2</span><span style="color: #000000;">&#41;</span>,  <span style="color: #000000;">&#40;</span>nMes<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">NumberFormat</span> := <span style="color: #ff0000;">"##.##0,00"</span><br />                oSheet:<span style="color: #000000;">Cells</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>nFilM<span style="color: #000000;">+2</span><span style="color: #000000;">&#41;</span>,  <span style="color: #000000;">&#40;</span>nMes<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span>  <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := <span style="color: #000000;">-1</span>*nSumPesI              <br />            <span style="color: #00C800;">endcase</span>           <br />          <span style="color: #00C800;">EndDo</span>         <br />        <span style="color: #00C800;">EndDo</span><br />        nFilM+=<span style="color: #000000;">4</span><br />      <span style="color: #00C800;">EndDo</span><br /><br /> </div>[/code:2qbta8bx] Lo raro es que hay veces que si exporta a excel sin errores pero vuelvo intentar a exportar lo mismo y sale los errores de arriba. Uds. pueden trabajar con excel desde fw sin problema? Utilizo fw 17.12, harbour 3.2.0dev (r1703231115) y Borland bcc7
exportar a excel lineas adic. que no aparecen en el xbrowse
Mr. Rao He notado que si solo dejo la línea obrw:toexcel() lo puedo hacer varias veces y no hay problema pero si le agrego una línea por ejemplo: oExcel:Rows(1):Insert() la primera vez que exportó no sale error pero si hago una segunda vez con la hoja abierta de la primera exportación me salen los errores. Porqué pasa eso? Espero me indique que esta mal, gracias
exportar a pdf un xbrowse ??
Hola. Tengo en pnatalla un xbrowse y quiero tal cual esta configurador exportarlo a pdf. Eso se puede hacer directamente? gracias.
exportar a pdf un xbrowse ??
oBrw:Report( nil, .f., nil, nil, nil, <cPdfFileName> )
exportar a pdf un xbrowse ??
gracias
extended code block does not working in Harbour
Hi , I am moving to step by step from xHarbour to Harbour. I have compiled the below code in Harbour its gives an error but where as the same code works fine in xHarbour. I am not able find out why ? or whether Harbour supports this kind of syntax. Please help on this. Thanks in advance..! [code=fw:1kivv2ya]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; oLovBrw:<span style="color: #000000;">bKeyChar</span> := < | n, f |<br />&nbsp; &nbsp; <span style="color: #00C800;">IF</span> n == VK_RETURN<br />&nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style="color: #000000;">cText</span><span style="color: #000000;">&#40;</span> PadR<span style="color: #000000;">&#40;</span>AllTrim<span style="color: #000000;">&#40;</span> oQry:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">&#40;</span> &nbsp;<span style="color: #ff0000;">"acct_name"</span> <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #000000;">&#41;</span>,<span style="color: #000000;">50</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;aPartyInfo := <span style="color: #000000;">&#123;</span> oQry:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">&#40;</span> &nbsp;<span style="color: #ff0000;">"coctr_id"</span> <span style="color: #000000;">&#41;</span> , oQry:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">&#40;</span> &nbsp;<span style="color: #ff0000;">"tcs_percent"</span> <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oLovWnd:<span style="color: #000000;">END</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ><br /><br />&nbsp;</div>[/code:1kivv2ya] Thanks Shridhar
extended code block does not working in Harbour
The syntax for Harbour is { |p1,p2,..| ....code ... } If you include "hbcompat.ch", then you can use the present syntax as in xharbour and that will be automatically translates to harbour syntax. If you are using recent FWH, fivewin.ch also translates xharbour syntax to harbour syntax.
extended code block does not working in Harbour
Hi Rao , Included "hbcompat.ch" now its working fine..! Thanks a lot..! Thanks Shridhar
extra preprocessor
Hello friends, Thanks to an extra preprocessor, you get a very readable code. Best regards, Otto [img:37kf9anc]https&#58;//mybergland&#46;com/fwforum/uebersicht%20local%20menu&#46;jpg[/img:37kf9anc] [img:37kf9anc]https&#58;//mybergland&#46;com/fwforum/HRB_INDEX&#46;jpg[/img:37kf9anc] [img:37kf9anc]https&#58;//mybergland&#46;com/fwforum/local_menu&#46;jpg[/img:37kf9anc] [img:37kf9anc]https&#58;//mybergland&#46;com/fwforum/LOCAL_MENU_ITEM&#46;jpg[/img:37kf9anc] [img:37kf9anc]https&#58;//mybergland&#46;com/fwforum/menu_scripts&#46;jpg[/img:37kf9anc] [img:37kf9anc]https&#58;//mybergland&#46;com/fwforum/onclick&#46;jpg[/img:37kf9anc]
extra preprocessor
Hello friends, Thanks to an extra preprocessor, you get a very readable code. Best regards, Otto [img:1r6i7f7q]https&#58;//mybergland&#46;com/fwforum/uebersicht%20local%20menu&#46;jpg[/img:1r6i7f7q] [img:1r6i7f7q]https&#58;//mybergland&#46;com/fwforum/HRB_INDEX&#46;jpg[/img:1r6i7f7q] [img:1r6i7f7q]https&#58;//mybergland&#46;com/fwforum/local_menu&#46;jpg[/img:1r6i7f7q] [img:1r6i7f7q]https&#58;//mybergland&#46;com/fwforum/LOCAL_MENU_ITEM&#46;jpg[/img:1r6i7f7q] [img:1r6i7f7q]https&#58;//mybergland&#46;com/fwforum/menu_scripts&#46;jpg[/img:1r6i7f7q] [img:1r6i7f7q]https&#58;//mybergland&#46;com/fwforum/onclick&#46;jpg[/img:1r6i7f7q]
extract source code parts
Hello friends, Now we can disassemble a source code with our FIVEWIN program HARBOURINO and extract the <STYLE> TAGS. This makes the source code much clearer. Instead of about 12000 lines we now have 2000 lines and the <STYLE> TAGS in separate files. If you convert a WORDPRESS page without direct access to the server, you first have a lot of <STYLE> TAGs in the source code. Best regards, Otto [img:28tu7f3w]https&#58;//mybergland&#46;com/fwforum/hbr&#46;jpg[/img:28tu7f3w] [img:28tu7f3w]https&#58;//mybergland&#46;com/fwforum/style&#46;gif[/img:28tu7f3w]
extract source code parts
<!-- m --><a class="postlink" href="https://wordpress.org/themes/twentynineteen/">https://wordpress.org/themes/twentynineteen/</a><!-- m --> For example, if you look inside the source code of this page and store it to your disk, you see there are some <style> TAGs which make the code confusing. Now the new function of HARBOURINO helps to extract these automatically. [img:3fyhuh05]https&#58;//mybergland&#46;com/fwforum/diag&#46;jpg[/img:3fyhuh05]
extract text from richtext formated memo field
Hi everyone! I have richtext saved on memo fields. Sometimes I'd like to print just the text saved on the memo field. No richtext fonts and/or attributes. Just plain text. But don't want to go through the trouble and cpu time of defining the rtf control on screen before printing. Is it possible? Example: Suppose I have this saved on the memo field: [quote:3pmq421c]{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 ARIAL;}} \viewkind4\uc1\pard\f0\fs19      The specimen is labeled "GALLBLADDER", is submitted in formalin and consists of a gallbladder measuring 9 cm in length x 2.5 cm in maximum diameter. The serosa is purple-tan and smooth. The gallbladder wall averages 0.2 cm in thickness. The mucosa is green and flattened. Within the lumen admixed with green viscid bile are multiple yellow granular calculi measuirng 3 x 2 x 0.3 cm in aggregate. (RSS 1 CASS)  WVS:vsb  \par }[/quote:3pmq421c] Would print this: [quote:3pmq421c]The specimen is lablel "GALLBLADDER", is submitted in formalin and consists of a gallbladder measuring 9 cm in lenght....[/quote:3pmq421c] No fonts no attributes. Just the text. Can some help? Reinaldo.
extract text from richtext formated memo field
Could you find a solution ?
extract text from richtext formated memo field
No. The only way I found to extract text from a richttext control is with: oRtf:GetText(). But that requires for the richtext control to be created which means that a window has to be defined also. Reinaldo.
extract text from richtext formated memo field
nageswaragunupudi; I did find a solution to the problem: [code=fw:h6jqpupg]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#DEFINE</span> _cREGEX <span style="color: #ff0000;">"<span style="color: #000000;">\{</span>?<span style="color: #000000;">\\</span>([a-z]{1,32}[0-9]* ?)([A-z, ]*;)?|}"</span>  <span style="color: #B900B9;">//includes fonts</span><br /><br /><span style="color: #00C800;">function</span> GetTextFromRTF<span style="color: #000000;">&#40;</span> cRtfText, lKeepCRLFs <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> aRet <br /><span style="color: #00C800;">local</span> cStrip, i<br /><br />    <span style="color: #00C800;">DEFAULT</span> cRtfText := <span style="color: #ff0000;">""</span><br />    <span style="color: #00C800;">DEFAULT</span> lKeepCRLFs := .t.<br />    <br />    aRet := hb_RegExAll<span style="color: #000000;">&#40;</span> _cREGEX, cRtfText, .f. <span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #00C800;">if</span> aRet == <span style="color: #00C800;">Nil</span>  ;return cRtfText    ;endif<br />    <br />    aSort<span style="color: #000000;">&#40;</span> aRet,,, <span style="color: #000000;">&#123;</span> |x,y| len<span style="color: #000000;">&#40;</span> x<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> > len<span style="color: #000000;">&#40;</span> y<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">for</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span> aRet <span style="color: #000000;">&#41;</span><br /><br />        cRtfText := StrTran<span style="color: #000000;">&#40;</span> cRtfText, aRet<span style="color: #000000;">&#91;</span> i, <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />        <br />    <span style="color: #00C800;">Next</span> <br />    <br />    <span style="color: #00C800;">if</span> !lKeepCRLFs<br />        cRtfText := StrTran<span style="color: #000000;">&#40;</span> cRtfText, CRLF, <span style="color: #ff0000;">" "</span> <span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">endif</span><br />    <br /><span style="color: #00C800;">Return</span> cRtfText<br /> </div>[/code:h6jqpupg] Regards, Reinaldo.
extract with hb_UnZipFile to same directory
Hi, I have a zip file that contains multiple diectory's with files. If I use hb_UnZipFile(), it create the files and the directory. Is is possible to extract all the files to 1 directory? (So without the directory). Normaly, all files are unique, so there will be no problem with duplicated files .
extract with hb_UnZipFile to same directory
Hi, Just found it. With the lWithPath parameter.
extractor de texto de un PDF
He adaptado este código en C para usarlo desde Harbour: [url:2k258atz]http&#58;//www&#46;codeproject&#46;com/script/Content/ViewAssociatedFile&#46;aspx?rzp=%2FKB%2Fcpp%2FExtractPDFText%2Fextractpdftext_src&#46;zip&zep=cp%2Fpdf&#46;cpp&obid=7056&obtid=2&ovid=1[/url:2k258atz] Aqui esta mi código. No funciona con los PDFs que he probado ó tal vez aún hay algún bug en el código. Aqui lo comparto por si a alguien le apetece probarlo: [code=fw:2k258atz]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cPDF := MemoRead<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\t</span>est.pdf"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nStart := <span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"stream"</span>, cPDF <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nEnd := <span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"endstream"</span>, cPDF <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cBuf := Replicate<span style="color: #000000;">&#40;</span> Chr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> nEnd - nStart <span style="color: #000000;">&#41;</span> * <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cText, nResult<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> hFile<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">while</span> nStart <= Len<span style="color: #000000;">&#40;</span> cPDF <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nStart = <span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"stream"</span>, cPDF <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nEnd = <span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"endstream"</span>, cPDF <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cBuf = Replicate<span style="color: #000000;">&#40;</span> Chr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> nEnd - nStart <span style="color: #000000;">&#41;</span> * <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cText = <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cPDF, nStart + <span style="color: #000000;">6</span>, nEnd - nStart <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span> cText, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> == Chr<span style="color: #000000;">&#40;</span> 0x0d <span style="color: #000000;">&#41;</span> .and. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cText, <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> == Chr<span style="color: #000000;">&#40;</span> 0x0a <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nStart += <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; elseif <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span> cText, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> == Chr<span style="color: #000000;">&#40;</span> 0x0a <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nStart++<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cText, nEnd - <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> == Chr<span style="color: #000000;">&#40;</span> 0x0d <span style="color: #000000;">&#41;</span> .and. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cText, nEnd - <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> == Chr<span style="color: #000000;">&#40;</span> 0x0a <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nEnd -= <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; elseif <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cText, nEnd - <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> == Chr<span style="color: #000000;">&#40;</span> 0x0a <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nEnd--<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; &nbsp; HB_ZUNCOMPRESS<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cPDF, nStart + <span style="color: #000000;">6</span>, nEnd - nStart <span style="color: #000000;">&#41;</span>, @cBuf, @nResult <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; cPDF = <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cPDF, nEnd + Len<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"endstream"</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; ProcessOutput<span style="color: #000000;">&#40;</span> hFile := fcreate<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\t</span>est.out"</span>, <span style="color: #ff0000;">"wb"</span> <span style="color: #000000;">&#41;</span>, cBuf <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; FClose<span style="color: #000000;">&#40;</span> hFile <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> MemoRead<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\t</span>est.out"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// MsgInfo( MemoRead( "c:\test.out" ), nResult )</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;end<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><span style="color: #00D7D7;">#include</span> <wtypes.h><br /><br /><span style="color: #00D7D7;">#define</span> oldchar <span style="color: #000000;">15</span><br /><br />float ExtractNumber<span style="color: #000000;">&#40;</span>const char* search, int lastcharoffset<span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; float flt=<span style="color: #000000;">-1.0</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; int i = lastcharoffset;<br />&nbsp; &nbsp; &nbsp; &nbsp; char buffer<span style="color: #000000;">&#91;</span>oldchar<span style="color: #000000;">+5</span><span style="color: #000000;">&#93;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">while</span> <span style="color: #000000;">&#40;</span>i><span style="color: #000000;">0</span> && search<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>==<span style="color: #ff0000;">' '</span><span style="color: #000000;">&#41;</span> i--;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">while</span> <span style="color: #000000;">&#40;</span>i><span style="color: #000000;">0</span> && <span style="color: #000000;">&#40;</span>isdigit<span style="color: #000000;">&#40;</span>search<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span> || search<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>==<span style="color: #ff0000;">'.'</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> i--;<br />&nbsp; &nbsp; &nbsp; &nbsp; ZeroMemory<span style="color: #000000;">&#40;</span>buffer,sizeof<span style="color: #000000;">&#40;</span>buffer<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; strncpy<span style="color: #000000;">&#40;</span>buffer, search+i<span style="color: #000000;">+1</span>, lastcharoffset-i<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>buffer<span style="color: #000000;">&#91;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#93;</span> && sscanf<span style="color: #000000;">&#40;</span>buffer, <span style="color: #ff0000;">"%f"</span>, &flt<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> flt;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">-1.0</span>;<br /><span style="color: #000000;">&#125;</span><br />BOOL seen2<span style="color: #000000;">&#40;</span>const char* search, char* recent<span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br /><span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> &nbsp; &nbsp;recent<span style="color: #000000;">&#91;</span>oldchar<span style="color: #000000;">-3</span><span style="color: #000000;">&#93;</span>==search<span style="color: #000000;">&#91;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp;&& recent<span style="color: #000000;">&#91;</span>oldchar<span style="color: #000000;">-2</span><span style="color: #000000;">&#93;</span>==search<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&& <span style="color: #000000;">&#40;</span>recent<span style="color: #000000;">&#91;</span>oldchar<span style="color: #000000;">-1</span><span style="color: #000000;">&#93;</span>==<span style="color: #ff0000;">' '</span> || recent<span style="color: #000000;">&#91;</span>oldchar<span style="color: #000000;">-1</span><span style="color: #000000;">&#93;</span>==0x0d ||<br />recent<span style="color: #000000;">&#91;</span>oldchar<span style="color: #000000;">-1</span><span style="color: #000000;">&#93;</span>==0x0a<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&& <span style="color: #000000;">&#40;</span>recent<span style="color: #000000;">&#91;</span>oldchar<span style="color: #000000;">-4</span><span style="color: #000000;">&#93;</span>==<span style="color: #ff0000;">' '</span> || recent<span style="color: #000000;">&#91;</span>oldchar<span style="color: #000000;">-4</span><span style="color: #000000;">&#93;</span>==0x0d ||<br />recent<span style="color: #000000;">&#91;</span>oldchar<span style="color: #000000;">-4</span><span style="color: #000000;">&#93;</span>==0x0a<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">TRUE</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">FALSE</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00D7D7;">#include</span> <hbapifs.h><br /><br /><span style="color: #00C800;">static</span> int xputc<span style="color: #000000;">&#40;</span> unsigned char c, FILE * fo <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">static</span> int iPos = <span style="color: #000000;">0</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> hb_fsWriteAt<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HB_FHANDLE <span style="color: #000000;">&#41;</span> fo, &c, <span style="color: #000000;">1</span>, iPos++ <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br />void ProcessOutput<span style="color: #000000;">&#40;</span>FILE* file, char* output, size_t len<span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//Are we currently inside a text object?</span><br />&nbsp; &nbsp; &nbsp; &nbsp; BOOL intextobject = <span style="color: #00C800;">FALSE</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//Is the next character literal (e.g. \\ to get a \ character or \( to get ( ):</span><br />&nbsp; &nbsp; &nbsp; &nbsp; BOOL nextliteral = <span style="color: #00C800;">FALSE</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//() Bracket nesting level. Text appears inside ()</span><br />&nbsp; &nbsp; &nbsp; &nbsp; int rbdepth = <span style="color: #000000;">0</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//Keep previous chars to get extract numbers etc.:</span><br />&nbsp; &nbsp; &nbsp; &nbsp; char oc<span style="color: #000000;">&#91;</span>oldchar<span style="color: #000000;">&#93;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; int j=<span style="color: #000000;">0</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; size_t i;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">for</span> <span style="color: #000000;">&#40;</span>j=<span style="color: #000000;">0</span>; j<oldchar; j++<span style="color: #000000;">&#41;</span> oc<span style="color: #000000;">&#91;</span>j<span style="color: #000000;">&#93;</span>=<span style="color: #ff0000;">' '</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">for</span><span style="color: #000000;">&#40;</span> i=<span style="color: #000000;">0</span>; i<len; i++<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; unsigned char c = output<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xputc<span style="color: #000000;">&#40;</span> c, file <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>intextobject<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>rbdepth==<span style="color: #000000;">0</span> && seen2<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"TD"</span>, oc<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//Positioning.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//See if a new line has to start or just a tab:</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; float num = ExtractNumber<span style="color: #000000;">&#40;</span>oc,oldchar<span style="color: #000000;">-5</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>num><span style="color: #000000;">1.0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xputc<span style="color: #000000;">&#40;</span>0x0d, file<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xputc<span style="color: #000000;">&#40;</span>0x0a, file<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>num<<span style="color: #000000;">1.0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xputc<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'<span style="color: #000000;">\t</span>'</span>, file<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>rbdepth==<span style="color: #000000;">0</span> && seen2<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ET"</span>, oc<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//End of a text object, also go to a new line.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; intextobject = <span style="color: #00C800;">FALSE</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xputc<span style="color: #000000;">&#40;</span>0x0d, file<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xputc<span style="color: #000000;">&#40;</span>0x0a, file<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span> <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>c==<span style="color: #ff0000;">'('</span> && rbdepth==<span style="color: #000000;">0</span> && !nextliteral<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; int num;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//Start outputting text!</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rbdepth=<span style="color: #000000;">1</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//See if a space or tab (>1000) is called for by looking</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//at the number in front of (</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; num = ExtractNumber<span style="color: #000000;">&#40;</span>oc,oldchar<span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>num><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>num><span style="color: #000000;">1000.0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xputc<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'<span style="color: #000000;">\t</span>'</span>, file<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span> <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>num><span style="color: #000000;">100.0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xputc<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">' '</span>, file<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span> <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>c==<span style="color: #ff0000;">')'</span> && rbdepth==<span style="color: #000000;">1</span> && !nextliteral<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//Stop outputting text</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rbdepth=<span style="color: #000000;">0</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span> <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>rbdepth==<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//Just a normal text character:</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>c==<span style="color: #ff0000;">'<span style="color: #000000;">\\</span>'</span> && !nextliteral<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//Only print out next character no matter what. Do not interpret.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nextliteral = <span style="color: #00C800;">TRUE</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nextliteral = <span style="color: #00C800;">FALSE</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>c>=<span style="color: #ff0000;">' '</span><span style="color: #000000;">&#41;</span> && <span style="color: #000000;">&#40;</span>c<=<span style="color: #ff0000;">'~'</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> || <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>c>=<span style="color: #000000;">128</span><span style="color: #000000;">&#41;</span> && <span style="color: #000000;">&#40;</span>c<<span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xputc<span style="color: #000000;">&#40;</span>c, file<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//Store the recent characters for when we have to go back for a number:</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">for</span> <span style="color: #000000;">&#40;</span>j=<span style="color: #000000;">0</span>; j<oldchar<span style="color: #000000;">-1</span>; j++<span style="color: #000000;">&#41;</span> oc<span style="color: #000000;">&#91;</span>j<span style="color: #000000;">&#93;</span>=oc<span style="color: #000000;">&#91;</span>j<span style="color: #000000;">+1</span><span style="color: #000000;">&#93;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oc<span style="color: #000000;">&#91;</span>oldchar<span style="color: #000000;">-1</span><span style="color: #000000;">&#93;</span>=c;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>!intextobject<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>seen2<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"BT"</span>, oc<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//Start of a text object:</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; intextobject = <span style="color: #00C800;">TRUE</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> PROCESSOUTPUT <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;int iLen = hb_parclen<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #B900B9;">// char * buffer = hb_xgrab( iLen );</span><br /><br />&nbsp; &nbsp;ProcessOutput<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> FILE * <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, iLen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #B900B9;">// hb_storclen( buffer, iLen, 2 );</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// hb_xfree( buffer );</span><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP</div>[/code:2k258atz]
extractor de texto de un PDF
Hola <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> en el Xverce me sale lo siguiente [code=fw:2av6uzl3]<div class="fw" id="{CB}" style="font-family: monospace;">Warning W8004 - test.prg <span style="color: #000000;">6055</span>: <span style="color: #ff0000;">'j'</span> is assigned a value that is never used in <span style="color: #00C800;">function</span> ProcessOutput</div>[/code:2av6uzl3] <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> es en este pedasito [code=fw:2av6uzl3]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #B900B9;">//Keep previous chars to get extract numbers etc.:</span><br />        char oc<span style="color: #000000;">&#91;</span>oldchar<span style="color: #000000;">&#93;</span>;<br />        int j=<span style="color: #000000;">0</span>;<br />        size_t i;<br /> </div>[/code:2av6uzl3] espero se pueda lograr seria para sacar los datos de mas de 15000 archivos PDF <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
extractor de texto de un PDF
Aida, j se usa aqui: for (j=0; j<oldchar; j++) oc[j]=' '; que compilador de C usas ?
extractor de texto de un PDF
Aida, Antonio creo que el compilador tiene razón o haces esto: int j; // No se asigna el 0 ... for (j=0; j<oldchar; j++) oc[j]=' '; o haces esto: for ( int j=0; j<oldchar; j++) oc[j]=' '; jaja pero las dos cosas juntas "nor" <!-- s:mrgreen: --><img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green" /><!-- s:mrgreen: --> Aparezco poco por aquí, pero espero remediarlo pronto. Saludos a los dos... bueno a "to er" mundo jejeje
extractor de texto de un PDF
Tienes toda la razón, esa inicialización es la que sobraba <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Aun asi, seguimos sin saber si el código funciona o no. La funcion HB_ZUNCOMPRESS() devuelve un código de error, cero significa que los datos descomprimidos son correctos, -5 es que estan mal. En mis pruebas suele dar cero pero no aparece el texto. A ver si entre todos lo hacemos funcionar <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
extractor de texto de un PDF
No soy buena en código importado pero le haré la luchita <!-- s:mrgreen: --><img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green" /><!-- s:mrgreen: --> y como queda con la corrección el código ya me perdí <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
extractor de texto de un PDF
Hola creo que el error es que se esta creando el archivo cada iteración del while, sacando la creacion/cierre del archivo de salida se avanza un poco mas de esta forma funciona... pero el archivo de salida se guarda mal... repite las letras [code=fw:2qvvhcl9]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cPDF := MemoRead<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"curl.pdf"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nStart := <span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"stream"</span>, cPDF <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nEnd := <span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"endstream"</span>, cPDF <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cBuf := Replicate<span style="color: #000000;">&#40;</span> Chr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> nEnd - nStart <span style="color: #000000;">&#41;</span> * <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cText, nResult<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> hFile<br /><br />&nbsp; &nbsp;hFile := fcreate<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"curl.out"</span>, <span style="color: #ff0000;">"wb"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">while</span> nStart <= Len<span style="color: #000000;">&#40;</span> cPDF <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nStart = <span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"stream"</span>, cPDF <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nEnd = <span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"endstream"</span>, cPDF <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cBuf = Replicate<span style="color: #000000;">&#40;</span> Chr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> nEnd - nStart <span style="color: #000000;">&#41;</span> * <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cText = <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cPDF, nStart + <span style="color: #000000;">6</span>, nEnd - nStart <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span> cText, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> == Chr<span style="color: #000000;">&#40;</span> 0x0d <span style="color: #000000;">&#41;</span> .and. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cText, <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> == Chr<span style="color: #000000;">&#40;</span> 0x0a <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nStart += <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; elseif <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span> cText, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> == Chr<span style="color: #000000;">&#40;</span> 0x0a <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nStart++<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cText, nEnd - <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> == Chr<span style="color: #000000;">&#40;</span> 0x0d <span style="color: #000000;">&#41;</span> .and. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cText, nEnd - <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> == Chr<span style="color: #000000;">&#40;</span> 0x0a <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nEnd -= <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; elseif <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cText, nEnd - <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> == Chr<span style="color: #000000;">&#40;</span> 0x0a <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nEnd--<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; &nbsp; HB_ZUNCOMPRESS<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cPDF, nStart + <span style="color: #000000;">6</span>, nEnd - nStart <span style="color: #000000;">&#41;</span>, @cBuf, @nResult <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; cPDF = <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cPDF, nEnd + Len<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"endstream"</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; ProcessOutput<span style="color: #000000;">&#40;</span>hFile, cBuf <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> MemoRead<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"curl.out"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//MsgInfo( MemoRead( "curl.out" ), nResult )</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;FClose<span style="color: #000000;">&#40;</span> hFile <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:2qvvhcl9]
extractor de texto de un PDF
Daniel, Me habia dejado una traza en el código. Ahora parece ir mucho mejor <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> [code=fw:uriiy1ms]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cPDF := MemoRead<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\c</span>url.pdf"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nStart := <span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"stream"</span>, cPDF <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nEnd := <span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"endstream"</span>, cPDF <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cBuf := Replicate<span style="color: #000000;">&#40;</span> Chr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> nEnd - nStart <span style="color: #000000;">&#41;</span> * <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cText, nResult<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> hFile<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ! File<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\c</span>url.out"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; hFile = fcreate<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\c</span>url.out"</span>, <span style="color: #ff0000;">"wb"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; hFile = fopen<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\c</span>url.out"</span>, <span style="color: #ff0000;">"wb"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span> &nbsp; <br /><br />&nbsp; &nbsp;<span style="color: #00C800;">while</span> nStart < Len<span style="color: #000000;">&#40;</span> cPDF <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nStart = <span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"stream"</span>, cPDF <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nEnd = <span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"endstream"</span>, cPDF <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cBuf = Replicate<span style="color: #000000;">&#40;</span> Chr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> nEnd - nStart <span style="color: #000000;">&#41;</span> * <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cText = <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cPDF, nStart + <span style="color: #000000;">6</span>, nEnd - nStart <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span> cText, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> == Chr<span style="color: #000000;">&#40;</span> 0x0d <span style="color: #000000;">&#41;</span> .and. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cText, <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> == Chr<span style="color: #000000;">&#40;</span> 0x0a <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nStart += <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; elseif <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span> cText, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> == Chr<span style="color: #000000;">&#40;</span> 0x0a <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nStart++<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cText, nEnd - <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> == Chr<span style="color: #000000;">&#40;</span> 0x0d <span style="color: #000000;">&#41;</span> .and. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cText, nEnd - <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> == Chr<span style="color: #000000;">&#40;</span> 0x0a <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nEnd -= <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; elseif <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cText, nEnd - <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> == Chr<span style="color: #000000;">&#40;</span> 0x0a <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nEnd--<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; &nbsp; HB_ZUNCOMPRESS<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cPDF, nStart + <span style="color: #000000;">6</span>, nEnd - nStart <span style="color: #000000;">&#41;</span>, @cBuf, @nResult <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; cPDF = <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cPDF, nEnd + Len<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"endstream"</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; ProcessOutput<span style="color: #000000;">&#40;</span> hFile, cBuf <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;FClose<span style="color: #000000;">&#40;</span> hFile <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> MemoRead<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\c</span>url.out"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// FErase( "c:\curl.out" )</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><span style="color: #00D7D7;">#include</span> <wtypes.h><br /><br /><span style="color: #00D7D7;">#define</span> oldchar <span style="color: #000000;">15</span><br /><br />float ExtractNumber<span style="color: #000000;">&#40;</span>const char* search, int lastcharoffset<span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; float flt=<span style="color: #000000;">-1.0</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; int i = lastcharoffset;<br />&nbsp; &nbsp; &nbsp; &nbsp; char buffer<span style="color: #000000;">&#91;</span>oldchar<span style="color: #000000;">+5</span><span style="color: #000000;">&#93;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">while</span> <span style="color: #000000;">&#40;</span>i><span style="color: #000000;">0</span> && search<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>==<span style="color: #ff0000;">' '</span><span style="color: #000000;">&#41;</span> i--;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">while</span> <span style="color: #000000;">&#40;</span>i><span style="color: #000000;">0</span> && <span style="color: #000000;">&#40;</span>isdigit<span style="color: #000000;">&#40;</span>search<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span> || search<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>==<span style="color: #ff0000;">'.'</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> i--;<br />&nbsp; &nbsp; &nbsp; &nbsp; ZeroMemory<span style="color: #000000;">&#40;</span>buffer,sizeof<span style="color: #000000;">&#40;</span>buffer<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; strncpy<span style="color: #000000;">&#40;</span>buffer, search+i<span style="color: #000000;">+1</span>, lastcharoffset-i<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>buffer<span style="color: #000000;">&#91;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#93;</span> && sscanf<span style="color: #000000;">&#40;</span>buffer, <span style="color: #ff0000;">"%f"</span>, &flt<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> flt;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">-1.0</span>;<br /><span style="color: #000000;">&#125;</span><br />BOOL seen2<span style="color: #000000;">&#40;</span>const char* search, char* recent<span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br /><span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> &nbsp; &nbsp;recent<span style="color: #000000;">&#91;</span>oldchar<span style="color: #000000;">-3</span><span style="color: #000000;">&#93;</span>==search<span style="color: #000000;">&#91;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp;&& recent<span style="color: #000000;">&#91;</span>oldchar<span style="color: #000000;">-2</span><span style="color: #000000;">&#93;</span>==search<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&& <span style="color: #000000;">&#40;</span>recent<span style="color: #000000;">&#91;</span>oldchar<span style="color: #000000;">-1</span><span style="color: #000000;">&#93;</span>==<span style="color: #ff0000;">' '</span> || recent<span style="color: #000000;">&#91;</span>oldchar<span style="color: #000000;">-1</span><span style="color: #000000;">&#93;</span>==0x0d ||<br />recent<span style="color: #000000;">&#91;</span>oldchar<span style="color: #000000;">-1</span><span style="color: #000000;">&#93;</span>==0x0a<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&& <span style="color: #000000;">&#40;</span>recent<span style="color: #000000;">&#91;</span>oldchar<span style="color: #000000;">-4</span><span style="color: #000000;">&#93;</span>==<span style="color: #ff0000;">' '</span> || recent<span style="color: #000000;">&#91;</span>oldchar<span style="color: #000000;">-4</span><span style="color: #000000;">&#93;</span>==0x0d ||<br />recent<span style="color: #000000;">&#91;</span>oldchar<span style="color: #000000;">-4</span><span style="color: #000000;">&#93;</span>==0x0a<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">TRUE</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">FALSE</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00D7D7;">#include</span> <hbapifs.h><br /><br />int iPos = <span style="color: #000000;">0</span>;<br /><br /><span style="color: #00C800;">static</span> int xputc<span style="color: #000000;">&#40;</span> unsigned char c, FILE * fo <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> hb_fsWriteAt<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HB_FHANDLE <span style="color: #000000;">&#41;</span> fo, &c, <span style="color: #000000;">1</span>, iPos++ <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br />void ProcessOutput<span style="color: #000000;">&#40;</span>FILE* file, char* output, size_t len<span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//Are we currently inside a text object?</span><br />&nbsp; &nbsp; &nbsp; &nbsp; BOOL intextobject = <span style="color: #00C800;">FALSE</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//Is the next character literal (e.g. \\ to get a \ character or \( to get ( ):</span><br />&nbsp; &nbsp; &nbsp; &nbsp; BOOL nextliteral = <span style="color: #00C800;">FALSE</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//() Bracket nesting level. Text appears inside ()</span><br />&nbsp; &nbsp; &nbsp; &nbsp; int rbdepth = <span style="color: #000000;">0</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//Keep previous chars to get extract numbers etc.:</span><br />&nbsp; &nbsp; &nbsp; &nbsp; char oc<span style="color: #000000;">&#91;</span>oldchar<span style="color: #000000;">&#93;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; int j;<br />&nbsp; &nbsp; &nbsp; &nbsp; size_t i;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">for</span> <span style="color: #000000;">&#40;</span>j=<span style="color: #000000;">0</span>; j<oldchar; j++<span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oc<span style="color: #000000;">&#91;</span>j<span style="color: #000000;">&#93;</span>=<span style="color: #ff0000;">' '</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">for</span><span style="color: #000000;">&#40;</span> i=<span style="color: #000000;">0</span>; i<len; i++<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; unsigned char c = output<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>intextobject<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>rbdepth==<span style="color: #000000;">0</span> && seen2<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"TD"</span>, oc<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//Positioning.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//See if a new line has to start or just a tab:</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; float num = ExtractNumber<span style="color: #000000;">&#40;</span>oc,oldchar<span style="color: #000000;">-5</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>num><span style="color: #000000;">1.0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xputc<span style="color: #000000;">&#40;</span>0x0d, file<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xputc<span style="color: #000000;">&#40;</span>0x0a, file<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>num<<span style="color: #000000;">1.0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xputc<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'<span style="color: #000000;">\t</span>'</span>, file<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>rbdepth==<span style="color: #000000;">0</span> && seen2<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ET"</span>, oc<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//End of a text object, also go to a new line.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; intextobject = <span style="color: #00C800;">FALSE</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xputc<span style="color: #000000;">&#40;</span>0x0d, file<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xputc<span style="color: #000000;">&#40;</span>0x0a, file<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span> <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>c==<span style="color: #ff0000;">'('</span> && rbdepth==<span style="color: #000000;">0</span> && !nextliteral<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; int num;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//Start outputting text!</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rbdepth=<span style="color: #000000;">1</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//See if a space or tab (>1000) is called for by looking</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//at the number in front of (</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; num = ExtractNumber<span style="color: #000000;">&#40;</span>oc,oldchar<span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>num><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>num><span style="color: #000000;">1000.0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xputc<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'<span style="color: #000000;">\t</span>'</span>, file<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span> <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>num><span style="color: #000000;">100.0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xputc<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">' '</span>, file<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span> <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>c==<span style="color: #ff0000;">')'</span> && rbdepth==<span style="color: #000000;">1</span> && !nextliteral<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//Stop outputting text</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rbdepth=<span style="color: #000000;">0</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span> <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>rbdepth==<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//Just a normal text character:</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>c==<span style="color: #ff0000;">'<span style="color: #000000;">\\</span>'</span> && !nextliteral<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//Only print out next character no matter what. Do not interpret.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nextliteral = <span style="color: #00C800;">TRUE</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nextliteral = <span style="color: #00C800;">FALSE</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>c>=<span style="color: #ff0000;">' '</span><span style="color: #000000;">&#41;</span> && <span style="color: #000000;">&#40;</span>c<=<span style="color: #ff0000;">'~'</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> || <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>c>=<span style="color: #000000;">128</span><span style="color: #000000;">&#41;</span> && <span style="color: #000000;">&#40;</span>c<<span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xputc<span style="color: #000000;">&#40;</span>c, file<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//Store the recent characters for when we have to go back for a number:</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">for</span> <span style="color: #000000;">&#40;</span>j=<span style="color: #000000;">0</span>; j<oldchar<span style="color: #000000;">-1</span>; j++<span style="color: #000000;">&#41;</span> oc<span style="color: #000000;">&#91;</span>j<span style="color: #000000;">&#93;</span>=oc<span style="color: #000000;">&#91;</span>j<span style="color: #000000;">+1</span><span style="color: #000000;">&#93;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oc<span style="color: #000000;">&#91;</span>oldchar<span style="color: #000000;">-1</span><span style="color: #000000;">&#93;</span>=c;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>!intextobject<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>seen2<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"BT"</span>, oc<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//Start of a text object:</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; intextobject = <span style="color: #00C800;">TRUE</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> PROCESSOUTPUT <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;ProcessOutput<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> FILE * <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, hb_parclen<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP</div>[/code:uriiy1ms]
extractor de texto de un PDF
[url:1r1afq1a]http&#58;//blog&#46;didierstevens&#46;com/2008/05/19/pdf-stream-objects/[/url:1r1afq1a] [url:1r1afq1a]http&#58;//www&#46;gnupdf&#46;org/Introduction_to_PDF[/url:1r1afq1a]
extractor de texto de un PDF
Aida, Parece que con esta utilidad gratuita: [url:1qgcvzcg]http&#58;//qpdf&#46;sourceforge&#46;net/[/url:1qgcvzcg] puedes convertir todos tus PDFs a texto <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
extractor de texto de un PDF
Hola ya vi sobre ese QPDF y no le entiendo nadita <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> creo que si se puede en xharbour y fivewin le entenderé mas al final y aprenderé mas que algo externo <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> soy muy fiel a Fivewin <!-- s:mrgreen: --><img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green" /><!-- s:mrgreen: --> Gracias <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
extractor de texto de un PDF
Aida, A mi ya me funciona correctamente <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Encontré que aunque el formato de compresión de muchos PDFs es FlateDecode, el texto que extrae necesita una nueva conversión que ya he conseguido implementar. Aqui tienes la versión que funciona. Revisa el fichero que genera con extensión TXT que contiene el texto del PDF: [code=fw:2mpof1cj]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oVoice := TOleAuto<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Sapi.SPVoice"</span> <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cText := GetText<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\c</span>url.pdf"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oVoice:<span style="color: #000000;">Speak</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\c</span>url.txt"</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> GetText<span style="color: #000000;">&#40;</span> cPdfFile <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cPDF := MemoRead<span style="color: #000000;">&#40;</span> cPdfFile <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nStart := <span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"stream"</span>, cPDF <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nEnd := <span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"endstream"</span>, cPDF <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cBuf := Replicate<span style="color: #000000;">&#40;</span> Chr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> nEnd - nStart <span style="color: #000000;">&#41;</span> * <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cText, nResult, cTemp<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> hFile, cResult := <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> n := <span style="color: #000000;">1</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ! File<span style="color: #000000;">&#40;</span> hb_CurDrive<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">":<span style="color: #000000;">\"</span> + cFileNoExt( cPdfFile ) + "</span>.out<span style="color: #ff0000;">" )<br />&nbsp; &nbsp; &nbsp; hFile = fcreate( hb_CurDrive() + "</span>:\<span style="color: #ff0000;">" + cFileNoExt( cPdfFile ) + "</span>.out<span style="color: #ff0000;">", "</span>wb<span style="color: #ff0000;">" )<br />&nbsp; &nbsp;else<br />&nbsp; &nbsp; &nbsp; hFile = fopen( hb_CurDrive() + "</span>:\<span style="color: #ff0000;">" + cFileNoExt( cPdfFile ) + "</span>.out<span style="color: #ff0000;">", "</span>wb<span style="color: #ff0000;">" )<br />&nbsp; &nbsp;endif &nbsp; <br /><br />&nbsp; &nbsp;while "</span>stream<span style="color: #ff0000;">" $ cPDF<br />&nbsp; &nbsp; &nbsp; nStart = At( "</span>stream<span style="color: #ff0000;">", cPDF )<br />&nbsp; &nbsp; &nbsp; nEnd = At( "</span>endstream<span style="color: #ff0000;">", cPDF )<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; if nStart == 0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cPDF = "</span><span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exit<br />&nbsp; &nbsp; &nbsp; endif<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; cBuf = Replicate( Chr( 0 ), ( nEnd - nStart ) * 10 )<br />&nbsp; &nbsp; &nbsp; cText = SubStr( cPDF, nStart + 6, nEnd - nStart )<br /><br />&nbsp; &nbsp; &nbsp; if Left( cText, 1 ) == Chr( 0x0d ) .and. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SubStr( cText, 2, 1 ) == Chr( 0x0a )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nStart += 2<br />&nbsp; &nbsp; &nbsp; elseif Left( cText, 1 ) == Chr( 0x0a )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nStart++<br />&nbsp; &nbsp; &nbsp; endif<br /><br />&nbsp; &nbsp; &nbsp; if SubStr( cText, nEnd - 2, 1 ) == Chr( 0x0d ) .and. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SubStr( cText, nEnd - 1, 1 ) == Chr( 0x0a )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nEnd -= 2<br />&nbsp; &nbsp; &nbsp; elseif SubStr( cText, nEnd - 1, 1 ) == Chr( 0x0a )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nEnd--<br />&nbsp; &nbsp; &nbsp; endif<br /><br />&nbsp; &nbsp; &nbsp; HB_ZUNCOMPRESS( SubStr( cPDF, nStart + 6, nEnd - nStart ), @cBuf, @nResult )<br />&nbsp; &nbsp; &nbsp; cTemp = cBuf<br />&nbsp; &nbsp; &nbsp; while "</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">" $ cTemp <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// OutputDebugString( "</span>dentro del bucle Translate<span style="color: #ff0000;">" + CRLF )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if ! "</span><span style="color: #000000;">&#93;</span><span style="color: #ff0000;">" $ cTemp<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;endif &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cResult += Translate( SubStr( cTemp, At( "</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">", cTemp ), At( "</span><span style="color: #000000;">&#93;</span><span style="color: #ff0000;">", cTemp ) - At( "</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">", cTemp ) + 1 ) )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cTemp = SubStr( cTemp, At( "</span><span style="color: #000000;">&#93;</span><span style="color: #ff0000;">", cTemp ) + 1 )<br />&nbsp; &nbsp; &nbsp; end &nbsp; <br /><br />&nbsp; &nbsp; &nbsp; // OutputDebugString( Str( Len( cPDF ) ) ) <br />&nbsp; &nbsp; &nbsp; // OutputDebugString( If( Empty( cPDF ), "</span> * Empty<span style="color: #ff0000;">", "</span> * not empty<span style="color: #ff0000;">" ) + CRLF )<br />&nbsp; &nbsp; &nbsp; ProcessOutput( hFile, cBuf )<br />&nbsp; &nbsp; &nbsp; cPDF = SubStr( cPDF, nEnd + Len( "</span>endstream<span style="color: #ff0000;">" ) + 1 )<br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;// OutputDebugString( "</span>done<span style="color: #ff0000;">" )<br />&nbsp; &nbsp;FClose( hFile )<br />&nbsp; &nbsp;MemoWrit( hb_CurDrive() + "</span>:\<span style="color: #ff0000;">" + cFileNoExt( cPdfFile ) + "</span>.txt<span style="color: #ff0000;">", cResult )<br /><br />return cResult<br /><br />function Translate( cText )<br /><br />&nbsp; &nbsp;local cCode, cResult := "</span><span style="color: #ff0000;">" <br />&nbsp; &nbsp;local nStart, nEnd, n<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;cText = SubStr( cText, 2, Len( cText ) - 2 )<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;while "</span><<span style="color: #ff0000;">" $ cText<br />&nbsp; &nbsp; &nbsp; nStart = At( "</span><<span style="color: #ff0000;">", cText )<br />&nbsp; &nbsp; &nbsp; nEnd = At( "</span>><span style="color: #ff0000;">", cText )<br />&nbsp; &nbsp; &nbsp; cCode = SubStr( cText, nStart + 1, nEnd - nStart - 1 )<br />&nbsp; &nbsp; &nbsp; for n = 1 to Len( cCode ) step 4<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cResult += Chr( hb_HextoNum( SubStr( cCode, n, 4 ) ) )<br />&nbsp; &nbsp; &nbsp; next &nbsp; <br />&nbsp; &nbsp; &nbsp; if nEnd != 0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cText = SubStr( cText, nEnd + 1 )<br />&nbsp; &nbsp; &nbsp; else <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cText = "</span><span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; endif &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;end &nbsp; <br />&nbsp; &nbsp;<br />return cResult + "</span> <span style="color: #ff0000;">" &nbsp; &nbsp; <br /><br />#pragma BEGINDUMP<br /><br />#include <hbapi.h><br />#include <wtypes.h><br /><br />#define oldchar 15<br /><br />float ExtractNumber(const char* search, int lastcharoffset)<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; float flt=-1.0;<br />&nbsp; &nbsp; &nbsp; &nbsp; int i = lastcharoffset;<br />&nbsp; &nbsp; &nbsp; &nbsp; char buffer[oldchar+5];<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; while (i>0 && search[i]==' ') i--;<br />&nbsp; &nbsp; &nbsp; &nbsp; while (i>0 && (isdigit(search[i]) || search[i]=='.')) i--;<br />&nbsp; &nbsp; &nbsp; &nbsp; ZeroMemory(buffer,sizeof(buffer));<br />&nbsp; &nbsp; &nbsp; &nbsp; strncpy(buffer, search+i+1, lastcharoffset-i);<br />&nbsp; &nbsp; &nbsp; &nbsp; if (buffer[0] && sscanf(buffer, "</span>%f<span style="color: #ff0000;">", &flt))<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return flt;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; return -1.0;<br />}<br />BOOL seen2(const char* search, char* recent)<br />{<br />if ( &nbsp; &nbsp;recent[oldchar-3]==search[0]<br />&nbsp; &nbsp; &nbsp;&& recent[oldchar-2]==search[1]<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&& (recent[oldchar-1]==' ' || recent[oldchar-1]==0x0d ||<br />recent[oldchar-1]==0x0a)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&& (recent[oldchar-4]==' ' || recent[oldchar-4]==0x0d ||<br />recent[oldchar-4]==0x0a)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return TRUE;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; return FALSE;<br />}<br /><br />#include <hbapifs.h><br /><br />int iPos = 0;<br /><br />static int xputc( unsigned char c, FILE * fo )<br />{<br />&nbsp; &nbsp;return hb_fsWriteAt( ( HB_FHANDLE ) fo, &c, 1, iPos++ );<br />}<br /><br />void ProcessOutput(FILE* file, char* output, size_t len)<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; //Are we currently inside a text object?<br />&nbsp; &nbsp; &nbsp; &nbsp; BOOL intextobject = FALSE;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; //Is the next character literal (e.g. <span style="color: #000000;">\\</span> to get a <span style="color: #000000;">\ </span>character or <span style="color: #000000;">\(</span> to get ( ):<br />&nbsp; &nbsp; &nbsp; &nbsp; BOOL nextliteral = FALSE;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; //() Bracket nesting level. Text appears inside ()<br />&nbsp; &nbsp; &nbsp; &nbsp; int rbdepth = 0;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; //Keep previous chars to get extract numbers etc.:<br />&nbsp; &nbsp; &nbsp; &nbsp; char oc[oldchar];<br />&nbsp; &nbsp; &nbsp; &nbsp; int j;<br />&nbsp; &nbsp; &nbsp; &nbsp; size_t i;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; for (j=0; j<oldchar; j++) <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oc[j]=' ';<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; for( i=0; i<len; i++)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; unsigned char c = output[i];<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (intextobject)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (rbdepth==0 && seen2("</span>TD<span style="color: #ff0000;">", oc))<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Positioning.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //See if a new line has to start or just a tab:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; float num = ExtractNumber(oc,oldchar-5);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (num>1.0)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xputc(0x0d, file);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xputc(0x0a, file);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (num<1.0)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xputc('<span style="color: #000000;">\t</span>', file);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (rbdepth==0 && seen2("</span>ET<span style="color: #ff0000;">", oc))<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //End of a text object, also go to a new line.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; intextobject = FALSE;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xputc(0x0d, file);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xputc(0x0a, file);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if (c=='(' && rbdepth==0 && !nextliteral)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; int num;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Start outputting text!<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rbdepth=1;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //See if a space or tab (>1000) is called for by looking<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //at the number in front of (<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; num = ExtractNumber(oc,oldchar-1);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (num>0)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (num>1000.0)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xputc('<span style="color: #000000;">\t</span>', file);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if (num>100.0)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xputc(' ', file);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if (c==')' && rbdepth==1 && !nextliteral)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Stop outputting text<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rbdepth=0;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if (rbdepth==1)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Just a normal text character:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (c=='<span style="color: #000000;">\\</span>' && !nextliteral)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Only print out next character no matter what. Do not interpret.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nextliteral = TRUE;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nextliteral = FALSE;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ( ((c>=' ') && (c<='~')) || ((c>=128) && (c<255)) )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xputc(c, file);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Store the recent characters for when we have to go back for a number:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (j=0; j<oldchar-1; j++) oc[j]=oc[j+1];<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oc[oldchar-1]=c;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!intextobject)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (seen2("</span>BT<span style="color: #ff0000;">", oc))<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Start of a text object:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; intextobject = TRUE;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />}<br /><br />HB_FUNC( PROCESSOUTPUT )<br />{<br />&nbsp; &nbsp;ProcessOutput( ( FILE * ) hb_parnl( 1 ), ( char * ) hb_parc( 2 ), hb_parclen( 2 ) );<br />}<br /><br />#pragma ENDDUMP</span></div>[/code:2mpof1cj]