topic
stringlengths
1
63
text
stringlengths
1
577k
cicle of date
but now pehaps[b:wb6e5fbt] I found the error[/b:wb6e5fbt] I have a big big dbf with many numbers [img:wb6e5fbt]https://i.postimg.cc/TY84bQy7/jjjj.png[/img:wb6e5fbt] [b:wb6e5fbt]and I'm losing myself[/b:wb6e5fbt]
cicle of date
resolved
cierre de conexion con FWMariadb
Me está pasando lo siguiente, Hago una conexión a una base de datos creo un rowset y hago el browse cierro el browse elimino el rowset con oRs:End() me desconecto con oCn:Close() y si vuelvo a intentar hacer el browse del recordset que destruí con la conexión cerrada, en lugar de darme error me abre el recordset.... o sea como que no se destruyó el recordset y si hago un xbrowse del objeto oCn me aparece como existente....
cierre de conexion con FWMariadb
Me interesa este tema ya que estoy usando la misma tecnología. Realmente no me había percatado. Saludos
cierre de conexion con FWMariadb
Connection Object: oCn:Close() or oCn:End() // functionally same Closes connection with the server. But remembers all connection parameters. We can later call oCn:ReConnect() and start working again. The object itself remains till oCn is set to NIL and all references to the object go out of memory. RowSet object: Methods close() / end() do not do anything. The object remains till oRs is set to NIL. Even if the connection is closed, if we operate oRs and try to modify data, the connection is ReOpened and work continues. This way even if a connection is interrupted due to loss of internet / physical connection, work can be resumed after restoration of internet / physical connection. Example: [code=fw:24dvemnx]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oCn := maria_Connect<span style="color: #000000;">&#40;</span> ........ <span style="color: #000000;">&#41;</span><br />oRs  := oCn:<span style="color: #000000;">Customer</span><br />XBROWSER oRs FASTEDIT  <span style="color: #B900B9;">// works</span><br />oCn:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oCn := <span style="color: #00C800;">NIL</span><br />XBROWSR oRs FASTEDIT <span style="color: #B900B9;">// Also works. When we modify data, connection is reopened and work continues</span><br /> </div>[/code:24dvemnx] Once rowset is loaded into memory, it does not require connection, unless we try to modify data. When we modify data, it uses the connection if already open and if not reopens the connection and continues to work.
cierre de conexion con FWMariadb
Thank you very much Mr. Rao. Now is clear to me how it works <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> .
circles on xharbour( fw)
How create tree concentric circles ? Regards
circles on xharbour( fw)
Silvio, [code:198l4s5p] BOOL Ellipse&#40; HDC hdc, // handle to device context int nLeftRect, // x-coord&#46; of bounding rectangle's upper-left corner int nTopRect, // y-coord&#46; of bounding rectangle's upper-left corner int nRightRect, // x-coord&#46; of bounding rectangle's lower-right corner int nBottomRect // y-coord&#46; bounding rectangle's f lower-right corner &#41;; [/code:198l4s5p]
circles on xharbour( fw)
if I have [code:28mqv6rq] Rectangle&#40; &#58;&#58;hDC, nX, nY, nX + &#58;&#58;nHeight, &#40; nY += &#58;&#58;nPinWidth &#41; &#41;[/code:28mqv6rq] with ellipse [code:28mqv6rq] ellipse&#40; &#58;&#58;hDC, nX, nY, nX + &#58;&#58;nHeight, &#40; nY += &#58;&#58;nPinWidth &#41; &#41;[/code:28mqv6rq] I try it but it not draw circle concentric
circles on xharbour( fw)
This is a working sample: [code:2nb7usrf]#include "Fivewin&#46;ch" FUNCTION MAIN&#40;&#41; LOCAL oDlg LOCAL nX &#58;= 100 LOCAL nY &#58;= 100 LOCAL nMinRad &#58;= 20 LOCAL nMaxRad &#58;= 100 LOCAL nStep &#58;= 10 DEFINE DIALOG oDlg; SIZE 200, 200 ACTIVATE DIALOG oDlg; ON PAINT CIRCLES&#40; oDlg, hDC, nX, nY, nMinRad, nMaxRad, nStep &#41;; CENTER RETURN NIL #define BRUSH_NULL 5 STATIC FUNCTION CIRCLES&#40; oDlg, hDC, nX, nY, nMinRad, nMaxRad, nStep &#41; LOCAL hOldBrush &#58;= SELECTOBJECT&#40; hDC, GETSTOCKOBJECT&#40; BRUSH_NULL &#41; &#41; LOCAL i FOR i = nMinRad TO nMaxRad STEP nStep oDlg&#58;Circle&#40; nX - i, nY - i, i * 2 &#41; NEXT SELECTOBJECT&#40; hDC, hOldBrush &#41; RETURN NIL[/code:2nb7usrf] EMG
circolar grapphics
One customer ask me if I can insert on a Services 's Report ( Fattura) a circolar graph statistic [b:39lw7p6k]as this [/b:39lw7p6k] [img:39lw7p6k]https&#58;//www&#46;key4biz&#46;it/wp-content/uploads/2016/06/bolletta-2&#46;0-767x317-633x317&#46;png[/img:39lw7p6k] is there someone can help me to modify the tgraph class to understand how make it ?
circolar grapphics
[code=fw:1h8bwn5h]<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: #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, aChart &nbsp; := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aVal &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> <span style="color: #000000;">2500</span>, <span style="color: #000000;">500</span>, <span style="color: #000000;">1250</span>, <span style="color: #000000;">200</span>, <span style="color: #000000;">860</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aClr &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> CLR_GREEN, CLR_HRED, CLR_HBLUE, CLR_YELLOW, CLR_MAGENTA <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;aChart &nbsp; := MakeDnChart<span style="color: #000000;">&#40;</span> aVal, aClr <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;">TITLE</span> <span style="color: #ff0000;">"FWH : DRAW SHAPES"</span><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">nWidth</span> &nbsp; &nbsp;:= <span style="color: #000000;">800</span><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">nHeight</span> &nbsp; := <span style="color: #000000;">800</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">CENTERED</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> oWnd:<span style="color: #000000;">DrawShapes</span><span style="color: #000000;">&#40;</span> aChart, <span style="color: #000000;">&#123;</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">100</span>, <span style="color: #000000;">500</span>, <span style="color: #000000;">500</span> <span style="color: #000000;">&#125;</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> MakeDnChart<span style="color: #000000;">&#40;</span> aVal, aClr <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aChart &nbsp; := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aSweep &nbsp; := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nTotal &nbsp; := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> n, nAngle &nbsp; := <span style="color: #000000;">-90</span><br /><br />&nbsp; &nbsp;AEval<span style="color: #000000;">&#40;</span> aVal, <span style="color: #000000;">&#123;</span> |n| nTotal += n <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AEval<span style="color: #000000;">&#40;</span> aVal, <span style="color: #000000;">&#123;</span> |n| AAdd<span style="color: #000000;">&#40;</span> aSweep, n / nTotal * <span style="color: #000000;">360</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> n := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">&#40;</span> aVal <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AAdd<span style="color: #000000;">&#40;</span> aChart, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"PIE"</span>, aClr<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">1024</span>, <span style="color: #000000;">1024</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">1023</span>, <span style="color: #000000;">1023</span>, nAngle, aSweep<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nAngle &nbsp; += aSweep<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br />&nbsp; &nbsp;nAngle &nbsp; := <span style="color: #000000;">-90</span><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> n := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">&#40;</span> aVal <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AAdd<span style="color: #000000;">&#40;</span> aChart, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"PIE"</span>, CLR_WHITE, <span style="color: #000000;">4</span>, <span style="color: #000000;">1024</span>, <span style="color: #000000;">1024</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">1023</span><span style="color: #000000;">-4</span>, <span style="color: #000000;">1023</span><span style="color: #000000;">-4</span>, nAngle, aSweep<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nAngle &nbsp; += aSweep<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br />&nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> aChart, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"ELLIPSE"</span>, CLR_WHITE, <span style="color: #000000;">0</span>, <span style="color: #000000;">1024</span>, <span style="color: #000000;">1024</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">1023</span> - <span style="color: #000000;">255</span>, <span style="color: #000000;">1023</span> - <span style="color: #000000;">255</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> aChart<br />&nbsp;</div>[/code:1h8bwn5h] [url=https&#58;//imageshack&#46;com/i/plCu8dsNp:1h8bwn5h][img:1h8bwn5h]http&#58;//imagizer&#46;imageshack&#46;us/v2/xq90/921/Cu8dsN&#46;png[/img:1h8bwn5h][/url:1h8bwn5h]
circolar grapphics
[size=200:1zmvhqvl][b:1zmvhqvl]Wonderful great [color=#0000FF:1zmvhqvl]Maestro[/color:1zmvhqvl][/b:1zmvhqvl][/size:1zmvhqvl] Is there on my fwh last release ? it run also on Tprinter class I must draw it on an Invoice (Factura)
circolar grapphics
[quote="nageswaragunupudi":1st248ke][code=fw:1st248ke]<div class="fw" id="{CB}" style="font-family: monospace;">AAdd<span style="color: #000000;">&#40;</span> aChart, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"ELLIPSE"</span>, CLR_WHITE, <span style="color: #000000;">0</span>, <span style="color: #000000;">1024</span>, <span style="color: #000000;">1024</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">1023</span> - <span style="color: #000000;">255</span>, <span style="color: #000000;">1023</span> - <span style="color: #000000;">255</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span></div>[/code:1st248ke][/quote:1st248ke] Great idea! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> EMG
circolar grapphics
[quote:41if4rea]Is there on my fwh last release ?[/quote:41if4rea] Avaliable from FWH 15.12 onwards. [code=fw:41if4rea]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> PrintChart<span style="color: #000000;">&#40;</span> aChart <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oPrn<br />   <span style="color: #00C800;">local</span> hBmp<br /><br />   <span style="color: #00C800;">PRINT</span> oPrn PREVIEW<br />   <span style="color: #0000ff;">PAGE</span><br />      hBmp   :=  FW_CreateBitmap<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">4096</span>, <span style="color: #000000;">4096</span>, aChart <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />      @ <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #00C800;">PRINT</span> <span style="color: #0000ff;">TO</span> oPrn <span style="color: #0000ff;">IMAGE</span> hBmp <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span> INCHES<br />      DeleteObject<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">ENDPAGE</span><br />   <span style="color: #0000ff;">ENDPRINT</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:41if4rea]
circolar grapphics
THANKS RAO!!
circolar grapphics
Mister Rao, [img:3hkzatic]http&#58;//www&#46;iispascalcomiforti&#46;it/wp-content/uploads/2017/03/test&#46;jpg[/img:3hkzatic] I wish insert values sample " 20%" on each section on circle and I wish write also on the center of each circle How I can make it ? thanks
circolar grapphics
For the text on the center I resolved !!
circolar grapphics
Sorry, I can not help with writing text on each individual pie.
circolar grapphics
Another sample showing Doughnut Charts with multiple series. [code=fw:13i92loa]<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> oWnd, aChart &nbsp; := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aVal &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">2500</span>, <span style="color: #000000;">500</span>, <span style="color: #000000;">1250</span>, <span style="color: #000000;">200</span>, <span style="color: #000000;">860</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1800</span>, <span style="color: #000000;">750</span>, <span style="color: #000000;">1500</span>, <span style="color: #000000;">300</span>, <span style="color: #000000;">400</span> <span style="color: #000000;">&#125;</span> &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aClr &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> CLR_GREEN, CLR_HRED, CLR_HBLUE, CLR_YELLOW, CLR_MAGENTA <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;aChart &nbsp; := MakeDnChart<span style="color: #000000;">&#40;</span> aVal, aClr <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;">TITLE</span> <span style="color: #ff0000;">"DOUGHTNUT CHART"</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"PRINT"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">30</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">ACTION</span> PrintChart<span style="color: #000000;">&#40;</span> aChart <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">nWidth</span> &nbsp; &nbsp;:= <span style="color: #000000;">800</span><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">nHeight</span> &nbsp; := <span style="color: #000000;">800</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">CENTERED</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> oWnd:<span style="color: #000000;">DrawShapes</span><span style="color: #000000;">&#40;</span> aChart, <span style="color: #000000;">&#123;</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">100</span>, <span style="color: #000000;">500</span>, <span style="color: #000000;">500</span> <span style="color: #000000;">&#125;</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> MakeDnChart<span style="color: #000000;">&#40;</span> aVals, aClr <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aVal, nSeries, nHt, aRect<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aChart &nbsp; := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aSweep &nbsp; := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nTotal &nbsp; := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> n, nAngle <br /><br />&nbsp; &nbsp;nSeries &nbsp;:= Len<span style="color: #000000;">&#40;</span> aVals <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;nHt &nbsp; &nbsp; &nbsp;:= Int<span style="color: #000000;">&#40;</span> <span style="color: #000000;">512</span> / <span style="color: #000000;">&#40;</span> nSeries + <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aRect &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">1024</span>, <span style="color: #000000;">1024</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> each aVal in aVals<br /><br />&nbsp; &nbsp; &nbsp; nTotal &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; aSweep &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; AEval<span style="color: #000000;">&#40;</span> aVal, <span style="color: #000000;">&#123;</span> |n| nTotal += n <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AEval<span style="color: #000000;">&#40;</span> aVal, <span style="color: #000000;">&#123;</span> |n| AAdd<span style="color: #000000;">&#40;</span> aSweep, n / nTotal * <span style="color: #000000;">360</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; nAngle &nbsp; := <span style="color: #000000;">-90</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">for</span> n := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">&#40;</span> aVal <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> aChart, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"PIE"</span>, aClr<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">1024</span>, <span style="color: #000000;">1024</span>, aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span>, nAngle, aSweep<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nAngle &nbsp; += aSweep<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">next</span><br /><br />&nbsp; &nbsp; &nbsp; nAngle &nbsp; := <span style="color: #000000;">-90</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">for</span> n := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">&#40;</span> aVal <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> aChart, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"PIE"</span>, CLR_WHITE, <span style="color: #000000;">4</span>, <span style="color: #000000;">1024</span>, <span style="color: #000000;">1024</span>, aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">2</span>, aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">2</span>, aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> - <span style="color: #000000;">2</span>, aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> - <span style="color: #000000;">2</span>, nAngle, aSweep<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nAngle &nbsp; += aSweep<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">next</span><br /><br />&nbsp; &nbsp; &nbsp; aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> &nbsp; &nbsp; += nHt<br />&nbsp; &nbsp; &nbsp; aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> &nbsp; &nbsp; += nHt<br />&nbsp; &nbsp; &nbsp; aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> &nbsp; &nbsp; -= nHt<br />&nbsp; &nbsp; &nbsp; aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> &nbsp; &nbsp; -= nHt<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br />&nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> aChart, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"ELLIPSE"</span>, CLR_WHITE, <span style="color: #000000;">0</span>, <span style="color: #000000;">1024</span>, <span style="color: #000000;">1024</span>, aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> aChart<br /><br /><br /><span style="color: #00C800;">function</span> PrintChart<span style="color: #000000;">&#40;</span> aChart <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oPrn<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> hBmp<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">PRINT</span> oPrn PREVIEW<br />&nbsp; &nbsp;<span style="color: #0000ff;">PAGE</span><br />&nbsp; &nbsp; &nbsp; hBmp &nbsp; := &nbsp;FW_CreateBitmap<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">4096</span>, <span style="color: #000000;">4096</span>, aChart <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #00C800;">PRINT</span> <span style="color: #0000ff;">TO</span> oPrn <span style="color: #0000ff;">IMAGE</span> hBmp <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span> INCHES<br />&nbsp; &nbsp; &nbsp; DeleteObject<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">ENDPAGE</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">ENDPRINT</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:13i92loa] [url=https&#58;//imageshack&#46;com/i/pow2be0Hp:13i92loa][img:13i92loa]http&#58;//imagizer&#46;imageshack&#46;us/v2/xq90/924/w2be0H&#46;png[/img:13i92loa][/url:13i92loa]4
circolar grapphics
RAO ...Nice it!! Is possible insert the values of each section and show the leggend as this ? [img:38ymaki9]https&#58;//d2wh20haedxe3f&#46;cloudfront&#46;net/sites/default/files/docs_190726c_pie_chart_en&#46;gif[/img:38ymaki9] I explain I have an archive where I calc the movements for each month from Jan to Dec .. I can send it I wish insert on each part the name of th emonth and the value / %
circolar grapphics
Dear Nages, a Question If you make multiple series as you made local aVal := { { 2500, 500, 1250, 200, 860 }, ; first serie { 1800, 750, 1500, 300, 400 } } second serie you must the possibility to set also two different colors for each serie for a sample : I have a Family Budget application and I set for each category of entries and exits a different color How I can modify it to have multiple colors series ?
circolar grapphics
why not modify directly tgraph class ???
clarification respect a recordset
Guys: I am migrating my progs from dbf to sql for this I use exclusively ado but I have a doubt about how a recordset works The oBrw: delete, oRs: delete and delete from table are instructions that do the same delete records and a Recordset (oRs) is a copy of the table that is brought from the server to the client, then starting from that premise why when the instruction oRs delete or obrw: delete are invoked both delete the record of the client and of the server, isn't it just that it should be done to the client? I would like to be clarified, please Thank you Arturo
clarification respect a recordset
It is true that ADO reads the data from the server and holds it in the client's memory. We normally open recordsets using [b:21p98i1w]adLockOptimistic[/b:21p98i1w]. All calls to the methods Update(), Delete() and AddNew( aCols, aVals ) make the changes to the underlying database immediately and are visible to other users on the network. We can also open the recordset using [b:21p98i1w]adLockBatchOptimistic [/b:21p98i1w]mode. [code=fw:21p98i1w]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oRs := FW_OpenRecordSet<span style="color: #000000;">&#40;</span> oCn, cSql, adLockBatchOptimistic <span style="color: #000000;">&#41;</span><br /> </div>[/code:21p98i1w] In this case, all changes including methods Update(), Delete(), AddNew(...) are all applied to the copy of data in the client's memory only. No changes are written to the server. These changes are also not visible to the other users on the network. Calling the method [b:21p98i1w]CancelBatch[/b:21p98i1w]() cancels all changes and restores the data in the client's memory to the original state. Calling the method [b:21p98i1w]UpdateBatch[/b:21p98i1w]() flushes all changes to the physical database on the server at once. From then on the changes are visible to the other users on the network. When some of the records are already modified by other users, they can not be written and the programmer has to handle these conflicts. When we open recordset in batch mode, it is not necessary to keep the connection open. We can reopen the connection while saving the changes with UpdateBatch() call. All web-software open recordsets in batch mode only. Handling recordsets opened in batch mode requires greater expertise of ADO. It is not as easy as it may appear. For normal use in our programs, it is simple and easy to use the adLockOptimistic. You may also consider using FWH mariadb library instead of ADO. FWH library is more powerful than ADO and (1) can do more than what is possible with even ADO (2) lot more easier to write code and (3) no need to install mysql ODBC connectors on each client.
clarification respect a recordset
Hi Mr. Rao, Using mariadb I want to use pessimistic mode. I want to limit other users when one user read a record. Is it possible? (When one user read one record, record should be locked. at the same time other users can only read the record. not update) if possible can you please give an example using maria15.prg. Thank you.
clarification respect a recordset
As Rao mentions .. many of the methods he has created handy wrappers .. to dig a bit deeper .. have a look and this fivewin wiki <!-- m --><a class="postlink" href="https://wiki.fivetechsoft.com/doku.php?id=ado-related_stuffs">https://wiki.fivetechsoft.com/doku.php? ... ted_stuffs</a><!-- m --> Rick Lipkin
clarification respect a recordset
Thank for repky master rao! your response always clear and precise
clarification respect a recordset
[quote="Horizon":131kspy9]Hi Mr. Rao, Using mariadb I want to use pessimistic mode. I want to limit other users when one user read a record. Is it possible? (When one user read one record, record should be locked. at the same time other users can only read the record. not update) if possible can you please give an example using maria15.prg. Thank you.[/quote:131kspy9] <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
clarification respect a recordset
Whatsnew.txt : FWH1806 ----------------------------- [quote:3bfnyleo]- Enhancement to method EditBaseRecord(...) Added optional new 5th param, lLock (default .f.) Revised syntax: EditBaseRecord( [cFieldList], [lNew], [bEdit], [oBrw], [lLock] ) If lLock is set to true, the row is locked for edit and lock is released after edit. [/quote:3bfnyleo]
clarification respect a recordset
[quote="nageswaragunupudi":2o1t3pzn]Whatsnew.txt : FWH1806 ----------------------------- [quote:2o1t3pzn]- Enhancement to method EditBaseRecord(...) Added optional new 5th param, lLock (default .f.) Revised syntax: EditBaseRecord( [cFieldList], [lNew], [bEdit], [oBrw], [lLock] ) If lLock is set to true, the row is locked for edit and lock is released after edit. [/quote:2o1t3pzn][/quote:2o1t3pzn] Hi Mr. Rao, I use FWH 19.03. I have updated the lLock parameter as you described in maria15.prg from fwh\samples directory. [code=fw:2o1t3pzn]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; @ <span style="color: #000000;">20</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">BTNBMP</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"ADD"</span> &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">30</span> <span style="color: #0000ff;">PIXEL</span> FLAT <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> oRs:<span style="color: #000000;">EditBaseRecord</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">nil</span>, .t., <span style="color: #000000;">&#123;</span> |oRec| MyEditDlg<span style="color: #000000;">&#40;</span> oRec <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, oBrw, .T. <span style="color: #000000;">&#41;</span></div>[/code:2o1t3pzn] I have compiled and run from two different computer. When I edit one row in first computer, it does not locked the record. Other computer can also edit the record. Is this the way it should be? Thanks.
clarification respect a recordset
We will test and come back to you on this.
clarification respect a recordset
[quote="nageswaragunupudi":2f5lk9nx]We will test and come back to you on this.[/quote:2f5lk9nx] Hi Mr. Rao, Also can a procedure be run if the record is not locked? [code=fw:2f5lk9nx]<div class="fw" id="{CB}" style="font-family: monospace;">EditBaseRecord<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#91;</span>cFieldList<span style="color: #000000;">&#93;</span>, <span style="color: #000000;">&#91;</span>lNew<span style="color: #000000;">&#93;</span>, <span style="color: #000000;">&#91;</span>bEdit<span style="color: #000000;">&#93;</span>, <span style="color: #000000;">&#91;</span>oBrw<span style="color: #000000;">&#93;</span>, <span style="color: #000000;">&#91;</span>lLock<span style="color: #000000;">&#93;</span>, <span style="color: #000000;">&#91;</span>bNotLock<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span></div>[/code:2f5lk9nx] Thanks.
clarification respect a recordset
<!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
clarification respect a recordset
up
clarification respect a recordset
Hi Mr. Rao, Could you please help me about Lock parameter?
clarification respect a recordset
Has been fixed in new Fwh? <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: -->
clarification respect a recordset
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=37928">viewtopic.php?f=3&t=37928</a><!-- l -->
clase TFSDI actualizada
Hola, ¿Alguien tiene esta clase de José Luis actualizada?. No dispongo de su email. Yo tengo una de 2002 pero no aparece bien centrado el diálogo cuando llama a DlgCoors. Muchas gracias. Salu2
clase TFiveUI de Cristobal Navarro
Hola Cristobal, donde puedo bajarlo, porque no me deja entrar al repositorio <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> Gracias. Saludos.
clase TFiveUI de Cristobal Navarro
Ariel Te refieres a FiveUI? <!-- m --><a class="postlink" href="http://wiki.fivetechsoft.com/doku.php?id=fiveui_soporte">http://wiki.fivetechsoft.com/doku.php?id=fiveui_soporte</a><!-- m --> Qué versión de FiveWin utilizas?
clase TFiveUI de Cristobal Navarro
Cristobal, asi es era eso no me habia percatado que ya viene en los samples, pero no estan los recursos como para generar los test. Saludos.
clase TFiveUI de Cristobal Navarro
Ok, pero qué versión de Fivewin utilizas?
clase TFiveUI de Cristobal Navarro
fwh64
clase TFiveUI de Cristobal Navarro
Me refiero a la versión: ejemplos 10.01, 14.04, 15.06, 16.05?
clase TFiveUI de Cristobal Navarro
Cristobal, perdon ha sido un dia muuuy largo, 14.09 saludos.
clase TFiveUI de Cristobal Navarro
Cristobal, serias tan amable de proporcionarme los recursos (bmp,jpg,etc) para probar la clase? Gracias.
clase TFiveUI de Cristobal Navarro
Mira a ver, y avísame cuando lo hayas descargado <!-- m --><a class="postlink" href="https://www.dropbox.com/s/blgs8c78c7onek5/Res.zip?dl=0">https://www.dropbox.com/s/blgs8c78c7onek5/Res.zip?dl=0</a><!-- m -->
clase TFiveUI de Cristobal Navarro
Cristobal, Listo descargado, muchisimas gracias, hoy lo pruebo. Saludos
clase TFiveUI de Cristobal Navarro
serias tan amable de colocar los recursos (bmp,jpg,etc) para probar la clase? Gracias,
clase TFiveUI de Cristobal Navarro
Aqui están <!-- m --><a class="postlink" href="https://bitbucket.org/navarro_cristobal/fiveui/downloads/res.zip">https://bitbucket.org/navarro_cristobal ... ds/res.zip</a><!-- m -->
clase TFiveUI de Cristobal Navarro
Podéis poner los errores?
clase TFiveUI de Cristobal Navarro
Listo descargado, muchisimas gracias.
clase TFiveUI de Cristobal Navarro
Cristobal, probando los ej. con los recursos que me enviaste, en ningun caso me muestra los bmp, jpg, les cambie la ruta, les inclui fiveUI.rc, y tampoco, no sé que me puede estar faltando ? Saludos.
clase TFiveUI de Cristobal Navarro
Hola He tratado de compilar construi un .hbp asi [code=fw:8h2h3n1i]<div class="fw" id="{CB}" style="font-family: monospace;"><br />-q0 -kmo -<span style="color: #00C800;">static</span> <br />-lhbct -ldolphin -lhbtip -lxhb <br />-l<span style="color: #000000;">&#123;</span>win<span style="color: #000000;">&#125;</span>hbwin<br />-oprueba<br />WndUI01 ClasTWind<br />-run<br /> </div>[/code:8h2h3n1i] La Clase TWindowsUI la tome de la documentacion no se di esta completa. Me genera error en la Clase TWindowsUI, sera que puedes colocar dicha clase completa, para hacer pruebas Saludos y Gracias
clase TFiveUI de Cristobal Navarro
Gracias. Estos son los errores. [code=fw:3e6rp3iw]<div class="fw" id="{CB}" style="font-family: monospace;"><br />hbmk2: <span style="color: #000000;">Error</span>: <span style="color: #000000;">Referenced</span>, missing, but unknown <span style="color: #00C800;">function</span><span style="color: #000000;">&#40;</span>s<span style="color: #000000;">&#41;</span>: <span style="color: #000000;">SETRESDEBUG</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp;TWINDOWSUI_NEW<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, TWINDOWSUI_HAZWINUI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, TWINDOWSUI_ACTIVAUI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp;TWINDOWSUI_END<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, TWINDOWSUI_INIFUNUI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, TWINDOWSUI_INITIATE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp;TWINDOWSUI_PAINTUI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, TWINDOWSUI_NOTITLE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, TWINDOWSUI_NEWUI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp;TWINDOWSUI_SETSTYLE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, TWINDOWSUI_SETBRUSH<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp;TWINDOWSUI_SETSTYLETOPMOST<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, TWINDOWSUI_SETTITLEUI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp;TWINDOWSUI_SETTUSERUI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, TWINDOWSUI_SETBARUI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, TWINDOWSUI_SETXBRWUI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp;TWINDOWSUI_MNUXBRWUI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, TWINDOWSUI_SETSPLTUI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, TWINDOWSUI_SETPNELUI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp;TWINDOWSUI_WNDPNELUI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, TWINDOWSUI_SETMENUUI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp;TWINDOWSUI_SETQUICKSTARTUI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, TWINDOWSUI_SRIGHTUPUI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp;TWINDOWSUI_SLEFTUPUI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, TWINDOWSUI_STOPUPUI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, TWINDOWSUI_SBOTTUPUI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp;TWINDOWSUI_LOADMDIUI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, TWINDOWSUI_MOUSEMOVEUI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp;TWINDOWSUI_LBUTTONDOWNUI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, TWINDOWSUI_LBUTTONUPUI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp;TWINDOWSUI_SETIMGUI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, TWINDOWSUI_GETLISTBMPS<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp;TWINDOWSUI_GETLISTWNDS<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, TWINDOWSUI_GETLISTACTIVOS<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp;TWINDOWSUI_GETLISTCONEX<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, TWINDOWSUI_SETLISTCONEX<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp;TWINDOWSUI_POSWNDUI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, TWINDOWSUI_GETPOSUI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, TWINDOWSUI_SETFOCO<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp;TWINDOWSUI_TIPOMONITOR<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, TWINDOWSUI_CALCULARES<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp;TWINDOWSUI_VERDLGS<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, TWINDOWSUI_XBRWELIGE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, TWINDOWSUI_MIMMOVE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp;TWINDOWSUI_SETMNULEFT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, TWINDOWSUI_SETWNDMNU<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, TDIALOGUI_NEWDLG<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp;TDIALOGUI_ACTIVADLGUI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, TDIALOGUI_DLGMSGUI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, FW_GT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, CHECKRES<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:3e6rp3iw] Compilo asi. -q0 -kmo -static -oprueba -lhbct -lhbtip -lxhb -lhbmzip -lminizip -lhbziparc -lhbwin -LK:\fwh\lib\FiveH.lib -LK:\fwh\lib\FiveHC.lib -workdir=C:\Temp\loco -ik:\fwh\include WndUI01.prg ClasTWind.prg -run Podrias colocar el bat de compilacion para poder reproducir los ejemplos.
clase TFiveUI de Cristobal Navarro
<!-- m --><a class="postlink" href="https://bitbucket.org/navarro_cristobal/fiveui/src/ef82c05c612c3f4c868b873e7b9ed125aad61d37/makeui.bat?at=master">https://bitbucket.org/navarro_cristobal ... ?at=master</a><!-- m -->
clase TFiveUI de Cristobal Navarro
Gracias. Veo tu archivo de compilacion. los erreres que tengo es porque me faltan las clases. set path=%path%;c:\borland\bcc582\bin\; C:\HARBOUR\harb20131007\BIN\HBMK2.EXE -prgflag=/n /m /w /es1 /gc1 -cflag=/c /O2 -inc -comp=bcc -workdir=c:\fiveui\obj -iC:\FWH\FWH1312\include -ic:\fiveui\include -ic:\fiveui\source c:\fiveui\source\%1.prg c:\fiveui\source\uiwindow.prg c:\fiveui\source\uidialog.prg c:\fiveui\source\xcbrowse.prg c:\fiveui\source\tribbonc.prg c:\fiveui\source\barc.prg c:\fiveui\source\cmru.prg -Lc:\fwh\fwh1312\lib -Lc:\borland\bcc582\lib -Lc:\borland\bcc582\lib\psdk -lfiveh -lfivehc -lpng -lhbct -lxhb -lgtgui -lhbwin -lcw32 -luuid -limport32 -lws2_32 -lodbc32 -lnddeapi -liphlpapi -lmsimg32 -lpsapi -lrasapi32 -lgdiplus -lshell32 No he podido reproducir tus ejemplos, me imagino que lo que falta y los errores que tengo es por la ausencia de uiwindow.prg uidialog.prg xcbrowse.prg tribbonc.prg barc.prg cmru.prg no se si estoy en lo correcto , lo unico que baje fue tu clase publicada pero creo que no esta completa.
clase TFiveUI de Cristobal Navarro
Cristobal, buenos dias, me pasa lo mismo que a Ruben, me faltan esos prgs para poder probar la clase, fuera de los ej. Estos prgs q faltan estan disponibles? y si es asi, d dnd los bajamos? Gracias. Saludos.
clase TFiveUI de Cristobal Navarro
[quote="Ariel":3jocittj]Cristobal, buenos dias, me pasa lo mismo que a Ruben, me faltan esos prgs para poder probar la clase, fuera de los ej. Estos prgs q faltan estan disponibles? y si es asi, d dnd los bajamos? Gracias. Saludos.[/quote:3jocittj] Ariel. Necesito una cuenta de correo eléctrónico Ah!. Puedes cambiar el titulo del primer post por "Clase TFiveUI de ....", gracias
clase TFiveUI de Cristobal Navarro
Cristobal, mi correo es <!-- e --><a href="mailto:arielcagiao@hotmail.com">arielcagiao@hotmail.com</a><!-- e --> Gracias. Saludos.
clase TPqSQLServer and xbrowse
Estimados, estoy desarrollando una clase similar a tmysql (TMySqlServer y TMySqlQuery) pero para postgres (la he llamado TPqSqlServer y TPqSqlQuery), he tomado como base la tpostgres y tmysql de contrib de xharbour, he realizado varios cambios, y la llevo bastante avanzada, pero actualmente tengo un problema con xbrowse, y es que no me muestra los datos, ya que xbrowse internamente esta desarrollada para soportar dolphin, tmysql, ado, dbf, arrays, y las nuevas clases de de fwh. en el ejemplo que muestro, todo me funciona, salvo lo del mostrar los datos con xbrowse, me pudiera dar una mano con esto por favor. lo he probado con un server 8.4, en el enlace pongo lo necesario para compilar el ejemplo con xharbour y borland c 7.x. habria que cambiar ip del server, y la base de datos a los propio. [url:12cf3rfp]http&#58;//castillolawyers&#46;no-ip&#46;info/owncloud/index&#46;php/s/yvVyVYHbqYKxtCQ[/url:12cf3rfp] [code=fw:12cf3rfp]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span> <br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"xbrowse.ch"</span> <br /><br /><br />REQUEST HB_LANG_ES<br />REQUEST DBFCDX, DBFFPT<br />EXTERNAL OrdKeyNo, OrdKeyCount, OrdKeyGoto<br /><br />procedure main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> oServer, oQuery<br />   <span style="color: #00C800;">local</span> aStruct<br />   <span style="color: #00C800;">local</span> oBrw<br />   <span style="color: #00C800;">local</span> oErr<br />   <br />   HB_LangSelect<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ES"</span><span style="color: #000000;">&#41;</span><br />   RDDSetDefault<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DBFCDX"</span> <span style="color: #000000;">&#41;</span><br />    <br />   set cent <span style="color: #0000ff;">on</span><br />   set date brit<br />   <br />   <span style="color: #B900B9;">//MsgInfo("Inicio")</span><br />     <br />   oServer := TPqSQLServer<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;">"192.168.1.105"</span>, <span style="color: #ff0000;">"northwind"</span>, <span style="color: #ff0000;">"postgres"</span>, <span style="color: #ff0000;">"postgres"</span>, <span style="color: #000000;">5432</span> <span style="color: #000000;">&#41;</span><br />   <br />   <span style="color: #00C800;">if</span> oServer:<span style="color: #000000;">NetErr</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> oServer:<span style="color: #000000;">ErrorTxt</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      oServer:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">return</span><br />   <span style="color: #00C800;">else</span><br />      ?<span style="color: #ff0000;">"connected..."</span><br />      oServer:<span style="color: #000000;">TraceOn</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"prueba.txt"</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br />   <br />   ?<span style="color: #ff0000;">"Database:"</span>, oServer:<span style="color: #000000;">cDBName</span>,<span style="color: #ff0000;">"Schema:"</span>, oServer:<span style="color: #000000;">cSchema</span>   <br />   ?<span style="color: #ff0000;">"Existe tabla customers? "</span>, oServer:<span style="color: #000000;">TableExists</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"customers"</span> <span style="color: #000000;">&#41;</span>,;<br />    <span style="color: #ff0000;">"Existe tabla clientes? "</span>, oServer:<span style="color: #000000;">TableExists</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"clientes"</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">xbrowse</span><span style="color: #000000;">&#40;</span> oServer:<span style="color: #000000;">ListTables</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   <br />   oServer:<span style="color: #000000;">DeleteTable</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"clientes1"</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">if</span> oServer:<span style="color: #000000;">NetErr</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> oServer:<span style="color: #000000;">ErrorTxt</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">else</span><br />      ?<span style="color: #ff0000;">"tabla clientes1 borrada!"</span><br />   <span style="color: #00C800;">endif</span><br /><br />   oServer:<span style="color: #000000;">DeleteTable</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"prueba"</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">if</span> oServer:<span style="color: #000000;">NetErr</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> oServer:<span style="color: #000000;">ErrorTxt</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">else</span><br />      ?<span style="color: #ff0000;">"tabla prueba borrada!"</span><br />   <span style="color: #00C800;">endif</span><br /><br />   ?<span style="color: #ff0000;">"clientes.dbf existe? "</span>, file<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"clientes.dbf"</span> <span style="color: #000000;">&#41;</span><br />   <br />   use clientes <span style="color: #00C800;">new</span><br />   aStruct := clientes-><span style="color: #000000;">&#40;</span> dbstruct<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   <br />   fwdbg aStruct<br />   <br />   ?<span style="color: #ff0000;">"table prueba crated? "</span>,oServer:<span style="color: #000000;">CreateTable</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"prueba"</span>, aStruct, <span style="color: #ff0000;">"my_recno"</span>, <span style="color: #ff0000;">"my_recno"</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">if</span> oServer:<span style="color: #000000;">NetErr</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> oServer:<span style="color: #000000;">ErrorTxt</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br />   <br />   fwdbg oServer:<span style="color: #000000;">TableStruct</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"prueba"</span> <span style="color: #000000;">&#41;</span>, ;<br />         oServer:<span style="color: #000000;">TableStruct</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"customer"</span> <span style="color: #000000;">&#41;</span>,; <br />         oServer:<span style="color: #000000;">TableStruct</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"customers"</span> <span style="color: #000000;">&#41;</span>,;<br />         oServer:<span style="color: #000000;">TableStruct</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"employees"</span> <span style="color: #000000;">&#41;</span><br />         <br />   ?<span style="color: #ff0000;">"creacion de index 1: "</span>,oServer:<span style="color: #000000;">CreateIndex</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"fullname"</span>, <span style="color: #ff0000;">"prueba"</span>, <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"firsts"</span>,<span style="color: #ff0000;">"lasts"</span><span style="color: #000000;">&#125;</span>, .t. <span style="color: #000000;">&#41;</span><br />   ?<span style="color: #ff0000;">"creacion de index 2: "</span>,oServer:<span style="color: #000000;">CreateIndex</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"fullname"</span>, <span style="color: #ff0000;">"prueba"</span>, <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"firsts"</span>,<span style="color: #ff0000;">"lasts"</span><span style="color: #000000;">&#125;</span>, .f. <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">if</span> oServer:<span style="color: #000000;">NetErr</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> oServer:<span style="color: #000000;">ErrorTxt</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br /><br />   <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"verifique creacion de index"</span><span style="color: #000000;">&#41;</span><br />   <br />   oServer:<span style="color: #000000;">ThrowError</span><span style="color: #000000;">&#40;</span> .t. <span style="color: #000000;">&#41;</span><br />   <br />   <span style="color: #00C800;">try</span><br />      oServer:<span style="color: #000000;">StartTransaction</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      oServer:<span style="color: #000000;">Execute</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"insert into prueba (firsts,lasts) values ('carlos','vargas')"</span> <span style="color: #000000;">&#41;</span><br />      oServer:<span style="color: #000000;">Execute</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"insert into prueba (firsts,lasts) values ('reyna','montoya')"</span> <span style="color: #000000;">&#41;</span><br />      oServer:<span style="color: #000000;">Execute</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"insert into prueba (firsts,lasts) values ('nicole','vargas')"</span> <span style="color: #000000;">&#41;</span><br />      oServer:<span style="color: #000000;">Commit</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   catch oErr<br />      oServer:<span style="color: #000000;">Rollback</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ?oErr:<span style="color: #000000;">description</span><br />   end<br />   <br />   oServer:<span style="color: #000000;">ThrowError</span><span style="color: #000000;">&#40;</span> .f. <span style="color: #000000;">&#41;</span><br />   <br />   <span style="color: #B900B9;">//?"eliminacion de index: ",oServer:DeleteIndex( "fullname", "prueba" )</span><br /> <br />   oQuery := oServer:<span style="color: #000000;">Query</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"select * from prueba"</span> <span style="color: #000000;">&#41;</span><br />  <br />   <span style="color: #00C800;">if</span> oServer:<span style="color: #000000;">NetErr</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> oServer:<span style="color: #000000;">ErrorTxt</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      oServer:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">return</span><br />   <span style="color: #00C800;">endif</span><br />   <br />   fwdbg oQuery:<span style="color: #000000;">RecCount</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oQuery:<span style="color: #000000;">RecNo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oQuery:<span style="color: #000000;">Bof</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oQuery:<span style="color: #000000;">Eof</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <br />   <span style="color: #0000ff;">xbrowse</span><span style="color: #000000;">&#40;</span> oQuery <span style="color: #000000;">&#41;</span><br />   <br />   oQuery:<span style="color: #000000;">GoTop</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> !oQuery:<span style="color: #000000;">eof</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ?oQuery:<span style="color: #000000;">firsts</span>, oQuery:<span style="color: #000000;">married</span>, valtype<span style="color: #000000;">&#40;</span>oQuery:<span style="color: #000000;">married</span><span style="color: #000000;">&#41;</span>, oQuery:<span style="color: #000000;">salary</span>, valtype<span style="color: #000000;">&#40;</span>oQuery:<span style="color: #000000;">salary</span><span style="color: #000000;">&#41;</span>, oQuery:<span style="color: #000000;">RecNo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      oQuery:<span style="color: #000000;">Skip</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">enddo</span>      <br />   <br />  <span style="color: #B900B9;">// esta columna no existe, salta error</span><br />  <span style="color: #B900B9;">//?oQuery:fullname //</span><br />   <br />   fwdbg oQuery:<span style="color: #000000;">Bof</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oQuery:<span style="color: #000000;">Eof</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oQuery:<span style="color: #000000;">RecNo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <br />   xbrowser oQuery SETUP <span style="color: #000000;">&#40;</span> SetPostgre<span style="color: #000000;">&#40;</span> oBrw, oQuery, .t. <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   <br />   oQuery:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oServer:<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>   <br /><br />PROCEDURE SetPostgre<span style="color: #000000;">&#40;</span> oBrw, oQry, lAddCols <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">LOCAL</span> xField    := <span style="color: #00C800;">NIL</span><br />   <span style="color: #00C800;">LOCAL</span> cHeader   := <span style="color: #ff0000;">""</span><br />   <span style="color: #00C800;">LOCAL</span> cCol      := <span style="color: #ff0000;">""</span><br />   <span style="color: #00C800;">LOCAL</span> aFldNames, oCol<br />   <br />   <span style="color: #00C800;">IF</span> lAddCols == <span style="color: #00C800;">NIL</span> <br />      lAddCols = .T.<br />   <span style="color: #00C800;">ENDIF</span><br /><br />   WITH OBJECT oBrw<br />      :<span style="color: #000000;">bGoTop</span>    := <span style="color: #000000;">&#123;</span>|| <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oQry:<span style="color: #000000;">LastRec</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span>, oQry:<span style="color: #000000;">GoTop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">bGoBottom</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oQry:<span style="color: #000000;">LastRec</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span>, oQry:<span style="color: #000000;">GoBottom</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span>  <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">bSkip</span>     := <span style="color: #000000;">&#123;</span>| n | oQry:<span style="color: #000000;">Skip</span><span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">bBof</span>      := <span style="color: #000000;">&#123;</span>|| oQry:<span style="color: #000000;">Bof</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">bEof</span>      := <span style="color: #000000;">&#123;</span>|| oQry:<span style="color: #000000;">Eof</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">bBookMark</span> := <span style="color: #000000;">&#123;</span>| n | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> n == <span style="color: #00C800;">nil</span>,;<br />                           <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oQry:<span style="color: #000000;">LastRec</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span>, oQry:<span style="color: #000000;">RecNo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, ;<br />                           <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oQry:<span style="color: #000000;">LastRec</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span>, oQry:<span style="color: #000000;">goto</span><span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">bKeyNo</span>    := <span style="color: #000000;">&#123;</span>| n | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> n == <span style="color: #00C800;">nil</span>, ;<br />                           <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oQry:<span style="color: #000000;">LastRec</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span>, oQry:<span style="color: #000000;">RecNo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, ;<br />                           <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oQry:<span style="color: #000000;">LastRec</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span>, oQry:<span style="color: #000000;">Goto</span><span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">bKeyCount</span> := <span style="color: #000000;">&#123;</span>|| oQry:<span style="color: #000000;">LastRec</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />   END<br /><br />   oBrw:<span style="color: #000000;">nDataType</span> := DATATYPE_USER<br />   <span style="color: #B900B9;">//oQry:Cargo = oQry:aStructure[ 1 ][ 1 ]</span><br />   <br />   <span style="color: #00C800;">IF</span> lAddCols<br /><br />      aFldNames := oQry:<span style="color: #000000;">Struct</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//aStructure</span><br /><br />      <span style="color: #00C800;">FOR</span> EACH xField IN aFldNames<br />         cCol    := xField<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />         cHeader := xField<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />         oCol = SetColFromPostgre<span style="color: #000000;">&#40;</span> cCol, cHeader, oQry, oBrw <span style="color: #000000;">&#41;</span><br />         <span style="color: #B900B9;">//set order</span><br />      <span style="color: #00C800;">NEXT</span><br /><br />   <span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> <br /><br /><br /><span style="color: #00C800;">FUNCTION</span> SetColFromPostgre<span style="color: #000000;">&#40;</span> cnCol, cHeader, oQry , oBrw <span style="color: #000000;">&#41;</span> <br /><br />   <span style="color: #00C800;">LOCAL</span> nType, cType, nLen, nDec, cName<br />   <span style="color: #00C800;">LOCAL</span> oCol, nCol<br />   <br />   <span style="color: #00C800;">IF</span> ValType<span style="color: #000000;">&#40;</span> cnCol <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"C"</span><br />      nCol               := oQry:<span style="color: #000000;">FieldPos</span><span style="color: #000000;">&#40;</span> cnCol <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">ENDIF</span><br /><br />   cName                 := oQry:<span style="color: #000000;">FieldName</span><span style="color: #000000;">&#40;</span> nCol <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">DEFAULT</span> ;<br />   nCol                  := cnCol<br />   oCol                  := oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oCol:<span style="color: #000000;">cHeader</span>          := cHeader<br />   cType                 := oQry:<span style="color: #000000;">FieldType</span><span style="color: #000000;">&#40;</span> nCol <span style="color: #000000;">&#41;</span><br />   nLen                  := <span style="color: #000000;">0</span><br />   nDec                  := <span style="color: #000000;">0</span><br /><br />   <span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br />   <span style="color: #00C800;">CASE</span> cType       == <span style="color: #ff0000;">'N'</span><br />      nLen               := oQry:<span style="color: #000000;">FieldLen</span><span style="color: #000000;">&#40;</span> nCol <span style="color: #000000;">&#41;</span><br />      nDec               := oQry:<span style="color: #000000;">FieldDec</span><span style="color: #000000;">&#40;</span> nCol <span style="color: #000000;">&#41;</span><br />      oCol:<span style="color: #000000;">cEditPicture</span>  := NumPict<span style="color: #000000;">&#40;</span> nLen, nDec, .F., .f. <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">CASE</span> cType       == <span style="color: #ff0000;">'C'</span><br />      nLen               := <span style="color: #0000ff;">MIN</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">100</span>, oQry:<span style="color: #000000;">FieldLen</span><span style="color: #000000;">&#40;</span> nCol <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">CASE</span> cType       == <span style="color: #ff0000;">'M'</span><br />      nLen               := <span style="color: #0000ff;">MIN</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">100</span>, Len<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> nCol <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      nLen               := <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>nLen < <span style="color: #000000;">30</span>, <span style="color: #000000;">30</span>, nLen <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">CASE</span> cType       == <span style="color: #ff0000;">'D'</span><br />      nLen  := <span style="color: #000000;">8</span><br />      oCol:<span style="color: #000000;">nHeadStrAlign</span> := <span style="color: #000000;">2</span><br />      oCol:<span style="color: #000000;">nDataStrAlign</span> := <span style="color: #000000;">0</span><br />   <br />   <span style="color: #00C800;">CASE</span> cType       == <span style="color: #ff0000;">'D'</span><br />      nLen  := <span style="color: #000000;">1</span><br /><br />   <span style="color: #00C800;">OTHERWISE</span><br />      <span style="color: #B900B9;">// just in case.  this will not be executed</span><br />      oCol:<span style="color: #000000;">bEditValue</span>    := <span style="color: #000000;">&#123;</span> || <span style="color: #ff0000;">"..."</span> <span style="color: #000000;">&#125;</span> <br /><br />   <span style="color: #00C800;">ENDCASE</span><br /><br />   oCol:<span style="color: #000000;">bEditValue</span>       := <span style="color: #000000;">&#123;</span> || oQry:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">&#40;</span> nCol <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />   <span style="color: #B900B9;">//oCol:cDataType        := If( cType == nil, 'C', cType )</span><br />   <span style="color: #B900B9;">//oCol:bOnPostEdit      := { |o,x,n| If( n == VK_RETURN, oBrw:onedit( o, x, n, cType, nCol ), NIL ) }</span><br /><br /><span style="color: #00C800;">RETURN</span> oCol<br /><br /> </div>[/code:12cf3rfp]
clase TPqSQLServer and xbrowse
Bueno he resuelto de forma cutre pero fácil. al ser tpqsql una clase muy similar a la tmysql, y como los métodos y datas son similares (al menos en los usado en xbrowse) he realizado estas pocas modificaciones: [b:3lirugof]METHOD Initiate[/b:3lirugof] original: [code=fw:3lirugof]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />      elseif ! Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oMysql</span> <span style="color: #000000;">&#41;</span> .AND. ::<span style="color: #000000;">oMysql</span>:<span style="color: #000000;">IsKindOf</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'TMYSQLQUERY'</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:3lirugof] cambiado a: [code=fw:3lirugof]<div class="fw" id="{CB}" style="font-family: monospace;"><br />      elseif ! Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oMysql</span> <span style="color: #000000;">&#41;</span> .AND. <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oMysql</span>:<span style="color: #000000;">IsKindOf</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'TMYSQLQUERY'</span> <span style="color: #000000;">&#41;</span> .or. ::<span style="color: #000000;">oMysql</span>:<span style="color: #000000;">IsKindOf</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'TPQSQLQUERY'</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:3lirugof] [b:3lirugof]function XbrwSetDataSource( oBrw, uDataSrc, lAddCols, lAutoSort, aCols, aRows, aHeaders, bChange )[/b:3lirugof] original: [code=fw:3lirugof]<div class="fw" id="{CB}" style="font-family: monospace;"><br />         <span style="color: #00C800;">if</span> uDataSrc:<span style="color: #000000;">IsKindOf</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'TMYSQLQUERY'</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:3lirugof] cambiado a: [code=fw:3lirugof]<div class="fw" id="{CB}" style="font-family: monospace;"><br />         <span style="color: #00C800;">if</span> uDataSrc:<span style="color: #000000;">IsKindOf</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'TMYSQLQUERY'</span> <span style="color: #000000;">&#41;</span> .or. uDataSrc:<span style="color: #000000;">IsKindOf</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'TPQSQLQUERY'</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:3lirugof] [img:3lirugof]https&#58;//i&#46;imgur&#46;com/QyVv2q5&#46;png[/img:3lirugof] [img:3lirugof]https&#58;//i&#46;imgur&#46;com/UL9b1sh&#46;png[/img:3lirugof] [img:3lirugof]https&#58;//i&#46;imgur&#46;com/ajre320&#46;png[/img:3lirugof]
clase TPqSQLServer and xbrowse
Excelente Carlos, que buen trabajo <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
clase TPqSQLServer and xbrowse
SAludos Carlos Compile tu ejemplo. y me da este error, supuesta mente no deberia mostrar datos como tu decias, Tu tienes la libreria para Harbour [code=fw:3pkxuwk6]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Application<br />===========<br />&nbsp; &nbsp;Path and <span style="color: #0000ff;">name</span>: <span style="color: #000000;">J</span>:\Estaba en Unidad G\Descargas_Varias\Clase TPqSqlServer para PosgresSQL\samples\prueba1.exe <span style="color: #000000;">&#40;</span><span style="color: #000000;">32</span> bits<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">Size</span>: <span style="color: #000000;">3</span>,<span style="color: #000000;">553</span>,<span style="color: #000000;">280</span> bytes<br />&nbsp; &nbsp;Compiler version: <span style="color: #000000;">xHarbour</span> <span style="color: #000000;">1.2</span><span style="color: #000000;">.3</span> Intl. <span style="color: #000000;">&#40;</span>SimpLex<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#40;</span>Build <span style="color: #000000;">20161218</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;FiveWin &nbsp;version: <span style="color: #000000;">FWHX</span> <span style="color: #000000;">17.04</span><br />&nbsp; &nbsp;C compiler version: <span style="color: #000000;">Borland</span>/Embarcadero C++ <span style="color: #000000;">7.0</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">32</span>-bit<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Windows version: <span style="color: #000000;">6.2</span>, Build <span style="color: #000000;">9200</span> <br /><br />&nbsp; &nbsp;Time <span style="color: #0000ff;">from</span> start: <span style="color: #000000;">0</span> hours <span style="color: #000000;">0</span> mins <span style="color: #000000;">8</span> secs <br />&nbsp; &nbsp;Error occurred <span style="color: #00C800;">at</span>: <span style="color: #000000;">08</span>/<span style="color: #000000;">06</span>/<span style="color: #000000;">2017</span>, <span style="color: #000000;">13</span>:<span style="color: #000000;">56</span>:<span style="color: #000000;">48</span><br />&nbsp; &nbsp;Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">1082</span> &nbsp;Error de argumento: -<br />&nbsp; &nbsp;Args:<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> &nbsp; <span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> = N &nbsp; <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> &nbsp; <span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> = U &nbsp; <br /><br />Stack Calls<br />===========<br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\<span style="color: #00C800;">function</span>\XBROWSER.PRG => FITSIZES<span style="color: #000000;">&#40;</span> <span style="color: #000000;">323</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\<span style="color: #00C800;">function</span>\XBROWSER.PRG => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span><span style="color: #0000ff;">XBROWSE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">270</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #000000;">INITIATE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">714</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">906</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> DIALOGBOXINDIRECT<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">296</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\<span style="color: #00C800;">function</span>\XBROWSER.PRG => <span style="color: #0000ff;">XBROWSE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">270</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">prueba1</span>.prg => MAIN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">124</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp;</div>[/code:3pkxuwk6]
clase TPqSQLServer and xbrowse
Now FWH 17.05 starts supporting hbpgsql (Harbour ) and pgsql (xHarbour) without any changes or modifications. In FWH 17.06 the support is greatly enhanced. <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=34182">viewtopic.php?f=3&t=34182</a><!-- l -->
clase TPqSQLServer and xbrowse
Hola Mr. Rao te felicito por la gran labor que está haciendo en el mundo de FWH. Dicho esto quiero hacer una sugerencia... El paradigma informático de la Programación Orientada al Objeto está basada en la [color=#FF0000:33d27ivs]herencia [/color:33d27ivs]para conseguir clases [color=#FF0000:33d27ivs]especializadas [/color:33d27ivs]en algo concreto... Hay que conseguir [color=#FF0000:33d27ivs]desacoplar [/color:33d27ivs]la clase al máximo y desgraciadamente cuando veo el código de TXBrowse me horroriza. Se ha conseguido que haga muchas cosas, pero a costa de "IF", de "CASE" y continuos parches y eso no está nada bien, lo siento. Cuando he intentado visualizar fuentes de datos diferentes a las "[color=#FF0000:33d27ivs]acopladas[/color:33d27ivs]" cuesta un poco <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> La idea es hacer algo parecido al TBrowse de clipper y que con los codeblock de movimiento sea suficiente... Si queremos un TXBrowse para MariaDB por ejemplo, siempre se podría hacer: [code=fw:33d27ivs]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">CLASS</span> TXBrwMariaDB <span style="color: #0000ff;">FROM</span> TXBrowse<br />ó<br /><span style="color: #00C800;">CLASS</span> TXBrwEditable <span style="color: #0000ff;">FROM</span> TXBrowse<br />y luego<br /><span style="color: #00C800;">CLASS</span> TXBrwMariaDB <span style="color: #0000ff;">FROM</span> TXBrwEditable <br /> </div>[/code:33d27ivs] Creo que todo el mundo, sobretodo los desarrolladores se lo agradeceríamos <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Será posible? <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: --> Saludos y le animo a que siga con su grandísima labor!!!!
clase TctrlSock
Hola Antonio Estoy tratando de implementar layers en un socket usando la Tsocket de FWH y TctrlSock. Me encuentro con que en TctrlSock falta un metodo, Give_Chance() y una variable lCanDestroy y no me funciona. Me puedes decir donde puedo conseguir la clase completa para poder usarla o pasarme el codigo que le falta! Te agradezco la ayuda que puedas prestarme
clase TctrlSock
[url:208mv5az]https&#58;//github&#46;com/manuelcalerosolis/Gestool/blob/master/prg/Tctrsock&#46;prg[/url:208mv5az] [url:208mv5az]http&#58;//wiki&#46;fivetechsoft&#46;com/doku&#46;php?id=fivewin_classes_by_category[/url:208mv5az] [url:208mv5az]http&#58;//www&#46;fivetechsoft&#46;com/wiki/doku&#46;php?id=fivewin_classes_por_categoria&rev=1266530592[/url:208mv5az]
clase TctrlSock
Gracias Karinha por la respuesta Mire el sitio de CAleroSolis y alli esta la clase pero no tiene la funcion/metodo GIVE_CHANCE() ni la variable lCanDestroy relacionados con el ::aRequests. Se te ocurre qlgo mas ?
clase TctrlSock
[url:2os4undv]http&#58;//wiki&#46;fivetechsoft&#46;com/doku&#46;php?id=fivewin_clase_tctrlsocket[/url:2os4undv]
clase Tpdf
Hola a todos: Estoy utilizando la clase Tpdf y hasta ahora no habia necesitado cambiar de tipo de letra y ahora que lo intento no me funciona siempre me sale el mismo tipo de letra, sin embargo si cambio el tamaño y si es NEGRITA o no eso si funciona el fuente es muy sencillo: [code=fw:wzafnhyu]<div class="fw" id="{CB}" style="font-family: monospace;"><br />  store <span style="color: #000000;">595</span>/<span style="color: #000000;">147</span> <span style="color: #0000ff;">to</span> fiz1<br />  store <span style="color: #000000;">842</span>/<span style="color: #000000;">80</span>  <span style="color: #0000ff;">to</span> col<br />  oPdf := tpdf<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;">"VistaPrevia.pdf"</span><span style="color: #000000;">&#41;</span><br />  oPdf:<span style="color: #000000;">Pdfnewpage</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"A4"</span>,<span style="color: #ff0000;">"P"</span>,<span style="color: #000000;">6</span>,trim<span style="color: #000000;">&#40;</span>vnocab<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />  <span style="color: #00C800;">if</span> opci14 = <span style="color: #000000;">1</span><br />    oPdf:<span style="color: #000000;">PdfImage</span><span style="color: #000000;">&#40;</span>xrutadato + <span style="color: #ff0000;">"EMP"</span> + xempr + <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>actura.jpg"</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">595</span>,<span style="color: #000000;">842</span><span style="color: #000000;">&#41;</span><br />  <span style="color: #00C800;">endif</span><br />  <span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> .T.<br />    <span style="color: #00C800;">if</span> eof<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      exit<br />    <span style="color: #00C800;">endif</span><br />    <span style="color: #00C800;">if</span> cabecera = <span style="color: #ff0000;">"S"</span><br />      oPdf:<span style="color: #000000;">PdfSetFont</span><span style="color: #000000;">&#40;</span>upper<span style="color: #000000;">&#40;</span>trim<span style="color: #000000;">&#40;</span>vnocab<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">1</span>,<span style="color: #0000ff;">ABS</span><span style="color: #000000;">&#40;</span>vhecab<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />      oPdf:<span style="color: #000000;">PdfAtSay</span><span style="color: #000000;">&#40;</span>trim<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span>descripcio,<span style="color: #000000;">1</span>,<span style="color: #000000;">49</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> ,<span style="color: #000000;">842</span>-<span style="color: #000000;">&#40;</span>col*columna<span style="color: #000000;">&#41;</span>, fila*fiz1,.T.<span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">else</span><br />      oPdf:<span style="color: #000000;">PdfSetFont</span><span style="color: #000000;">&#40;</span>upper<span style="color: #000000;">&#40;</span>trim<span style="color: #000000;">&#40;</span>vnolin<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">0</span>,<span style="color: #0000ff;">ABS</span><span style="color: #000000;">&#40;</span>vhelin<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />      oPdf:<span style="color: #000000;">PdfAtSay</span><span style="color: #000000;">&#40;</span>trim<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span>descripcio,<span style="color: #000000;">1</span>,<span style="color: #000000;">49</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> ,<span style="color: #000000;">842</span>-<span style="color: #000000;">&#40;</span>col*columna<span style="color: #000000;">&#41;</span>, fila*fiz1,.T.<span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">endif</span><br />    skip + <span style="color: #000000;">1</span><br />  <span style="color: #00C800;">enddo</span><br />  oPdf:<span style="color: #000000;">PdfClosePage</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  oPdf:<span style="color: #000000;">PdfClose</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>[/code:wzafnhyu] En el principio esta : [code=fw:wzafnhyu]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"PdfHbDoc.ch"</span><br /> </div>[/code:wzafnhyu] Alguien poria ayuarme de como solucionarlo. Gracias. Carlos
clase Tpdf
Carlos, Puedes copiar aqui el código fuente de la clase TPdf que estás usando ? gracias
clase Tpdf
Hola Antonio: Que te refieres con el codigo fuente Yo compilo con: [code=fw:3k8jkyfs]<div class="fw" id="{CB}" style="font-family: monospace;">del fyvwin.exe<br />del *.c<br />del *.obj<br />echo clp2harb<br /><br />copy obj\c0w32.obj<br /><br />set hdir=c:\xharbour\bin\<br />set bdir=c:\bcc582\bin\<br /><br />SET PATH=C:\fwh\bin;c:\bcc582\bin;c:\xharbour\bin;c:\copiones<br />SET LIB=C:\fwh\lib;c:\bcc582\lib;c:\xharbour\lib;c:\xharbour\lib\psdk<br />SET INCLUDE=C:\fwh\include;c:\bcc582\include;c:\xharbour\include<br /><br />%hdir%harbour fyvwin /m/n<br />%hdir%harbour rddsys   /n<br />%hdir%harbour preparar /n<br />%hdir%harbour procesos /n<br />%hdir%harbour gestmenu /n<br />%hdir%harbour gesttext /n<br />%hdir%harbour gestempr /n<br />%hdir%harbour gestusua /n<br />%hdir%harbour gestusu2 /n<br />%hdir%harbour gestmult /n<br />%hdir%harbour gestacti /n<br />%hdir%harbour gestutil /n<br />%hdir%harbour gestauto /n<br />%hdir%harbour gestbanc /n<br />%hdir%harbour gestconc /n<br />%hdir%harbour gestempl /n<br />%hdir%harbour gestprov /n<br />%hdir%harbour gestclie /n<br />%hdir%harbour gestnume /n<br />%hdir%harbour gestcent /n<br />%hdir%harbour gestclau /n<br />%hdir%harbour gestmovi /n<br />%hdir%harbour gestpres /n<br />%hdir%harbour gestenvi /n<br />%hdir%harbour gestaver /n<br />%hdir%harbour gestmant /n<br />%hdir%harbour gestalba /n<br />%hdir%harbour gestfact /n<br />%hdir%harbour gestcome /n<br />%hdir%harbour gestpunt /n<br />%hdir%harbour gestrest /n<br />%hdir%harbour gesthote /n<br />%hdir%harbour gestfacg /n<br />%hdir%harbour gestalbg /n<br />%hdir%harbour gestvenc /n<br />%hdir%harbour gestlist /n<br />%hdir%harbour gestlis2 /n<br />%hdir%harbour gestimpr /n<br />%hdir%harbour gestimp2 /n<br />%hdir%harbour rpreview /n<br />%hdir%harbour pdf1 /n<br />%hdir%harbour pdfhbdcs /n<br />%hdir%harbour tsmtp /n<br />%hdir%harbour <span style="color: #0000ff;">window</span> /n<br /><br />%bdir%bcc32 -c fyvwin.c<br />%bdir%bcc32 -c rddsys.c<br />%bdir%bcc32 -c preparar.c<br />%bdir%bcc32 -c procesos.c<br />%bdir%bcc32 -c gestmenu.c<br />%bdir%bcc32 -c gesttext.c<br />%bdir%bcc32 -c gestempr.c<br />%bdir%bcc32 -c gestusua.c<br />%bdir%bcc32 -c gestusu2.c<br />%bdir%bcc32 -c gestmult.c<br />%bdir%bcc32 -c gestacti.c<br />%bdir%bcc32 -c gestutil.c<br />%bdir%bcc32 -c gestauto.c<br />%bdir%bcc32 -c gestbanc.c<br />%bdir%bcc32 -c gestconc.c<br />%bdir%bcc32 -c gestempl.c<br />%bdir%bcc32 -c gestprov.c<br />%bdir%bcc32 -c gestclie.c<br />%bdir%bcc32 -c gestnume.c<br />%bdir%bcc32 -c gestcent.c<br />%bdir%bcc32 -c gestclau.c<br />%bdir%bcc32 -c gestmovi.c<br />%bdir%bcc32 -c gestpres.c<br />%bdir%bcc32 -c gestenvi.c<br />%bdir%bcc32 -c gestaver.c<br />%bdir%bcc32 -c gestmant.c<br />%bdir%bcc32 -c gestalba.c<br />%bdir%bcc32 -c gestfact.c<br />%bdir%bcc32 -c gestcome.c<br />%bdir%bcc32 -c gestpunt.c<br />%bdir%bcc32 -c gestrest.c<br />%bdir%bcc32 -c gesthote.c<br />%bdir%bcc32 -c gestfacg.c<br />%bdir%bcc32 -c gestalbg.c<br />%bdir%bcc32 -c gestvenc.c<br />%bdir%bcc32 -c gestlist.c<br />%bdir%bcc32 -c gestlis2.c<br />%bdir%bcc32 -c gestimpr.c<br />%bdir%bcc32 -c gestimp2.c<br />%bdir%bcc32 -c rpreview.c<br />%bdir%bcc32 -c pdf1.c<br />%bdir%bcc32 -c pdfhbdcs.c<br />%bdir%bcc32 -c tsmtp.c<br />%bdir%bcc32 -c <span style="color: #0000ff;">window</span>.c<br /><br />%bdir%ilink32 -Gn -aa -Tpe -s -v @fyvwin1.lnk<br /><br />fyvwin  <br /></div>[/code:3k8jkyfs] y el fyvwin1.lnk es : [code=fw:3k8jkyfs]<div class="fw" id="{CB}" style="font-family: monospace;">c0w32.obj    +<br />fyvwin.obj   +<br />rddsys.obj   +<br />preparar.obj +<br />procesos.obj +<br />gesttext.obj +<br />gestmenu.obj +<br />gestempr.obj +<br />gestusua.obj +<br />gestusu2.obj +<br />gestmult.obj +<br />gestacti.obj +<br />gestutil.obj +<br />gestauto.obj +<br />gestbanc.obj +<br />gestconc.obj +<br />gestempl.obj +<br />gestprov.obj +<br />gestclie.obj +<br />gestnume.obj +<br />gestcent.obj +<br />gestclau.obj +<br />gestmovi.obj +<br />gestpres.obj +<br />gestenvi.obj +<br />gestaver.obj +<br />gestmant.obj +<br />gestalba.obj +<br />gestfact.obj +<br />gestcome.obj +<br />gestpunt.obj +<br />gestrest.obj +<br />gesthote.obj +<br />gestfacg.obj +<br />gestalbg.obj +<br />gestvenc.obj +<br />gestlist.obj +<br />gestlis2.obj +<br />gestimpr.obj +<br />gestimp2.obj +<br />rpreview.obj +<br />tsmtp.obj    +<br />pdf1.obj     +<br /><span style="color: #0000ff;">window</span>.obj   +<br />pdfhbdcs.obj,+<br />fyvwin.exe,  +<br />fyvwin.map,  +<br />c:\fwh\lib\FiveHX.lib +<br />c:\fwh\lib\FiveHC.lib +<br />c:\fwh\lib\Tpdfx.lib +<br />C:\xHarbour\lib\rtl.lib +<br />C:\xHarbour\lib\vm.lib +<br />C:\xHarbour\lib\gtgui.lib +<br />C:\xHarbour\lib\lang.lib +<br />C:\xHarbour\lib\macro.lib +<br />C:\xHarbour\lib\rdd.lib +<br />C:\xHarbour\lib\dbfntx.lib +<br />C:\xHarbour\lib\dbfcdx.lib +<br />C:\xHarbour\lib\dbffpt.lib +<br />C:\xHarbour\lib\hbsix.lib +<br />C:\xHarbour\lib\debug.lib +<br />C:\xHarbour\lib\common.lib +<br />C:\xHarbour\lib\pp.lib +<br />C:\xharbour\lib\pcrepos.lib +<br />C:\xHarbour\lib\ct.lib +<br />C:\xHarbour\lib\zlib.lib +<br />C:\xHarbour\lib\hbzip.lib +<br />C:\xHarbour\lib\rddads.lib +<br />C:\xHarbour\lib\ace32.lib +<br />C:\xHarbour\lib\codepage.lib +<br />C:\bcc582\lib\cw32.lib +<br />C:\bcc582\lib\import32.lib +<br />C:\bcc582\lib\uuid.lib +<br />C:\bcc582\lib\wininet.lib +<br />C:\bcc582\lib\oleaut32.lib +<br />C:\bcc582\lib\psdk\odbc32.lib +<br />C:\bcc582\lib\psdk\rasapi32.lib +<br />C:\bcc582\lib\psdk\nddeapi.lib +<br />C:\bcc582\lib\psdk\msimg32.lib +<br />C:\bcc582\lib\psdk\iphlpapi.lib +<br />C:\bcc582\lib\psdk\psapi.lib +<br /></div>[/code:3k8jkyfs] el prg es el gestimpr.prg y lo que incluyo de la clase Tpdf son: pdf1.prg pdfhbdcs.prg y tambien se incluye la libreria: Tpdfx.lib Un saludo Carlos
clase Tpdf
Carlos a mí así como esta en el código me funciona [code=fw:2vwone80]<div class="fw" id="{CB}" style="font-family: monospace;">oPdf:<span style="color: #000000;">Pdfatsay</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Agente de Retención: "</span> + <span style="color: #ff0000;">"08712-8"</span>+ space<span style="color: #000000;">&#40;</span><span style="color: #000000;">25</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"Tipo de Agente : particular"</span>,cm2dpi<span style="color: #000000;">&#40;</span><span style="color: #000000;">2.4</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">250</span>,.t.<span style="color: #000000;">&#41;</span><br /><br />oPdf:<span style="color: #000000;">Pdfsetfont</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"TIMES"</span>,   BOLD, <span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//oPdf:Pdfsetfont( "COURIER",BOLD, 10)</span><br />oPdf:<span style="color: #000000;">Pdfatsay</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Régimen General de Ingresos Brutos Capital Federal "</span>,cm2dpi<span style="color: #000000;">&#40;</span>nrow+= .<span style="color: #000000;">8</span><span style="color: #000000;">&#41;</span>,cmancho<span style="color: #000000;">&#40;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />oPdf:<span style="color: #000000;">Pdfsetfont</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"COURIER"</span>,<span style="color: #0000ff;">NORMAL</span>, <span style="color: #000000;">9</span><span style="color: #000000;">&#41;</span><br />oPdf:<span style="color: #000000;">Pdfatsay</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Descripción Régimen: Res. 533-SH y F-200 - Régimen General de Retención del I.S.I.B."</span>,cm2dpi<span style="color: #000000;">&#40;</span>nrow+= .<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span>,cmancho<span style="color: #000000;">&#40;</span><span style="color: #000000;">2.5</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />oPdf:<span style="color: #000000;">Pdfsetfont</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"COURIER"</span>,<span style="color: #0000ff;">NORMAL</span>, <span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span></div>[/code:2vwone80] Yo estoy compilando directamente la librería que viene de xharbour pdflib.lib Luis
clase Tpdf
Hola Luis: He encontrado la libreria que me indicas y me pasa lo mismo pero veo una diferencia es que yo para poner negrita no me vale poner BOLD como pones tu sino tengo que poner 1 y para NORMAL pongo 0, sino da error. Es la única diferencia. Un saludo Carlos
clase Tpdf
Tenés que incluir los includes #include "PdfHbDoc.ch" #include "Pdf.ch" Luis
clase Tpdf
Te envío el prg que yo hice y funciona: [code=fw:v57n63l1]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">FUNCTION</span>  impibrpdf1<span style="color: #000000;">&#40;</span>aMae,  oVar,cPath<span style="color: #000000;">&#41;</span>                       <span style="color: #B900B9;">//impresion en pdf para enviar por correo retenciones capital</span><br /><span style="color: #00C800;">local</span> z := <span style="color: #000000;">0</span><br /><span style="color: #00C800;">local</span> nrow := <span style="color: #000000;">3.2</span><br /><span style="color: #00C800;">local</span> cTitulo := <span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">local</span> oPdf<br /><br /> cTitulo := <span style="color: #ff0000;">"Capital Federal"</span><br /><br /><br /> opdf := tpdf<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span>cPath<span style="color: #000000;">&#41;</span><br /><br /><br /> titpdef<span style="color: #000000;">&#40;</span>oPdf<span style="color: #000000;">&#41;</span>                    <span style="color: #B900B9;">// creopdf están los titulos</span><br /><br /> <br /><br />oPdf:<span style="color: #000000;">Pdfatsay</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"CUIT 30-65485547-8"</span>  ,cm2dpi<span style="color: #000000;">&#40;</span><span style="color: #000000;">2.4</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">100</span>,.T.<span style="color: #000000;">&#41;</span><br />oPdf:<span style="color: #000000;">Pdfatsay</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Nº Ingresos Brutos: "</span> + oApp:<span style="color: #000000;">nroBruto</span><span style="color: #000000;">&#41;</span>,cm2dpi<span style="color: #000000;">&#40;</span><span style="color: #000000;">2.0</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">250</span>,.t.<span style="color: #000000;">&#41;</span><br />oPdf:<span style="color: #000000;">Pdfatsay</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Agente de Retención: "</span> + <span style="color: #ff0000;">"08712-8"</span>+ space<span style="color: #000000;">&#40;</span><span style="color: #000000;">25</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"Tipo de Agente : particular"</span>,cm2dpi<span style="color: #000000;">&#40;</span><span style="color: #000000;">2.4</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">250</span>,.t.<span style="color: #000000;">&#41;</span><br /><br />oPdf:<span style="color: #000000;">Pdfsetfont</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"TIMES"</span>,   BOLD, <span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//oPdf:Pdfsetfont( "COURIER",BOLD, 10)</span><br />oPdf:<span style="color: #000000;">Pdfatsay</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Régimen General de Ingresos Brutos Capital Federal "</span>,cm2dpi<span style="color: #000000;">&#40;</span>nrow+= .<span style="color: #000000;">8</span><span style="color: #000000;">&#41;</span>,cmancho<span style="color: #000000;">&#40;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />oPdf:<span style="color: #000000;">Pdfsetfont</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"COURIER"</span>,<span style="color: #0000ff;">NORMAL</span>, <span style="color: #000000;">9</span><span style="color: #000000;">&#41;</span><br />oPdf:<span style="color: #000000;">Pdfatsay</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Descripción Régimen: Res. 533-SH y F-200 - Régimen General de Retención del I.S.I.B."</span>,cm2dpi<span style="color: #000000;">&#40;</span>nrow+= .<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span>,cmancho<span style="color: #000000;">&#40;</span><span style="color: #000000;">2.5</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />oPdf:<span style="color: #000000;">Pdfsetfont</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"COURIER"</span>,<span style="color: #0000ff;">NORMAL</span>, <span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span><br /><br />oPdf:<span style="color: #000000;">Pdfatsay</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Fecha: "</span> + dtoc<span style="color: #000000;">&#40;</span>oVar:<span style="color: #000000;">dfecha</span><span style="color: #000000;">&#41;</span>,cm2dpi<span style="color: #000000;">&#40;</span>nrow+= .<span style="color: #000000;">7</span><span style="color: #000000;">&#41;</span>,cmancho<span style="color: #000000;">&#40;</span><span style="color: #000000;">1.5</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />oPdf:<span style="color: #000000;">Pdfatsay</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Certificado N°  "</span> +  <span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"0001-"</span> + CSTR<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">year</span><span style="color: #000000;">&#40;</span>date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> +<span style="color: #ff0000;">"-"</span> + strzero<span style="color: #000000;">&#40;</span>oVar:<span style="color: #000000;">nNbrucap</span>,<span style="color: #000000;">6</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,cm2dpi<span style="color: #000000;">&#40;</span>nrow+= .<span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span>,cmancho<span style="color: #000000;">&#40;</span><span style="color: #000000;">1.5</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />oPdf:<span style="color: #000000;">Pdfatsay</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Período  "</span> +  <span style="color: #000000;">&#40;</span>  strzero<span style="color: #000000;">&#40;</span>month<span style="color: #000000;">&#40;</span>date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>  +<span style="color: #ff0000;">"/"</span>  + <span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span> CSTR<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">year</span><span style="color: #000000;">&#40;</span>date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">-2</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,cm2dpi<span style="color: #000000;">&#40;</span>nrow+= .<span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span>,cmancho<span style="color: #000000;">&#40;</span><span style="color: #000000;">1.5</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />oPdf:<span style="color: #000000;">Pdfatsay</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Rentenido a: "</span> + aMae<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>,cm2dpi<span style="color: #000000;">&#40;</span>nrow+= .<span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span>,cmancho<span style="color: #000000;">&#40;</span><span style="color: #000000;">1.5</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />oPdf:<span style="color: #000000;">Pdfatsay</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"CUIT "</span> + aMae<span style="color: #000000;">&#91;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>,cm2dpi<span style="color: #000000;">&#40;</span>nrow+= .<span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span>,cmancho<span style="color: #000000;">&#40;</span><span style="color: #000000;">1.5</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />oPdf:<span style="color: #000000;">Pdfatsay</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Domicilio: "</span> + alltrim<span style="color: #000000;">&#40;</span>aMae<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span> + space<span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span> + alltrim<span style="color: #000000;">&#40;</span>aMae<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,cm2dpi<span style="color: #000000;">&#40;</span>nrow+= .<span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span>,cmancho<span style="color: #000000;">&#40;</span><span style="color: #000000;">1.5</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />oPdf:<span style="color: #000000;">Pdfatsay</span><span style="color: #000000;">&#40;</span>aMae<span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span>,cm2dpi<span style="color: #000000;">&#40;</span>nrow+= .<span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span>,cmancho<span style="color: #000000;">&#40;</span><span style="color: #000000;">1.5</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />oPdf:<span style="color: #000000;">Pdfatsay</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Número de IIBB: "</span> + aMae<span style="color: #000000;">&#91;</span><span style="color: #000000;">17</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span>,cm2dpi<span style="color: #000000;">&#40;</span>nrow+= .<span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span>,cmancho<span style="color: #000000;">&#40;</span><span style="color: #000000;">1.5</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />oPdf:<span style="color: #000000;">Pdfatsay</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Pago efectuado: $"</span> + transform<span style="color: #000000;">&#40;</span>oVar:<span style="color: #000000;">totalre</span>,<span style="color: #ff0000;">"@e 999,999.99"</span><span style="color: #000000;">&#41;</span>,cm2dpi<span style="color: #000000;">&#40;</span>nrow+= .<span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span>,cmancho<span style="color: #000000;">&#40;</span><span style="color: #000000;">1.5</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />oPdf:<span style="color: #000000;">Pdfatsay</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Importe retenido: $"</span> + transform<span style="color: #000000;">&#40;</span>oVar:<span style="color: #000000;">nRetibcap</span>,<span style="color: #ff0000;">"@e 999,999.99"</span><span style="color: #000000;">&#41;</span>,cm2dpi<span style="color: #000000;">&#40;</span>nrow+= .<span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span>,cmancho<span style="color: #000000;">&#40;</span><span style="color: #000000;">1.5</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />oPdf:<span style="color: #000000;">Pdfatsay</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Alícuota aplicada: %"</span> + transform<span style="color: #000000;">&#40;</span>oVar:<span style="color: #000000;">Ibrecap</span> , <span style="color: #ff0000;">"@e 99.99"</span><span style="color: #000000;">&#41;</span>,cm2dpi<span style="color: #000000;">&#40;</span>nrow+= .<span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span>,cmancho<span style="color: #000000;">&#40;</span><span style="color: #000000;">1.5</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">if</span> !empty<span style="color: #000000;">&#40;</span>oVar:<span style="color: #000000;">iva</span><span style="color: #000000;">&#41;</span><br />    oPdf:<span style="color: #000000;">Pdfatsay</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Iva: "</span> + transform<span style="color: #000000;">&#40;</span>oVar:<span style="color: #000000;">iva</span>,<span style="color: #ff0000;">"@e 999,999.99"</span><span style="color: #000000;">&#41;</span>,cm2dpi<span style="color: #000000;">&#40;</span>nrow+= .<span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span>,cmancho<span style="color: #000000;">&#40;</span><span style="color: #000000;">1.5</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />    oPdf:<span style="color: #000000;">Pdfatsay</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Otros conceptos:"</span> + transform<span style="color: #000000;">&#40;</span>oVar:<span style="color: #000000;">otroscon</span>, <span style="color: #ff0000;">"@e 99,999.99"</span><span style="color: #000000;">&#41;</span>,cm2dpi<span style="color: #000000;">&#40;</span>nrow+= .<span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span>,cmancho<span style="color: #000000;">&#40;</span><span style="color: #000000;">1.5</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">for</span> x = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span>oVar:<span style="color: #000000;">adeta</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">if</span> oVar:<span style="color: #000000;">adeta</span><span style="color: #000000;">&#91;</span>x,<span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span> >= oApp:<span style="color: #000000;">minibru</span><br />          oPdf:<span style="color: #000000;">Pdfatsay</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Afecta a comprobante Nº "</span> + oVar:<span style="color: #000000;">adeta</span><span style="color: #000000;">&#91;</span>x,<span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> + <span style="color: #ff0000;">" Base Imp. "</span> + transform<span style="color: #000000;">&#40;</span>oVar:<span style="color: #000000;">adeta</span><span style="color: #000000;">&#91;</span>x,<span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span>,<span style="color: #ff0000;">"@e 999,999.99"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,cm2dpi<span style="color: #000000;">&#40;</span>nrow+= .<span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span>,cmancho<span style="color: #000000;">&#40;</span><span style="color: #000000;">1.5</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">next</span><br /><br /><br />oPdf:<span style="color: #000000;">Pdfatsay</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Importe que será depositado por declaración jurada correspondiente al mes de"</span>,cm2dpi<span style="color: #000000;">&#40;</span>nrow+= <span style="color: #000000;">1.2</span><span style="color: #000000;">&#41;</span>,cmancho<span style="color: #000000;">&#40;</span><span style="color: #000000;">1.5</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />oPdf:<span style="color: #000000;">Pdfatsay</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>mes<span style="color: #000000;">&#40;</span>month<span style="color: #000000;">&#40;</span>oVar:<span style="color: #000000;">dfecha</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" de "</span> + valstr<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">year</span><span style="color: #000000;">&#40;</span>oVar:<span style="color: #000000;">dFecha</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,cm2dpi<span style="color: #000000;">&#40;</span>nrow+= .<span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span>,cmancho<span style="color: #000000;">&#40;</span><span style="color: #000000;">1.5</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br /><br /> opdf:<span style="color: #000000;">Pdfimage</span><span style="color: #000000;">&#40;</span>oApp:<span style="color: #000000;">curproga</span> +<span style="color: #ff0000;">"firma1.jpg"</span>, cm2dpi<span style="color: #000000;">&#40;</span>nrow+= <span style="color: #000000;">3.5</span><span style="color: #000000;">&#41;</span>, cmancho<span style="color: #000000;">&#40;</span><span style="color: #000000;">9.5</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">158</span>,<span style="color: #000000;">100</span><span style="color: #000000;">&#41;</span>  <br /><br /> opdf:<span style="color: #000000;">Pdfclosepage</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> opdf:<span style="color: #000000;">pdfclose</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 /><br /><span style="color: #B900B9;">/*******************************************************************************/</span><br /> <span style="color: #00C800;">FUNCTION</span> titpdef<span style="color: #000000;">&#40;</span>oPdf<span style="color: #000000;">&#41;</span><br /> opdf:<span style="color: #000000;">Pdfnewpage</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"A4"</span>,<span style="color: #ff0000;">"P"</span><span style="color: #000000;">&#41;</span><br /><br />opdf:<span style="color: #000000;">Pdfimage</span><span style="color: #000000;">&#40;</span>oApp:<span style="color: #000000;">curproga</span> + <span style="color: #ff0000;">"logoc1.jpg"</span>, cm2dpi<span style="color: #000000;">&#40;</span><span style="color: #000000;">2.5</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span>,<span style="color: #000000;">85</span>,<span style="color: #000000;">66</span><span style="color: #000000;">&#41;</span> <br />oPdf:<span style="color: #000000;">Pdfsetfont</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"TIMES"</span>,   BOLD, <span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span><br />opdf:<span style="color: #000000;">Pdfatsay</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"QUÍMICA MEGA SA"</span>,cm2dpi<span style="color: #000000;">&#40;</span> .<span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">100</span>,.T.<span style="color: #000000;">&#41;</span><br />oPdf:<span style="color: #000000;">Pdfsetfont</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"TIMES"</span>,<span style="color: #0000ff;">NORMAL</span>, <span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span><br />oPdf:<span style="color: #000000;">Pdfatsay</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Matanza 1456/58"</span>,cm2dpi<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1.2</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">100</span>,.T.<span style="color: #000000;">&#41;</span><br />oPdf:<span style="color: #000000;">Pdfatsay</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Avellaneda-Pcia Bs As"</span>,cm2dpi<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1.6</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">100</span>,.T.<span style="color: #000000;">&#41;</span><br />oPdf:<span style="color: #000000;">Pdfatsay</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"T.E.: 4289-2700(Rotativas)"</span>,cm2dpi<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2.0</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">100</span>,.T.<span style="color: #000000;">&#41;</span><br />oPdf:<span style="color: #000000;">Pdfatsay</span><span style="color: #000000;">&#40;</span>replicate<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"_"</span>,<span style="color: #000000;">115</span><span style="color: #000000;">&#41;</span>,cm2dpi<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2.6</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">10</span>,.T.<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><span style="color: #B900B9;">/*******************************************************************************/</span></div>[/code:v57n63l1] Enlazado con xharbour 1.21 (último), fwh7.12 y bcc582 los include estan en la contribuciones
clase Tpdf
Carlos fijate como queda [url:2ecgfz8p]https&#58;//ftf-267&#46;yousendit&#46;com/download/1/9EEEE73D2EE67C39/049fe6c3542c9018880c343c0dae324c6609248c/pdf&#46;jpg?download_id=3917290105&user_locale=en&id=1539626857&ufid=9EEEE73D2EE67C39&file=pdf&#46;jpg[/url:2ecgfz8p] Los datos que se muestran son irreales Luis
clase Tpdf
Hola Luis y Antonio: Ya me acuerdo porque no ponia el PDF.CH y es porque tambien uso DEFINE FONT y eso interferia y usaba el 1 y el 0 en vez de BOLD y NORMAL. No obstante he desactivado todos los DEFINE FONT con BOLD y he puesto el PDF.CH y tampoco me funciona el cambio de letra. Tambien tengo problemas con las imagenes pero lo resolvi con un programa que si las guardo con él si funciona. Un saludo Carlos
clase Tpdf
Hola Antonio: Era el codigo que decias. Un saludo Carlos
clase Tpdf
por favor, podria indicar de donde bajar la clase TPdf() Mil gracias
clase Tpdf
Hola Willi Quintana: <!-- m --><a class="postlink" href="http://www.colthop.es/TPDF.zip">http://www.colthop.es/TPDF.zip</a><!-- m --> Un saludo Carlos
clase Tpdf
Subido a: [url:1vy50by3]http&#58;//code&#46;google&#46;com/p/fivewin-contributions/downloads/detail?name=TPDF&#46;zip&can=2&q=[/url:1vy50by3] gracias! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
clase Tpdf
Ya he averiguado, solo se pueden poner ciertos tipos deletras y todasde paso fijo Times, Courier, Helvetica. Se podria aumentar esta cantidad detipos. Un saludo Carlos
clase Tpdf
Amigos He compilado el Ejemplo Y me da error en la libreria RTL.LIB Sale este error: [code=fw:14jrz6m3]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_compress'</span> referenced <span style="color: #0000ff;">from</span> D:\COMPILER\XHARBOUR\LIB\RTL.LIB|hbcomprs<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_uncompress'</span> referenced <span style="color: #0000ff;">from</span> D:\COMPILER\XHARBOUR\LIB\RTL.LIB|hbcomprs<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_zError'</span> referenced <span style="color: #0000ff;">from</span> D:\COMPILER\XHARBOUR\LIB\RTL.LIB|hbcomprs<br />&nbsp;</div>[/code:14jrz6m3] Pensé que era el BCC intenté con BCC63 y BCC582 con XHarbour Rev. 9445 y con la última Rev. 9656 la cual da más errores. También tengo problemas al exportar a Excel de xBrowse usando oBrw:ToExcel() Gracias por la ayuda. Saludos, Adhemar
clase Tpdf
Gracias Distinguido Luis. Funciona. Me faltaba enlazar la zLib.LIB Lo que me queda por solucionar es el problema de exportar a Excel desde xBrowse con la última Rev. 9656 de xHarbour. El problema es la RTL.LIB Saludos, Adhemar
clase Tpdf
Adhemar yo lo hago así enlazo la pdflib.lib en verce la ponés en librería de terceros tal cual viene en xHarbour y nada mas fijate en el script que hace el verce [url:14o9yp71]https&#58;//docs&#46;google&#46;com/open?id=0B8UT409V4x1mU0RPOG1TNU9COVk[/url:14o9yp71] elaza la zlib.lib Luis
clase Tpdf
Hola Luis He hecho prueba de impresion de texto con el ejemplo y simpre lo coloca al final Si coloco asi: [code=fw:22j7cn7l]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;L=<span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #00C800;">For</span> I:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">To</span> <span style="color: #000000;">15</span><br />&nbsp; &nbsp; oPdf:<span style="color: #000000;">Pdfatsay</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Prueba PDF"</span> &nbsp;,<span style="color: #000000;">820</span>-L,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; L+=<span style="color: #000000;">10</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Next</span> I<br />&nbsp;</div>[/code:22j7cn7l] Muestra al inicio. Porque?? La funcion cm2dpi() me la podes pasar. Gracias amigo. Saludos, Adhemar
clase Tpdf
Aquí va No recuerdo bien pero me parece que la creo The Full, sino es disculpas al autor [code=fw:1e683vri]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> cm2dpi<span style="color: #000000;">&#40;</span> nCM, <span style="color: #0000ff;">page</span>, lHeight <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">Local</span> nHeight,nDpi := <span style="color: #000000;">72</span><br />   <span style="color: #00C800;">Local</span> nRes <br /><br />   <span style="color: #00C800;">if</span> empty<span style="color: #000000;">&#40;</span> lHeight <span style="color: #000000;">&#41;</span><br />      lHeight := .T.<br />   <span style="color: #00C800;">endif</span><br /><br />   <span style="color: #00C800;">if</span> lHeight<br />      nHeight := <span style="color: #000000;">842.0</span><br />      nRes := nHeight - <span style="color: #000000;">&#40;</span> nCM * nDpi / <span style="color: #000000;">2.54</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">else</span><br />      nRes := <span style="color: #000000;">&#40;</span> nCM * nDpi / <span style="color: #000000;">2.54</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> nRes</div>[/code:1e683vri] Luis
clase Tpdf
Me averguenza no recordar de quien es y es porque para hacer funcionar tuve que rebuscar por todos lados y de casualidad dí con ella en su momento La imagen fue lo mas difícil Luis
clase Tpdf
Gracias Distinguido. Saludos, Adhemar
clase Tpdf
Saludos Necesito colocar textos alineados hacia la Derecha, caso de valores Numéricos.
clase Tpdf
Hola jnavas: La cosa es muy sencilla en realidad es solo imaginárselo. Solo puedes poner tipos de letra de paso fijo y además caracteres alfanuméricos por lo que para hacer que coincidan el último digito a la derecha transfórmalos con str: str(campo01,18,10) str(campo02,10, 6) str(campo03,5,2) str(campo04,10,2) Y así siempre tienen la misma longitud y están alineado a la derecha. Un saludo Carlos
clase Treport: lineas en cada group
Compañeros, buenas: Tengo un REPORT armado mediante la clase Treport con 2 group. Todo ok... pero me gustaría mejorar su estética quitando las líneas divisorias de cada GROUP en todas las columnas excepto las de 1 columna (concretamente la columna nº 7) [code=fw:34bgeiai]<div class="fw" id="{CB}" style="font-family: monospace;"><br />....<br /> <span style="color: #00C800;">if</span> ldetalleC=.t.<br />  GROUP <span style="color: #0000ff;">ON</span> nombre HEADER codigo+<span style="color: #ff0000;">' '</span>+nombre FOOTER space<span style="color: #000000;">&#40;</span><span style="color: #000000;">95</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">'Pendiente por cobrar a este cliente:'</span> <span style="color: #0000ff;">font</span> <span style="color: #000000;">5</span>   && <span style="color: #ff0000;">'>> Cliente: '</span>+alltrim<span style="color: #000000;">&#40;</span>saldosc->codigo<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">' - '</span>+saldosc->nombre<br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">if</span> ldetalleF=.t.<br />  GROUP <span style="color: #0000ff;">ON</span> DOCUMENTO HEADER <span style="color: #ff0000;">''</span> FOOTER space<span style="color: #000000;">&#40;</span><span style="color: #000000;">108</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">'Pendiente por cobrar de esta factura:'</span><br /> <span style="color: #00C800;">endif</span><br />  column <span style="color: #0000ff;">title</span> iif<span style="color: #000000;">&#40;</span>ldetalleC=.f.,<span style="color: #ff0000;">'Código'</span>,<span style="color: #ff0000;">''</span><span style="color: #000000;">&#41;</span>  <span style="color: #00C800;">data</span> iif<span style="color: #000000;">&#40;</span>ldetalleC=.f.,codigo,<span style="color: #ff0000;">''</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">font</span> <span style="color: #000000;">1</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">6</span> &&grid<br />  column <span style="color: #0000ff;">title</span> iif<span style="color: #000000;">&#40;</span>ldetalleC=.f.,<span style="color: #ff0000;">'Cliente'</span>,<span style="color: #ff0000;">''</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">data</span> iif<span style="color: #000000;">&#40;</span>ldetalleC=.f.,nombre,<span style="color: #ff0000;">''</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">font</span> <span style="color: #000000;">1</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">29</span> &&grid<br />  column <span style="color: #0000ff;">title</span> <span style="color: #ff0000;">'Fecha'</span>,<span style="color: #ff0000;">'emisión'</span> <span style="color: #00C800;">data</span> dtoc<span style="color: #000000;">&#40;</span>fecha<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">' '</span>+dia_fecha<span style="color: #000000;">&#40;</span>fecha<span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">font</span> <span style="color: #000000;">1</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">12</span> &&grid<br />  column <span style="color: #0000ff;">title</span> <span style="color: #ff0000;">'Fecha'</span>,<span style="color: #ff0000;">'Vencimiento (día/mes)'</span>,<span style="color: #ff0000;">'  (!)=Vencidas'</span> <span style="color: #00C800;">data</span> fven <span style="color: #0000ff;">font</span> iif<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'(!)'</span> $ FVEN,<span style="color: #000000;">3</span>,iif<span style="color: #000000;">&#40;</span>len<span style="color: #000000;">&#40;</span>alltrim<span style="color: #000000;">&#40;</span>fven<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>><span style="color: #000000;">21</span>,<span style="color: #000000;">4</span>,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">15</span> &&grid<br />  column <span style="color: #0000ff;">title</span> <span style="color: #ff0000;">'NºFact.'</span> <span style="color: #00C800;">data</span> documento <span style="color: #0000ff;">font</span> <span style="color: #000000;">1</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">7</span> &&SHADOW &&grid<br />  column <span style="color: #0000ff;">title</span> <span style="color: #ff0000;">'A/C'</span> <span style="color: #00C800;">data</span> iif<span style="color: #000000;">&#40;</span>acuenta=.t.,<span style="color: #ff0000;">'A/C'</span>,<span style="color: #ff0000;">' '</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">font</span> <span style="color: #000000;">1</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">4</span> &&grid<br />  column <span style="color: #0000ff;">title</span> <span style="color: #ff0000;">'Importe'</span> <span style="color: #00C800;">data</span> importe <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">'@E99,999,999.99'</span> <span style="color: #0000ff;">font</span> <span style="color: #000000;">1</span> TOTAL <span style="color: #0000ff;">size</span> <span style="color: #000000;">10</span> &&GRID<br />  column <span style="color: #0000ff;">title</span> <span style="color: #ff0000;">'Observaciones'</span> <span style="color: #00C800;">data</span> observa <span style="color: #0000ff;">font</span> <span style="color: #000000;">1</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">33</span> &&grid<br /><br />  infor:<span style="color: #000000;">SetTxtColor</span><span style="color: #000000;">&#40;</span>CLR_HRED,<span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span><br />  infor:<span style="color: #000000;">cGrandTotal</span> := space<span style="color: #000000;">&#40;</span><span style="color: #000000;">50</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"Total Informe..."</span><br />  infor:<span style="color: #000000;">oHeader</span>:<span style="color: #000000;">aFont</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:= <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">2</span> <span style="color: #000000;">&#125;</span><br />  oReport:<span style="color: #000000;">nGroupLine</span> := RPT_NOLINE <span style="color: #B900B9;">// no imprime las lineas separadoras en cada grupo</span><br /> </div>[/code:34bgeiai] Con oReport:nGroupLine := RPT_NOLINE && elimina todas las lineas de todas las columnas.... y yo quiero conservar la línea de una columna determinada!! Concretamente la columna 7. Gracias. Un saludo. LORENZO.
clase Treport: lineas en cada group
Tendrías que modificar report.prg , si te fijas en la función que realiza el pintado lo hace para todas las columnas : [code=fw:3pqau4se]<div class="fw" id="{CB}" style="font-family: monospace;"><br />        <span style="color: #00C800;">for</span> nfor := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nColumns<br /><br />            ::<span style="color: #000000;">oDevice</span>:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nRow</span>,;<br />                           ::<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> nFor <span style="color: #000000;">&#93;</span>,;<br />                           Replicate<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Ä"</span>, ::<span style="color: #000000;">aColumns</span><span style="color: #000000;">&#91;</span> nFor <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nWidth</span><span style="color: #000000;">&#41;</span>,;<br />                           ::<span style="color: #000000;">aFont</span><span style="color: #000000;">&#91;</span> Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bStdFont</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#93;</span>,;<br />                           ::<span style="color: #000000;">aColumns</span><span style="color: #000000;">&#91;</span> nFor <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nWidth</span> <span style="color: #000000;">&#41;</span><br /><br />            <span style="color: #00C800;">if</span> nfor == <span style="color: #000000;">1</span> .and. ::<span style="color: #000000;">aColumns</span><span style="color: #000000;">&#91;</span> nFor <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lGrid</span><br />               ::<span style="color: #000000;">oDevice</span>:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nRow</span>,;<br />                              ::<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> nFor <span style="color: #000000;">&#93;</span> - <span style="color: #000000;">1</span>,;<br />                              cLeft,;<br />                              ::<span style="color: #000000;">aFont</span><span style="color: #000000;">&#91;</span>eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bStdFont</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#93;</span>,<span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />            <span style="color: #00C800;">endif</span><br /><br />            <span style="color: #00C800;">if</span> nfor == nColumns .and. ::<span style="color: #000000;">aColumns</span><span style="color: #000000;">&#91;</span> nFor <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lGrid</span><br />               ::<span style="color: #000000;">oDevice</span>:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nRow</span>,;<br />                              ::<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> nFor <span style="color: #000000;">&#93;</span>+ ::<span style="color: #000000;">aColumns</span><span style="color: #000000;">&#91;</span> nFor <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nWidth</span>,;<br />                              cRight,;<br />                              ::<span style="color: #000000;">aFont</span><span style="color: #000000;">&#91;</span> Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bStdFont</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#93;</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />            <span style="color: #00C800;">endif</span><br />         <span style="color: #00C800;">next</span></div>[/code:3pqau4se]
clase VLC para crear un player - algunos problemas
Estimados amigos, estoy intentando hacerme un player tipo frontend que use el programa vcl de forma interna. En este caso uso el control activex el caso es que tengo problemas para reproducir archivo cuyo nombre tenga letras acentuadas o la letra eñe por ejemplo. me parece que es un problema del control activex, yq ue tengo lo mismo hecho con vfp y va de lujo. en el metodo SetFile tengo esto [quote:3khmar8u]::oControl:playlist:add( "File:///" + cFileName )[/quote:3khmar8u] que es donde me parece se da el problema. alguna ayuda. la verdad me gustaria usar el modo api en c, pero no tengo idea de como iniciar, ya tengo las lib para bcc73 extraida del vlclib.dll pero nada mas. Mi idea es hacer un programa para rokonolas digitales, que use vlc como reproductor interno... aca con fwh [img:3khmar8u]https&#58;//i&#46;imgur&#46;com/34rLNum&#46;png[/img:3khmar8u] aca con vfp [img:3khmar8u]https&#58;//i&#46;imgur&#46;com/WvJhdaR&#46;png[/img:3khmar8u] [code=fw:3khmar8u]<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: #00D7D7;">#define</span> <span style="color: #00C800;">TRUE</span>    .t.<br /><span style="color: #00D7D7;">#define</span> <span style="color: #00C800;">FALSE</span>   .f.<br /><br /><span style="color: #B900B9;">/*---------------------------------------------------------------------------------------------*/</span><br /><br />PROCEDURE Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br />   <span style="color: #00C800;">LOCAL</span> oIcon, oVLCX<br /><br />   <span style="color: #00C800;">PRIVATE</span> oWndMP<br />   <span style="color: #00C800;">PRIVATE</span> oVlc <br />   <span style="color: #00C800;">PRIVATE</span> cInfoFN, oInfoFN<br />   <br />   cInfoFN := <span style="color: #ff0000;">"INFO"</span><br />   <br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">ICON</span> oIcon FILE <span style="color: #ff0000;">"d:<span style="color: #000000;">\v</span>lc_foxpro<span style="color: #000000;">\i</span>mages<span style="color: #000000;">\m</span>yplayer.ico"</span><br />   <br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWndMP <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">600</span>, <span style="color: #000000;">800</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"MyPlayer"</span> <span style="color: #0000ff;">ICON</span> oIcon <span style="color: #0000ff;">PIXEL</span> <span style="color: #B900B9;">//NOMAXIMIZE</span><br />     <br />   @ <span style="color: #000000;">010</span>, <span style="color: #000000;">010</span> ACTIVEX oVLCX <span style="color: #0000ff;">OF</span> oWndMP PROGID <span style="color: #ff0000;">"VideoLAN.VLCPlugin.2"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">600</span>, <span style="color: #000000;">460</span><br />   <br />   @ <span style="color: #000000;">010</span>, <span style="color: #000000;">620</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Abrir archivo"</span> <span style="color: #0000ff;">OF</span> oWndMP <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">24</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> MP_LoadFile<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   @ <span style="color: #000000;">040</span>, <span style="color: #000000;">620</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Play"</span>          <span style="color: #0000ff;">OF</span> oWndMP <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">24</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> oVlc:<span style="color: #000000;">Play</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   @ <span style="color: #000000;">070</span>, <span style="color: #000000;">620</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Pause"</span>         <span style="color: #0000ff;">OF</span> oWndMP <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">24</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> oVlc:<span style="color: #00C800;">Pause</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   @ <span style="color: #000000;">100</span>, <span style="color: #000000;">620</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Stop"</span>          <span style="color: #0000ff;">OF</span> oWndMP <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">24</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> oVlc:<span style="color: #000000;">Stop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <br />   @ <span style="color: #000000;">150</span>, <span style="color: #000000;">620</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Vol +"</span>         <span style="color: #0000ff;">OF</span> oWndMP <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">24</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> oVlc:<span style="color: #000000;">VolumenPlus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   @ <span style="color: #000000;">180</span>, <span style="color: #000000;">620</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Vol -"</span>         <span style="color: #0000ff;">OF</span> oWndMP <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">24</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> oVlc:<span style="color: #000000;">VolumenMinus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <br />   @ <span style="color: #000000;">480</span>, <span style="color: #000000;">010</span> <span style="color: #0000ff;">GET</span> oInfoFN <span style="color: #0000ff;">VAR</span> cInfoFN <span style="color: #0000ff;">OF</span> oWndMP <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">600</span>, <span style="color: #000000;">40</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">WHEN</span> <span style="color: #00C800;">FALSE</span> MEMO<br />   <br />   <span style="color: #B900B9;">//oInfoFN:lDisColors  := FALSE</span><br />   <span style="color: #B900B9;">//oInfoFN:nClrTextDis := CLR_YELLOW</span><br />   <span style="color: #B900B9;">//oInfoFN:nClrPaneDis := CLR_HRED</span><br />   <br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWndMP <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> MP_OnInit<span style="color: #000000;">&#40;</span> oVLCX <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">CENTER</span><br /><br />   <span style="color: #B900B9;">//oVLC_Control:End()</span><br />   oWndMP:<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><br /><br /><span style="color: #B900B9;">/*---------------------------------------------------------------------------------------------*/</span><br /><br />PROCEDURE MP_OnInit<span style="color: #000000;">&#40;</span> oVLCX <span style="color: #000000;">&#41;</span><br />   oVlc := TVlc<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span> oVLCX <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span><br /><br /><span style="color: #B900B9;">/*---------------------------------------------------------------------------------------------*/</span><br /><br />PROCEDURE MP_LoadFile<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> cFileName := cGetFile<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Video |*.mp4|Musica |*.mp3"</span>, <span style="color: #ff0000;">"Selecione medio"</span>, <span style="color: #00C800;">nil</span>, <span style="color: #ff0000;">""</span>, .f., .t. <span style="color: #000000;">&#41;</span><br />   oVlc:<span style="color: #000000;">SetFile</span><span style="color: #000000;">&#40;</span> cFileName <span style="color: #000000;">&#41;</span><br />   oInfoFN:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span> cFileName <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span><br /><br /><span style="color: #B900B9;">/*---------------------------------------------------------------------------------------------*/</span><br /><br /><span style="color: #00C800;">CLASS</span> TVlc<br />   <span style="color: #00C800;">DATA</span> oControl<br />   <span style="color: #00C800;">DATA</span> nStepVolume, nVolumen<br />   <br />   <span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oControl <span style="color: #000000;">&#41;</span> CONSTRUCTOR<br />   <span style="color: #00C800;">METHOD</span> GetVersion<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">METHOD</span> SetFile<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">METHOD</span> IsPlaying<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">METHOD</span> Play<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">Pause</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">METHOD</span> Stop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">METHOD</span> GetLength<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">METHOD</span> GetPosition<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">METHOD</span> GetTimePos<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">METHOD</span> FullScreen<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">METHOD</span> VolumenPlus<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">METHOD</span> VolumenMinus<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><span style="color: #B900B9;">/*---------------------------------------------------------------------------------------------*/</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oControl <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TVlc<br />   <span style="color: #00C800;">IF</span> hb_isObject<span style="color: #000000;">&#40;</span> oControl <span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">nVolumen</span> := <span style="color: #000000;">50</span><br />      ::<span style="color: #000000;">nStepVolume</span> := <span style="color: #000000;">2</span><br /><br />      ::<span style="color: #000000;">oControl</span> := oControl<br />      ::<span style="color: #000000;">oControl</span>:<span style="color: #000000;">Toolbar</span>  := .f.<br />      ::<span style="color: #000000;">oControl</span>:<span style="color: #000000;">volume</span>   := <span style="color: #000000;">50</span>   <br />   <span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Self</span><br /><br /><span style="color: #B900B9;">/*---------------------------------------------------------------------------------------------*/</span><br /><br /><span style="color: #00C800;">METHOD</span> GetVersion<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TVlc<br /><span style="color: #00C800;">RETURN</span> ::<span style="color: #000000;">oControl</span>:<span style="color: #000000;">GetVersionInfo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">/*---------------------------------------------------------------------------------------------*/</span><br /><br /><span style="color: #00C800;">METHOD</span> SetFile<span style="color: #000000;">&#40;</span> cFileName <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TVlc<br />   <span style="color: #00C800;">LOCAL</span> lRet := .f.<br />   <span style="color: #00C800;">IF</span> !empty<span style="color: #000000;">&#40;</span> cFileName <span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">oControl</span>:<span style="color: #000000;">playlist</span>:<span style="color: #0000ff;">items</span>:<span style="color: #000000;">clear</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">oControl</span>:<span style="color: #000000;">playlist</span>:<span style="color: #000000;">add</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"File:///"</span> + cFileName <span style="color: #000000;">&#41;</span><br />      lRet := .t.<br />   <span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">RETURN</span> lRet<br /><br /><span style="color: #B900B9;">/*---------------------------------------------------------------------------------------------*/</span><br /><br /><span style="color: #00C800;">METHOD</span> IsPlaying<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TVlc<br /><span style="color: #00C800;">RETURN</span> ::<span style="color: #000000;">oControl</span>:<span style="color: #000000;">playlist</span>:<span style="color: #000000;">IsPlaying</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">/*---------------------------------------------------------------------------------------------*/</span><br /><br /><span style="color: #00C800;">METHOD</span> Play<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TVlc<br />   <span style="color: #00C800;">IF</span> !::<span style="color: #000000;">IsPlaying</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">oControl</span>:<span style="color: #000000;">playlist</span>:<span style="color: #000000;">play</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">/*---------------------------------------------------------------------------------------------*/</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">Pause</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TVlc<br />   <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">IsPlaying</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">oControl</span>:<span style="color: #000000;">playlist</span>:<span style="color: #00C800;">pause</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">/*---------------------------------------------------------------------------------------------*/</span><br /><br /><span style="color: #00C800;">METHOD</span> Stop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TVlc<br />   <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">IsPlaying</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">oControl</span>:<span style="color: #000000;">playlist</span>:<span style="color: #000000;">stop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">ENDIF</span>   <br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">/*---------------------------------------------------------------------------------------------*/</span><br /><br /><span style="color: #00C800;">METHOD</span> GetLength<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TVlc<br /><span style="color: #00C800;">RETURN</span> ::<span style="color: #000000;">oControl</span>:<span style="color: #000000;">input</span>:<span style="color: #000000;">length</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">/*---------------------------------------------------------------------------------------------*/</span><br /><br /><span style="color: #00C800;">METHOD</span> GetPosition<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TVlc<br /><span style="color: #00C800;">RETURN</span> ::<span style="color: #000000;">oControl</span>:<span style="color: #000000;">input</span>:<span style="color: #000000;">position</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">/*---------------------------------------------------------------------------------------------*/</span><br /><br /><span style="color: #00C800;">METHOD</span> GetTimePos<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TVlc<br /><span style="color: #00C800;">RETURN</span> ::<span style="color: #000000;">oControl</span>:<span style="color: #000000;">input</span>:<span style="color: #000000;">time</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">/*---------------------------------------------------------------------------------------------*/</span><br /><br /><span style="color: #00C800;">METHOD</span> FullScreen<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TVlc<br />   ::<span style="color: #000000;">oControl</span>:<span style="color: #000000;">video</span>:<span style="color: #000000;">toggleFullscreen</span><span style="color: #000000;">&#40;</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: #B900B9;">/*---------------------------------------------------------------------------------------------*/</span><br /><br /><span style="color: #00C800;">METHOD</span> VolumenPlus<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TVlc<br />   <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">nVolumen</span> < <span style="color: #000000;">100</span><br />      ::<span style="color: #000000;">nVolumen</span> := ::<span style="color: #000000;">nVolumen</span> + ::<span style="color: #000000;">nStepVolume</span><br />      <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">nVolumen</span>><span style="color: #000000;">100</span><br />         ::<span style="color: #000000;">nVolumen</span> := <span style="color: #000000;">100</span>   <br />      <span style="color: #00C800;">ENDIF</span><br />      ::<span style="color: #000000;">oControl</span>:<span style="color: #000000;">volume</span> := ::<span style="color: #000000;">nVolumen</span><br />   <span style="color: #00C800;">ENDIF</span>  <br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span> <br /> <br /><span style="color: #B900B9;">/*---------------------------------------------------------------------------------------------*/</span><br /><br /><span style="color: #00C800;">METHOD</span> VolumenMinus<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TVlc<br />   <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">nVolumen</span> > <span style="color: #000000;">0</span><br />      ::<span style="color: #000000;">nVolumen</span> := ::<span style="color: #000000;">nVolumen</span> - ::<span style="color: #000000;">nStepVolume</span><br />      <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">nVolumen</span> < <span style="color: #000000;">0</span><br />         ::<span style="color: #000000;">nVolumen</span> := <span style="color: #000000;">0</span><br />      <span style="color: #00C800;">ENDIF</span><br />      ::<span style="color: #000000;">oControl</span>:<span style="color: #000000;">volume</span> := ::<span style="color: #000000;">nVolumen</span><br />   <span style="color: #00C800;">ENDIF</span>  <br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span> <br /> <br /><span style="color: #B900B9;">/*---------------------------------------------------------------------------------------------*/</span><br /><br /><br /> </div>[/code:3khmar8u]
clase VLC para crear un player - algunos problemas
Carlos, El mensaje que usa las letras acentuadas ó eñe es enviado a un objeto OLE y no al activex&#058; ::oControl:playlist:add( "File:///" + cFileName ) La función que se usa es hb_oleItemToString() en harbour/contrib/hbwin/olecore.c y esa función debe usar codepages de Harbour Estas usando el codepage adecuado ? REQUEST HB_Lang_ESWIN, HB_CODEPAGE_ESWIN HB_LangSelect( "ESWIN" ) HB_SetCodePage( "ESWIN" )
clase VLC para crear un player - algunos problemas
Mil Gracia antonio, era eso que indicabas <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Antonio, fijate que me gustaria usar el modo api, en lugar del activex, [url:3v2b5ze2]https&#58;//wiki&#46;videolan&#46;org/LibVLC_Visual_C/[/url:3v2b5ze2], ya tengo la dll, el encabezado (archivos .h del api), las lib para bc compiler. una la extraje directamente con implib, la otra la extraje usando impdef, y la tercera, la igual con impdef pero agregando un gion a los nombres de las funciones. mas de alguna de las lib funciona, pero el caso es que no tengo idea como iniciar, si me pudieras ayudar, con el inicio yo continuaria el desarrollo, mi intencion es la clase TVlc. aca esta lo que tengo hasta el momento:[url:3v2b5ze2]http&#58;//castillolawyers&#46;zapto&#46;org/owncloud/index&#46;php/s/uyfkrLsNCoBPfEB[/url:3v2b5ze2] aca funcionando con activex con los cambios que me indicaste. [code=fw:3v2b5ze2]<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: #00D7D7;">#define</span> <span style="color: #00C800;">TRUE</span> &nbsp; &nbsp;.t.<br /><span style="color: #00D7D7;">#define</span> <span style="color: #00C800;">FALSE</span> &nbsp; .f.<br /><br /><span style="color: #B900B9;">/*---------------------------------------------------------------------------------------------*/</span><br /><br />REQUEST HB_Lang_ESWIN, HB_CODEPAGE_ESWIN<br /><br />PROCEDURE Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oIcon, oVLCX<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">PRIVATE</span> oWndMP<br />&nbsp; &nbsp;<span style="color: #00C800;">PRIVATE</span> oVlc <br />&nbsp; &nbsp;<span style="color: #00C800;">PRIVATE</span> cInfoFN, oInfoFN<br /><br />&nbsp; &nbsp;HB_LangSelect<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ESWIN"</span> <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp;HB_SetCodePage<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ESWIN"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;cInfoFN := <span style="color: #ff0000;">"INFO"</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">ICON</span> oIcon FILE <span style="color: #ff0000;">"d:<span style="color: #000000;">\v</span>lc_foxpro<span style="color: #000000;">\i</span>mages<span style="color: #000000;">\m</span>yplayer.ico"</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWndMP <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">600</span>, <span style="color: #000000;">800</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"MyPlayer"</span> <span style="color: #0000ff;">ICON</span> oIcon <span style="color: #0000ff;">PIXEL</span> <span style="color: #B900B9;">//NOMAXIMIZE</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;@ <span style="color: #000000;">010</span>, <span style="color: #000000;">010</span> ACTIVEX oVLCX <span style="color: #0000ff;">OF</span> oWndMP PROGID <span style="color: #ff0000;">"VideoLAN.VLCPlugin.2"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">600</span>, <span style="color: #000000;">460</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;@ <span style="color: #000000;">010</span>, <span style="color: #000000;">620</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Abrir archivo"</span> <span style="color: #0000ff;">OF</span> oWndMP <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">24</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> MP_LoadFile<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">040</span>, <span style="color: #000000;">620</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Play"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">OF</span> oWndMP <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">24</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> oVlc:<span style="color: #000000;">Play</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;@ <span style="color: #000000;">070</span>, <span style="color: #000000;">620</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Pause"</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oWndMP <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">24</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> oVlc:<span style="color: #00C800;">Pause</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;@ <span style="color: #000000;">100</span>, <span style="color: #000000;">620</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Stop"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">OF</span> oWndMP <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">24</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> oVlc:<span style="color: #000000;">Stop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;@ <span style="color: #000000;">150</span>, <span style="color: #000000;">620</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Vol +"</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oWndMP <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">24</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> oVlc:<span style="color: #000000;">VolumenPlus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;@ <span style="color: #000000;">180</span>, <span style="color: #000000;">620</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Vol -"</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oWndMP <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">24</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> oVlc:<span style="color: #000000;">VolumenMinus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;@ <span style="color: #000000;">480</span>, <span style="color: #000000;">010</span> <span style="color: #0000ff;">GET</span> oInfoFN <span style="color: #0000ff;">VAR</span> cInfoFN <span style="color: #0000ff;">OF</span> oWndMP <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">600</span>, <span style="color: #000000;">40</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">WHEN</span> <span style="color: #00C800;">FALSE</span> MEMO<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #B900B9;">//oInfoFN:lDisColors &nbsp;:= FALSE</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">//oInfoFN:nClrTextDis := CLR_YELLOW</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">//oInfoFN:nClrPaneDis := CLR_HRED</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWndMP <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> MP_OnInit<span style="color: #000000;">&#40;</span> oVLCX <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">CENTER</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//oVLC_Control:End()</span><br />&nbsp; &nbsp;oWndMP:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">RETURN</span><br />&nbsp;</div>[/code:3v2b5ze2]
clase VLC para crear un player - algunos problemas
Carlos, Podrias empezar así: [code=fw:1ve86jnj]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><span style="color: #00D7D7;">#include</span> <vlc.h><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> VLC_CREATE <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   hb_retnl<span style="color: #000000;">&#40;</span> VLC_Create<span style="color: #000000;">&#40;</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: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> VLC_INIT <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   char ** pCommands = <span style="color: #000000;">&#40;</span> char ** <span style="color: #000000;">&#41;</span> hb_xgrab<span style="color: #000000;">&#40;</span> sizeof<span style="color: #000000;">&#40;</span> char * <span style="color: #000000;">&#41;</span> * hb_parinfa<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />   int i;<br /><br />   <span style="color: #00C800;">for</span><span style="color: #000000;">&#40;</span> i = <span style="color: #000000;">0</span>; i < hb_parinfa<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>; i++ <span style="color: #000000;">&#41;</span><br />      pCommands<span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span> = hb_parvc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, i + <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br /><br />   hb_retnl<span style="color: #000000;">&#40;</span> VLC_Init<span style="color: #000000;">&#40;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, pCommands <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />   hb_xfree<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> void * <span style="color: #000000;">&#41;</span> pCommands <span style="color: #000000;">&#41;</span>; <br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP</div>[/code:1ve86jnj]