topic
stringlengths
1
63
text
stringlengths
1
577k
Best current xBrowse doc/sample
Thanks Uwe, That looks really helpfull - I started to write a generic xBrowse function where it gets the contents of the fields to display from a dbf file, allowing the users to configure their own browses, but due to problems with xHarbour enterprise i havent been able to finish this. Hopefully, i can finish this function and use your program to enhance it further <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Best regards, Pete
Best current xBrowse doc/sample
Hello Peter, With the Tools, You can save Your Settings to a Project-Database. Inside Your Application, You can call the Record for Your xbrowse, to load the Var's for Your Browser like Colors, Bmp's... [img:3b9lesbl]http&#58;//www&#46;pflegeplus&#46;com/pictures/xbrwtools50&#46;jpg[/img:3b9lesbl] Best Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
Best current xBrowse doc/sample
Thank you for the input.
Best current xBrowse doc/sample
Hello Tim, If anybody wants to include the Tools and Database to a Software-package, there is no problem. The Database includes var's for the Dialogs ( + Buttonbar ), where the xbrowse is shown, as well. DLG_COLOR1 = 1. Color DLG_COLOR2 = 2. Color for Gradient DLG_STYLE1 = Dialog-Color-Style ( Mono or Gradient ) LOGO3 = Background-Image BARWIDTH = Width of Buttonbar BARHIGHT = Hight of Buttonbar [img:2y0b3fhd]http&#58;//www&#46;pflegeplus&#46;com/pictures/xBrwDlg&#46;jpg[/img:2y0b3fhd] It is possible for the next Update to include some more Dialog-vars like Styles : BRICKS, BORLAND and TILED ( will be included in Browser : Dialog-Background-Style Pos. 7, 8 and 9 ) Maybe to delete the Bar-settings ( Width and Hight ) ? I think, it doesn't make sense, because the user doesn't know the Dialog-Size ( it is up to the programmer ) The free space in this Folder, could be used for other extensions. With the new [color=#FF0000:2y0b3fhd]IMPORT-Button [/color:2y0b3fhd]inside the Template-Manager, You can open the Project-Dialog and save a Template to a selected Browser inside Your Software. 1. Open the Project-manager from the Toolbar with SELECT 2. Select the Template You want to use for a Browser 3. Select the Browser, You want to import the Template 4. Save the Values to the Browser with the Button < IMPORT > Inside Your Software, You jump to the Record of the Project-Database to use the Values for the Browser. There is a new Fieldname-overview, how to use the Var's for the Browsers inside Your Software. [img:2y0b3fhd]http&#58;//www&#46;pflegeplus&#46;com/pictures/xBrwTools52&#46;jpg[/img:2y0b3fhd] I think with these changes, it comes close to the solution, Peter wants to do : Creating a user-definded xBrowse. A Test-Dialog with Browser, works complete with Var's from the Database : [code=fw:2y0b3fhd]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">//-----------  xBrowse - Test, using Var's from the Project-DBF -----------------//</span><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> Test_Browse5<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> oDlg5, oLbx30, oBrush5, oBmp5<br /><span style="color: #00C800;">Local</span> cAlias := cGetNewAlias<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CUST"</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> oBmp1, nBMPheight<br /><span style="color: #00C800;">LOCAL</span> oHeadFont, oBrwFont, oFootFont<br /><br />nFOR := <span style="color: #000000;">1</span><br /><br /><span style="color: #00C800;">IF</span> aFONT1_3  = .T. .and. aFONT1_4  = .T.<br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oHeadFont <span style="color: #0000ff;">NAME</span> aFONT1_1  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, aFONT1_2  BOLD ITALIC<br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">IF</span> aFONT1_3  = .F. .and. aFONT1_4  = .F.<br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oHeadFont <span style="color: #0000ff;">NAME</span> aFONT1_1  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, aFONT1_2  <br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">IF</span> aFONT1_3  = .T. .and. aFONT1_4  = .F.<br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oHeadFont <span style="color: #0000ff;">NAME</span> aFONT1_1  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, aFONT1_2  BOLD <br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">IF</span> aFONT1_3  = .F. .and. aFONT1_4  = .T.<br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oHeadFont <span style="color: #0000ff;">NAME</span> aFONT1_1  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, aFONT1_2  ITALIC<br /><span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">IF</span> aFONT2_3  = .T. .and. aFONT2_4  = .T.<br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oBrwFont <span style="color: #0000ff;">NAME</span> aFONT2_1  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, aFONT2_2  BOLD ITALIC<br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">IF</span> aFONT2_3  = .F. .and. aFONT2_4  = .F.<br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oBrwFont <span style="color: #0000ff;">NAME</span> aFONT2_1  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, aFONT2_2  <br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">IF</span> aFONT2_3  = .T. .and. aFONT2_4  = .F.<br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oBrwFont <span style="color: #0000ff;">NAME</span> aFONT2_1  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, aFONT2_2  BOLD <br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">IF</span> aFONT2_3  = .F. .and. aFONT2_4  = .T.<br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oBrwFont <span style="color: #0000ff;">NAME</span> aFONT2_1  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, aFONT2_2  ITALIC<br /><span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">IF</span> aFONT3_3  = .T. .and. aFONT3_4  = .T.<br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFootFont <span style="color: #0000ff;">NAME</span> aFONT3_1  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, aFONT3_2  BOLD ITALIC<br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">IF</span> aFONT3_3  = .F. .and. aFONT3_4  = .F.<br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFootFont <span style="color: #0000ff;">NAME</span> aFONT3_1  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, aFONT3_2  <br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">IF</span> aFONT3_3  = .T. .and. aFONT3_4  = .F.<br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFootFont <span style="color: #0000ff;">NAME</span> aFONT3_1  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, aFONT3_2  BOLD <br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">IF</span> aFONT3_3  = .F. .and. aFONT3_4  = .T.<br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFootFont <span style="color: #0000ff;">NAME</span> aFONT3_1  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, aFONT3_2  ITALIC<br /><span style="color: #00C800;">ENDIF</span><br /><br />REQUEST DBFCDX<br />DBSELECTAREA<span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span><br />USE CUSTOMER <span style="color: #00C800;">NEW</span> <span style="color: #0000ff;">ALIAS</span> <span style="color: #000000;">&#40;</span>cAlias<span style="color: #000000;">&#41;</span> SHARED VIA <span style="color: #ff0000;">"DBFCDX"</span><br />GO TOP<br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg5 <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"TESTSOURCE"</span> <br /><br />oLbx30 := TXBrowse<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oDlg5 <span style="color: #000000;">&#41;</span><br />nBMPheight := oLbx30:<span style="color: #000000;">nRowHeight</span><br /><br /><span style="color: #00C800;">IF</span> BR_STYLE = <span style="color: #000000;">1</span><br />    <span style="color: #00C800;">IF</span> BR_LINE = <span style="color: #000000;">1</span><br />        oLbx30:<span style="color: #000000;">nColDividerStyle</span>  := LINESTYLE_BLACK<br />        oLbx30:<span style="color: #000000;">nRowDividerStyle</span> := LINESTYLE_BLACK<br />    <span style="color: #00C800;">ENDIF</span><br />    <span style="color: #00C800;">IF</span> BR_LINE = <span style="color: #000000;">2</span><br />        oLbx30:<span style="color: #000000;">nColDividerStyle</span>  := LINESTYLE_DARKGRAY<br />        oLbx30:<span style="color: #000000;">nRowDividerStyle</span> := LINESTYLE_DARKGRAY<br />    <span style="color: #00C800;">ENDIF</span><br />    <span style="color: #00C800;">IF</span> BR_LINE = <span style="color: #000000;">3</span><br />        oLbx30:<span style="color: #000000;">nColDividerStyle</span>  := LINESTYLE_FORECOLOR<br />        oLbx30:<span style="color: #000000;">nRowDividerStyle</span> := LINESTYLE_FORECOLOR<br />    <span style="color: #00C800;">ENDIF</span><br />    <span style="color: #00C800;">IF</span> BR_LINE = <span style="color: #000000;">4</span><br />        oLbx30:<span style="color: #000000;">nColDividerStyle</span>  := LINESTYLE_LIGHTGRAY<br />        oLbx30:<span style="color: #000000;">nRowDividerStyle</span> := LINESTYLE_LIGHTGRAY<br />    <span style="color: #00C800;">ENDIF</span><br />    <span style="color: #00C800;">IF</span> BR_LINE = <span style="color: #000000;">5</span><br />        oLbx30:<span style="color: #000000;">nColDividerStyle</span>  := LINESTYLE_INSET<br />        oLbx30:<span style="color: #000000;">nRowDividerStyle</span> := LINESTYLE_INSET<br />    <span style="color: #00C800;">ENDIF</span><br />    <span style="color: #00C800;">IF</span> BR_LINE = <span style="color: #000000;">6</span><br />        oLbx30:<span style="color: #000000;">nColDividerStyle</span>  := LINESTYLE_RAISED<br />        oLbx30:<span style="color: #000000;">nRowDividerStyle</span> := LINESTYLE_RAISED<br />    <span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">IF</span> BR_STYLE = <span style="color: #000000;">2</span><br />    oLbx30:<span style="color: #000000;">nColDividerStyle</span>  := LINESTYLE_NOLINES       <br />    <span style="color: #00C800;">IF</span> BR_LINE = <span style="color: #000000;">1</span><br />        oLbx30:<span style="color: #000000;">nRowDividerStyle</span> := LINESTYLE_BLACK<br />    <span style="color: #00C800;">ENDIF</span><br />    <span style="color: #00C800;">IF</span> BR_LINE = <span style="color: #000000;">2</span><br />        oLbx30:<span style="color: #000000;">nRowDividerStyle</span> := LINESTYLE_DARKGRAY<br />    <span style="color: #00C800;">ENDIF</span><br />    <span style="color: #00C800;">IF</span> BR_LINE = <span style="color: #000000;">3</span><br />        oLbx30:<span style="color: #000000;">nRowDividerStyle</span> := LINESTYLE_FORECOLOR<br />    <span style="color: #00C800;">ENDIF</span><br />    <span style="color: #00C800;">IF</span> BR_LINE = <span style="color: #000000;">4</span><br />        oLbx30:<span style="color: #000000;">nRowDividerStyle</span> := LINESTYLE_LIGHTGRAY<br />    <span style="color: #00C800;">ENDIF</span><br />    <span style="color: #00C800;">IF</span> BR_LINE = <span style="color: #000000;">5</span><br />        oLbx30:<span style="color: #000000;">nRowDividerStyle</span> := LINESTYLE_INSET<br />    <span style="color: #00C800;">ENDIF</span><br />    <span style="color: #00C800;">IF</span> BR_LINE = <span style="color: #000000;">6</span><br />        oLbx30:<span style="color: #000000;">nRowDividerStyle</span> := LINESTYLE_RAISED<br />    <span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">IF</span> BR_STYLE = <span style="color: #000000;">3</span><br />    oLbx30:<span style="color: #000000;">nRowDividerStyle</span>  := LINESTYLE_NOLINES<br />    <span style="color: #00C800;">IF</span> BR_LINE = <span style="color: #000000;">1</span><br />        oLbx30:<span style="color: #000000;">nColDividerStyle</span>  := LINESTYLE_BLACK<br />    <span style="color: #00C800;">ENDIF</span><br />    <span style="color: #00C800;">IF</span> BR_LINE = <span style="color: #000000;">2</span><br />        oLbx30:<span style="color: #000000;">nColDividerStyle</span>  := LINESTYLE_DARKGRAY<br />    <span style="color: #00C800;">ENDIF</span><br />    <span style="color: #00C800;">IF</span> BR_LINE = <span style="color: #000000;">3</span><br />        oLbx30:<span style="color: #000000;">nColDividerStyle</span>  := LINESTYLE_FORECOLOR<br />    <span style="color: #00C800;">ENDIF</span><br />    <span style="color: #00C800;">IF</span> BR_LINE = <span style="color: #000000;">4</span><br />        oLbx30:<span style="color: #000000;">nColDividerStyle</span>  := LINESTYLE_LIGHTGRAY<br />    <span style="color: #00C800;">ENDIF</span><br />    <span style="color: #00C800;">IF</span> BR_LINE = <span style="color: #000000;">5</span><br />        oLbx30:<span style="color: #000000;">nColDividerStyle</span>  := LINESTYLE_INSET<br />    <span style="color: #00C800;">ENDIF</span><br />    <span style="color: #00C800;">IF</span> BR_LINE = <span style="color: #000000;">6</span><br />        oLbx30:<span style="color: #000000;">nColDividerStyle</span>  := LINESTYLE_RAISED<br />    <span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">IF</span> BR_STYLE = <span style="color: #000000;">4</span><br />    oLbx30:<span style="color: #000000;">nRowDividerStyle</span> := LINESTYLE_NOLINES<br />    oLbx30:<span style="color: #000000;">nColDividerStyle</span>  := LINESTYLE_NOLINES       <br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">IF</span> BR_STYLE < <span style="color: #000000;">4</span><br />    <span style="color: #00C800;">IF</span> BR_CELL  = <span style="color: #000000;">1</span><br />        oLbx30:<span style="color: #000000;">nMarqueeStyle</span> :=  MARQSTYLE_NOMARQUEE  <br />    <span style="color: #00C800;">ENDIF</span><br />    <span style="color: #00C800;">IF</span> BR_CELL  = <span style="color: #000000;">2</span><br />        oLbx30:<span style="color: #000000;">nMarqueeStyle</span> :=  MARQSTYLE_DOTEDCELL  <br />    <span style="color: #00C800;">ENDIF</span><br />    <span style="color: #00C800;">IF</span> BR_CELL  = <span style="color: #000000;">3</span><br />        oLbx30:<span style="color: #000000;">nMarqueeStyle</span> :=  MARQSTYLE_SOLIDCELL<br />    <span style="color: #00C800;">ENDIF</span><br />    <span style="color: #00C800;">IF</span> BR_CELL  = <span style="color: #000000;">4</span><br />        oLbx30:<span style="color: #000000;">nMarqueeStyle</span> :=  MARQSTYLE_HIGHLCELL   <br />    <span style="color: #00C800;">ENDIF</span><br />    <span style="color: #00C800;">IF</span> BR_CELL  = <span style="color: #000000;">5</span><br />        oLbx30:<span style="color: #000000;">nMarqueeStyle</span> :=  MARQSTYLE_HIGHLROWRC<br />    <span style="color: #00C800;">ENDIF</span><br />    <span style="color: #00C800;">IF</span> BR_CELL  = <span style="color: #000000;">6</span><br />        oLbx30:<span style="color: #000000;">nMarqueeStyle</span> :=  MARQSTYLE_HIGHLROW<br />    <span style="color: #00C800;">ENDIF</span><br />    <span style="color: #00C800;">IF</span> BR_CELL  = <span style="color: #000000;">7</span><br />        oLbx30:<span style="color: #000000;">nMarqueeStyle</span> :=  MARQSTYLE_HIGHLROWMS<br />    <span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #B900B9;">// HEADER GADIENT ON / OFF</span><br /><span style="color: #B900B9;">// ---------------------------------------</span><br /><span style="color: #00C800;">IF</span> HEADGRAD = <span style="color: #000000;">1</span><br />    oLbx30:<span style="color: #000000;">l2007</span> := .T.<br />    oLbx30:<span style="color: #000000;">bClrGrad</span> := <span style="color: #000000;">&#123;</span> | lInvert | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ! lInvert, ;<br />    <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> MOVE1, BR_COLOR1, BR_COLOR2 <span style="color: #000000;">&#125;</span>, ;<br />         <span style="color: #000000;">&#123;</span> MOVE1, BR_COLOR2, BR_COLOR1 <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>, ;<br />        <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> MOVE2, BR_MCOLOR, BR_COLOR2 <span style="color: #000000;">&#125;</span>, ;<br />         <span style="color: #000000;">&#123;</span> MOVE2, BR_COLOR2, BR_MCOLOR <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />        oLbx30:<span style="color: #000000;">bClrHeader</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> BR_THCOLOR, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />    <span style="color: #00C800;">IF</span> FOOTER = <span style="color: #000000;">1</span><br />        oLbx30:<span style="color: #000000;">bClrFooter</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> BR_TFCOLOR, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <br />    <span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">ELSE</span><br />    oLbx30:<span style="color: #000000;">bClrGrad</span> := <span style="color: #00C800;">NIL</span><br />    oLbx30:<span style="color: #000000;">l2007</span> := .F.<br /><span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #B900B9;">// Color-Set</span><br /><span style="color: #B900B9;">// -------------------------------------------------</span><br />oLbx30:<span style="color: #000000;">bClrSelFocus</span> = <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> SELTCOLOR, SELBCOLOR <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>  <br /><br /><span style="color: #00C800;">IF</span> SELECTOR = <span style="color: #000000;">1</span><br />    <span style="color: #B900B9;">// Color Record-Selector</span><br />    <span style="color: #B900B9;">// --------------------------------------</span><br />    oLbx30:<span style="color: #000000;">nRecSelColor</span> = SELCOLOR1 <br /><span style="color: #00C800;">ELSE</span><br />    oLbx30:<span style="color: #000000;">lRecordSelector</span>  := .F.<br /><span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #B900B9;">// Lost Focus Color</span><br /><span style="color: #B900B9;">// ---------------------</span><br />oLbx30:<span style="color: #000000;">bClrSel</span> = <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> SELTCOLOR, SELBCOLOR <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <br /><br /><span style="color: #00C800;">IF</span> SCROLLH = <span style="color: #000000;">1</span><br />    oLbx30:<span style="color: #000000;">lHScroll</span> := .T.<br /><span style="color: #00C800;">ELSE</span><br />    oLbx30:<span style="color: #000000;">lHScroll</span> := .F.<br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">IF</span> SCROLLV = <span style="color: #000000;">1</span><br />    oLbx30:<span style="color: #000000;">lVScroll</span> := .T.<br /><span style="color: #00C800;">ELSE</span><br />    oLbx30:<span style="color: #000000;">lVScroll</span> := .F.<br /><span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">IF</span> FOOTER = <span style="color: #000000;">1</span><br />    oLbx30:<span style="color: #000000;">lFooter</span> := .T.<br />    oLbx30:<span style="color: #000000;">nHeaderHeight</span> := BRWHEADER<br />    oLbx30:<span style="color: #000000;">nFooterHeight</span> := BRWFOOTER<br /><span style="color: #00C800;">ELSE</span><br />    oLbx30:<span style="color: #000000;">lFooter</span> := .F.<br />    oLbx30:<span style="color: #000000;">nHeaderHeight</span> := BRWHEADER<br /><span style="color: #00C800;">ENDIF</span><br /><br />oCol := oLbx30:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oCol:<span style="color: #000000;">AddResource</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CLIP"</span> <span style="color: #000000;">&#41;</span><br />oCol:<span style="color: #000000;">AddResource</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"star"</span> <span style="color: #000000;">&#41;</span><br />oCol:<span style="color: #000000;">bLClickHeader</span> = <span style="color: #000000;">&#123;</span> | nMRow, nMCol, nFlags, <span style="color: #00C800;">Self</span> | ;<br />        <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nHeadBmpNo</span> == <span style="color: #000000;">2</span>, ::<span style="color: #000000;">nHeadBmpNo</span> := <span style="color: #000000;">1</span>, ;<br />    ::<span style="color: #000000;">nHeadBmpNo</span> := <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, ::<span style="color: #000000;">oLbx30</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />oCol:<span style="color: #000000;">cHeader</span>       := <span style="color: #ff0000;">"CLIP"</span><br />oCol:<span style="color: #000000;">nHeadBmpNo</span>    := <span style="color: #000000;">1</span><br />oCol:<span style="color: #000000;">nHeadBmpAlign</span> := AL_RIGHT<br /><br />oCol := oLbx30:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oCol:<span style="color: #000000;">bStrData</span>  := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#40;</span>cAlias<span style="color: #000000;">&#41;</span>->First<span style="color: #000000;">&#125;</span><br />oCol:<span style="color: #000000;">cHeader</span>   := <span style="color: #ff0000;">"First"</span><br />oCol:<span style="color: #000000;">cFooter</span>  := <span style="color: #ff0000;">"First"</span><br /><br />oCol := oLbx30:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#40;</span>cAlias<span style="color: #000000;">&#41;</span>->Last<span style="color: #000000;">&#125;</span><br />oCol:<span style="color: #000000;">cHeader</span>  := <span style="color: #ff0000;">"Last"</span><br />oCol:<span style="color: #000000;">cFooter</span>  := <span style="color: #ff0000;">"Last"</span><br /><span style="color: #00C800;">IF</span> !EMPTY<span style="color: #000000;">&#40;</span> LOGO2 <span style="color: #000000;">&#41;</span><br />    oCol:<span style="color: #000000;">AddBmpFile</span><span style="color: #000000;">&#40;</span>LOGO2<span style="color: #000000;">&#41;</span><br />    oCol:<span style="color: #000000;">bBmpData</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">1</span> <span style="color: #000000;">&#125;</span><br />    <span style="color: #0000ff;">DEFINE</span> BITMAP oBmp1 FILENAME LOGO2<br />    nBMPHight := oBmp1:<span style="color: #000000;">nHeight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    oBmp1:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ENDIF</span><br /><br />oCol := oLbx30:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#40;</span>cAlias<span style="color: #000000;">&#41;</span>->City<span style="color: #000000;">&#125;</span><br />oCol:<span style="color: #000000;">cHeader</span>  := <span style="color: #ff0000;">"City"</span><br />oCol:<span style="color: #000000;">cFooter</span>  := <span style="color: #ff0000;">"City"</span><br /><br />oCol := oLbx30:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#40;</span>cAlias<span style="color: #000000;">&#41;</span>->State<span style="color: #000000;">&#125;</span><br />oCol:<span style="color: #000000;">cHeader</span>  := <span style="color: #ff0000;">"State"</span><br />oCol:<span style="color: #000000;">cFooter</span>  := <span style="color: #ff0000;">"State"</span><br /><br />oCol := oLbx30:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span> || IIF<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>cAlias<span style="color: #000000;">&#41;</span>->Married, <span style="color: #ff0000;">"YES"</span>,<span style="color: #ff0000;">"NO"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><br />oCol:<span style="color: #000000;">cHeader</span>  := <span style="color: #ff0000;">"Married"</span><br />oCol:<span style="color: #000000;">cFooter</span>  := <span style="color: #ff0000;">"Married"</span><br /><br />oCol := oLbx30:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span> || DTOS<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>cAlias<span style="color: #000000;">&#41;</span>->HireDate<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><br />oCol:<span style="color: #000000;">cHeader</span>  := <span style="color: #ff0000;">"HireDate"</span><br />oCol:<span style="color: #000000;">cFooter</span>  := <span style="color: #ff0000;">"HireDate"</span><br /><br />oCol := oLbx30:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span> || STR<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>cAlias<span style="color: #000000;">&#41;</span>->Age<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><br />oCol:<span style="color: #000000;">cHeader</span>  := <span style="color: #ff0000;">"Age"</span><br />oCol:<span style="color: #000000;">cFooter</span>  := <span style="color: #ff0000;">"Age"</span><br /><br />oCol := oLbx30:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span> || STR<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>cAlias<span style="color: #000000;">&#41;</span>->Salary<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><br />oCol:<span style="color: #000000;">cHeader</span>  := <span style="color: #ff0000;">"Salary"</span><br />oCol:<span style="color: #000000;">cFooter</span>  := <span style="color: #ff0000;">"Salary"</span><br /><br />oLbx30:<span style="color: #000000;">oFont</span> := oBrwFont<br /><br />oLbx30:<span style="color: #000000;">nRowHeight</span> := BR_ROW<br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush5 <span style="color: #0000ff;">COLOR</span> SELCOLOR2 <br />oLbx30:<span style="color: #000000;">hBrushRecSel</span><span style="color: #000000;">&#40;</span> oBrush5 <span style="color: #000000;">&#41;</span><br /><span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">BRUSH</span> oBrush5<br /><span style="color: #00C800;">IF</span> !EMPTY<span style="color: #000000;">&#40;</span> BRSELECT2 <span style="color: #000000;">&#41;</span><br />    oBmp5 := ReadBitmap<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, BRSELECT2 <span style="color: #000000;">&#41;</span><br />    oLbx30:<span style="color: #000000;">hBmpRecSel</span><span style="color: #000000;">&#40;</span> oBmp5 <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ENDIF</span><br /><br />oLbx30:<span style="color: #000000;">SetRDD</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">IF</span> STRETCH = <span style="color: #000000;">2</span> .and. !EMPTY <span style="color: #000000;">&#40;</span> LOGO4 <span style="color: #000000;">&#41;</span><br />    oLbx30:<span style="color: #000000;">cBmpAdjBrush</span> := LOGO4 <br />    oLbx30:<span style="color: #000000;">SetBackGround</span><span style="color: #000000;">&#40;</span> LOGO4 <span style="color: #000000;">&#41;</span><br />    aeval<span style="color: #000000;">&#40;</span> oLbx30:<span style="color: #000000;">aCols</span>, <span style="color: #000000;">&#123;</span> |o|o:<span style="color: #000000;">lColTransparent</span> := .t. <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <br /><span style="color: #00C800;">ENDIF</span><br /><br />oLbx30:<span style="color: #000000;">CreateFromResource</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">110</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">IF</span> !EMPTY<span style="color: #000000;">&#40;</span> LOGO2 <span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">IF</span> oLbx30:<span style="color: #000000;">nRowHeight</span> < nBMPHight<br />        oLbx30:<span style="color: #000000;">nRowHeight</span> := nBMPHight + <span style="color: #000000;">4</span><br />    <span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">IF</span> !EMPTY<span style="color: #000000;">&#40;</span> LOGO1 <span style="color: #000000;">&#41;</span><br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush5 FILENAME LOGO1<br />    oLbx30:<span style="color: #000000;">SetBackGround</span><span style="color: #000000;">&#40;</span> oBrush5 <span style="color: #000000;">&#41;</span><br />    <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">BRUSH</span> oBrush5<br />    oLbx30:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ELSE</span><br />    <span style="color: #B900B9;">// COLUMN Data MONO / ALTERNATE</span><br />    <span style="color: #B900B9;">// ------------------------------------------------</span><br />    <span style="color: #00C800;">IF</span> VERTHORIZ = <span style="color: #000000;">1</span><br />        <span style="color: #00C800;">IF</span> ALTERMONO = <span style="color: #000000;">1</span><br />            aClrCol := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> ROW_TEXT, ROW_COL2 <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span> ROW_TEXT, ROW_COL1 <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />        <span style="color: #00C800;">ELSE</span><br />            aClrCol := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> ROW_TEXT, ROW_COL1 <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span> ROW_TEXT, ROW_COL1 <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />        <span style="color: #00C800;">ENDIF</span><br />        oLbx30:<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">&#123;</span> || aClrCol<span style="color: #000000;">&#91;</span> oLbx30:<span style="color: #000000;">KeyNo</span> % <span style="color: #000000;">2</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#125;</span> <br />    <span style="color: #00C800;">ELSE</span><br />        <span style="color: #B900B9;">// Column-Display</span><br />        lSELECT := .T.<br />        aClrCol := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> ROW_TEXT, COL_COLOR <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span> ROW_TEXT, ROW_COL1 <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <br />        <span style="color: #00C800;">FOR</span> nFOR := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> LEN<span style="color: #000000;">&#40;</span> oLbx30:<span style="color: #000000;">aCols</span> <span style="color: #000000;">&#41;</span><br />            <span style="color: #00C800;">IF</span> lSELECT = .T. <br />                oLbx30:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span>nFOR<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">&#123;</span> || aClrCol<span style="color: #000000;">&#91;</span> nFOR % <span style="color: #000000;">1</span> + <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#125;</span><br />                lSELECT := .F.<br />            <span style="color: #00C800;">ELSE</span><br />                oLbx30:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span>nFOR<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">&#123;</span> || aClrCol<span style="color: #000000;">&#91;</span> nFOR % <span style="color: #000000;">2</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#125;</span><br />                lSELECT := .T.<br />            <span style="color: #00C800;">ENDIF</span><br />        <span style="color: #00C800;">NEXT</span>    <br />    <span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">ENDIF</span><br /><br />i := <span style="color: #000000;">1</span><br /><span style="color: #00C800;">FOR</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> LEN<span style="color: #000000;">&#40;</span> oLbx30:<span style="color: #000000;">aCols</span> <span style="color: #000000;">&#41;</span><br />    WITH OBJECT oLbx30:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><br />        oLbx30:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">oHeaderFont</span> := oHeadFont <br />        oLbx30:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bClrHeader</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> BR_THCOLOR, BR_COLOR1 <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />        <span style="color: #00C800;">IF</span> FOOTER = <span style="color: #000000;">1</span><br />            oLbx30:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">oFooterFont</span> := oFootFont <br />            oLbx30:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bClrFooter</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> BR_TFCOLOR, BR_COLOR3 <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <br />        <span style="color: #00C800;">ENDIF</span>       <br />    END<br /><span style="color: #00C800;">NEXT</span><br /><br /><span style="color: #0000ff;">REDEFINE</span> BUTTONBMP oBtn11  <span style="color: #0000ff;">ID</span> <span style="color: #000000;">10</span> <span style="color: #0000ff;">OF</span> oDlg5 ;<br /><span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oDlg5:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />BITMAP <span style="color: #ff0000;">"Quit"</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">" Exit"</span> TEXTRIGHT<br />oBtn11:<span style="color: #000000;">cToolTip</span> =  <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Close"</span> + CRLF + ;<br />                                <span style="color: #ff0000;">"the Dialog"</span>,<span style="color: #ff0000;">"xBrowse-Preview"</span>, <span style="color: #000000;">1</span>, CLR_BLACK, <span style="color: #000000;">14089979</span> <span style="color: #000000;">&#125;</span> <br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg5 <span style="color: #0000ff;">CENTERED</span>  ;<br /><span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> DLG_BACK<span style="color: #000000;">&#40;</span> oDlg5 <span style="color: #000000;">&#41;</span> ;<br /><span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span> oDlg5:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">30</span>, <span style="color: #000000;">10</span>, oDlg5:<span style="color: #000000;">nWidth</span>, oDlg5:<span style="color: #000000;">nHeight</span>, .f. <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />DBSELECTAREA<span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span><br />NET_CLOSE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, <span style="color: #000000;">5</span>, .T. <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oHeadFont<br /><span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oBrwFont<br /><span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFootFont<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #000000;">&#40;</span> <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#41;</span>   <br /><br /><span style="color: #B900B9;">// ---------------------------------------------</span><br /><br /><span style="color: #00C800;">FUNCTION</span> DLG_BACK<span style="color: #000000;">&#40;</span> oDlg5 <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> oBrush6<br /><span style="color: #00C800;">LOCAL</span> hDC := oDlg5:<span style="color: #000000;">GetDC</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br /><br /><span style="color: #00C800;">IF</span> DLG_STYLE1 < <span style="color: #000000;">5</span><br />    gradpaint2<span style="color: #000000;">&#40;</span> hDC, oDlg5 <span style="color: #000000;">&#41;</span> <br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">IF</span> DLG_STYLE1 = <span style="color: #000000;">5</span><br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush6 <span style="color: #0000ff;">COLOR</span> DLG_COLOR1<br />    FillRect<span style="color: #000000;">&#40;</span>oDlg5:<span style="color: #000000;">hDC</span>, GetClientRect<span style="color: #000000;">&#40;</span> oDlg5:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span>, oBrush6:<span style="color: #000000;">hBrush</span> <span style="color: #000000;">&#41;</span><br />    oBrush6:<span style="color: #000000;">End</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;">IF</span> DLG_STYLE1 =  <span style="color: #000000;">6</span><br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush6 FILENAME LOGO3<br />    FillRect<span style="color: #000000;">&#40;</span>oDlg5:<span style="color: #000000;">hDC</span>, GetClientRect<span style="color: #000000;">&#40;</span> oDlg5:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span>, oBrush6:<span style="color: #000000;">hBrush</span> <span style="color: #000000;">&#41;</span><br />    oBrush6:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ENDIF</span><br /><br />oDlg5:<span style="color: #000000;">ReleaseDC</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #000000;">&#40;</span> <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#41;</span> <br /> </div>[/code:2y0b3fhd] Best Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
Best options for drag and drop pictures
Before i start this project, I want to know witch options best to use for the drag and drop system ? Xbrowse XImage The Album class posted yesterday and in samples ? Or ?? I have over 100.000 pics in a folder and the names are in a dbf. This dbf will be scooped in order to have a selection of pics to choise from. I need a target (array/dbf) where I can put the maximum of 12 pictures from the scooped pictures 'these can be max 50 pics The target files (max 12) should also be drag and drop for changing position and deleting is not wanted. My personel choice would be 2 Xbrowses and Xbrowse can handle drag and drop. Any advice in other controls before I start ?
Best options for drag and drop pictures
[quote:31ck4kwc]My personel choice would be 2 Xbrowses and Xbrowse can handle drag and drop. Any advice in other controls before I start ? [/quote:31ck4kwc] Your choice is the best.
Best options for drag and drop pictures
Mark, another option would be modharbour. [img:2j5hlru6]https&#58;//mybergland&#46;com/fwforum/dragdrop&#46;gif[/img:2j5hlru6] [code=fw:2j5hlru6]<div class="fw" id="{CB}" style="font-family: monospace;"><br />REQUEST DBFCDX<br />REQUEST DBFFPT<br /><br /><span style="color: #00C800;">static</span> hHash_DBF, aRelationship_DBF<br /><br /><span style="color: #00C800;">function</span> main<br /><span style="color: #B900B9;">// mod harbour CODE</span><br /><br />TEMPLATE PARAMS   hHash_DBF<br /><br /><!DOCTYPE html><br /><html><br /><head><br /><!-- HARBOURINO   --><br />      <br />    <title>WINHOTEL Terminverwaltung</title><br />    <meta charset=<span style="color: #ff0000;">"UTF-8"</span>><br />    <meta <span style="color: #0000ff;">name</span>=<span style="color: #ff0000;">"viewport"</span> content=<span style="color: #ff0000;">"width=device-width, initial-scale=1, shrink-to-fit=no"</span>><br />    <meta http-equiv=<span style="color: #ff0000;">"x-ua-compatible"</span> content=<span style="color: #ff0000;">"ie=edge"</span>><br />    <link rel=<span style="color: #ff0000;">"shortcut icon"</span> type=<span style="color: #ff0000;">"image/png"</span> href=<span style="color: #ff0000;">"img/favicon.ico"</span>/><br />    <br /><!-- HARBOURINO   --><br /><link href = <span style="color: #ff0000;">"https://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css"</span> rel = <span style="color: #ff0000;">"stylesheet"</span>><br /><script src = <span style="color: #ff0000;">"https://code.jquery.com/jquery-1.10.2.js"</span>></script><br /><script src = <span style="color: #ff0000;">"https://code.jquery.com/ui/1.10.4/jquery-ui.js"</span>></script><br /><script src=<span style="color: #ff0000;">"https://cdnjs.cloudflare.com/ajax/libs/jqueryui-touch-punch/0.2.3/jquery.ui.touch-punch.min.js"</span> integrity=<span style="color: #ff0000;">"sha512-0bEtK0USNd96MnO4XhH8jhv3nyRF0eK87pJke6pkYf3cM0uDIhNJy9ltuzqgypoIFXw3JSuiy04tVk4AjpZdZw=="</span> crossorigin=<span style="color: #ff0000;">"anonymous"</span>></script><br /><!-- HARBOURINO   --><br /><!-- CSS --><br /><style><br />                    <br /><br />.wrapper <span style="color: #000000;">&#123;</span><br />  margin: 40px auto;<br />  width: 600px;<br />  border: 0px solid black;<br /><span style="color: #000000;">&#125;</span><br />.pagetabs <span style="color: #000000;">&#123;</span><br />  float:<span style="color: #0000ff;">left</span>;<br />  width: <span style="color: #000000;">100</span>%;<br />  margin: <span style="color: #000000;">0</span> <span style="color: #000000;">0</span> 5px <span style="color: #000000;">0</span>;<br /><span style="color: #000000;">&#125;</span><br />.pagetab <span style="color: #000000;">&#123;</span><br />  float:<span style="color: #0000ff;">left</span>;<br />  padding: 10px;<br />  border: 1px solid black;<br />  margin: <span style="color: #000000;">0</span> 20px <span style="color: #000000;">0</span> <span style="color: #000000;">0</span>;<br /><span style="color: #000000;">&#125;</span><br />.pagetab_drop <span style="color: #000000;">&#123;</span><br />  background: #ddd;<br /><span style="color: #000000;">&#125;</span><br />.<span style="color: #0000ff;">page</span> <span style="color: #000000;">&#123;</span><br />  <span style="color: #00C800;">display</span>: <span style="color: #000000;">none</span>;<br /><span style="color: #000000;">&#125;</span><br />.page_active <span style="color: #000000;">&#123;</span><br />  <span style="color: #00C800;">display</span>: <span style="color: #000000;">block</span>;<br /><span style="color: #000000;">&#125;</span><br />.column <span style="color: #000000;">&#123;</span><br />  width: 280px;<br />  border: 1px solid orange;<br />  margin: <span style="color: #000000;">0</span> 10px <span style="color: #000000;">0</span> <span style="color: #000000;">0</span>;<br />  padding: <span style="color: #000000;">0</span> <span style="color: #000000;">0</span> 40px <span style="color: #000000;">0</span>;<br />  float:<span style="color: #0000ff;">left</span>;<br /><span style="color: #000000;">&#125;</span><br />.box <span style="color: #000000;">&#123;</span><br />  width: 280px;<br />  height: 100px;<br />  border: 1px solid blue;<br />  margin: <span style="color: #000000;">0</span> <span style="color: #000000;">0</span> 10px <span style="color: #000000;">0</span>;<br />  background: #eee;<br />  clear:<span style="color: #000000;">both</span>;<br /><span style="color: #000000;">&#125;</span><br />.place_holder <span style="color: #000000;">&#123;</span><br />  width: 280px;<br />  height: 20px;<br />  background: #ddd;<br />  margin: <span style="color: #000000;">0</span> <span style="color: #000000;">0</span> 10px <span style="color: #000000;">0</span>;<br /><span style="color: #000000;">&#125;</span><br />.clear <span style="color: #000000;">&#123;</span><br />  clear:<span style="color: #000000;">both</span>;<br /><span style="color: #000000;">&#125;</span> <br /><br /><br /></style><br /></head><br /><br /><body><br /><div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">'wrapper'</span>> <br />    <div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">'pagetabs'</span>> <br />        <div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">'pagetab'</span> <span style="color: #0000ff;">id</span>=<span style="color: #ff0000;">'tab_1'</span>>Page <span style="color: #000000;">1</span></div> <br />        <div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">'pagetab'</span> <span style="color: #0000ff;">id</span>=<span style="color: #ff0000;">'tab_2'</span>>Page <span style="color: #000000;">2</span></div> <br />    </div> <br />    <div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">'page page_active'</span> <span style="color: #0000ff;">id</span>=<span style="color: #ff0000;">'page_1'</span>> <br />        <div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">'column'</span>> <br />            <div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">'box'</span>>Box <span style="color: #000000;">1</span></div> <br />            <div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">'box'</span>>Box <span style="color: #000000;">2</span></div> <br />        </div> <br />        <div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">'column'</span>> <br />            <div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">'box'</span>>Box <span style="color: #000000;">3</span></div> <br />        </div> <br />        <div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">'clear'</span>></div> <br />    </div> <br />    <div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">'page'</span> <span style="color: #0000ff;">id</span>=<span style="color: #ff0000;">'page_2'</span>> <br />        <div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">'column'</span>> <br />            <div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">'box'</span>>Box <span style="color: #000000;">4</span></div> <br />            <br />        </div> <br />        <div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">'column'</span>> <br />            <div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">'box'</span>>Box <span style="color: #000000;">5</span></div><br />            <div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">'box'</span>>Box <span style="color: #000000;">6</span></div> <br />        </div> <br />        <div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">'clear'</span>></div> <br />    </div> <br />    <div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">'clear'</span>></div> <br /></div> <br /><script><br />$<span style="color: #000000;">&#40;</span>document<span style="color: #000000;">&#41;</span>.ready<span style="color: #000000;">&#40;</span><span style="color: #00C800;">function</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span> <br /> <br />    <span style="color: #B900B9;">// THANKS FOR YOUR HELP :) - Whit</span><br /> <br />    $<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'.pagetab'</span><span style="color: #000000;">&#41;</span>.<span style="color: #0000ff;">click</span><span style="color: #000000;">&#40;</span><span style="color: #00C800;">function</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />        show_page<span style="color: #000000;">&#40;</span>extract_id<span style="color: #000000;">&#40;</span>$<span style="color: #000000;">&#40;</span>this<span style="color: #000000;">&#41;</span>.attr<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'id'</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />    <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span>;<br /> <br />    $<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">".column"</span><span style="color: #000000;">&#41;</span>.sortable<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#123;</span><br />        connectWith: <span style="color: #ff0000;">'.column'</span>,<br />        opacity: <span style="color: #000000;">0.4</span>,<br />        tolerance: <span style="color: #ff0000;">'pointer'</span>,<br />        placeholder: <span style="color: #ff0000;">'place_holder'</span>,<br />        helper: <span style="color: #00C800;">function</span><span style="color: #000000;">&#40;</span>event, el<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />            <span style="color: #0000ff;">var</span> myclone = el.clone<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />            $<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'body'</span><span style="color: #000000;">&#41;</span>.append<span style="color: #000000;">&#40;</span>myclone<span style="color: #000000;">&#41;</span>;<br />            <span style="color: #00C800;">return</span> myclone;<br />        <span style="color: #000000;">&#125;</span>,<br />    <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span>.disableSelection<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br /> <br />    $<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">".pagetab"</span><span style="color: #000000;">&#41;</span>.droppable<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#123;</span><br />        over: <span style="color: #00C800;">function</span><span style="color: #000000;">&#40;</span>event, ui<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />            $<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">".pagetab"</span><span style="color: #000000;">&#41;</span>.removeClass<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'pagetab_drop'</span><span style="color: #000000;">&#41;</span>;<br />            $<span style="color: #000000;">&#40;</span>this<span style="color: #000000;">&#41;</span>.addClass<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'pagetab_drop'</span><span style="color: #000000;">&#41;</span><br />            show_page<span style="color: #000000;">&#40;</span>extract_id<span style="color: #000000;">&#40;</span>$<span style="color: #000000;">&#40;</span>this<span style="color: #000000;">&#41;</span>.attr<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'id'</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />        <span style="color: #000000;">&#125;</span>,<br />        out: <span style="color: #00C800;">function</span><span style="color: #000000;">&#40;</span>event, ui<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />            $<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">".pagetab"</span><span style="color: #000000;">&#41;</span>.removeClass<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'pagetab_drop'</span><span style="color: #000000;">&#41;</span>;<br />        <span style="color: #000000;">&#125;</span>,<br />        tolerance: <span style="color: #ff0000;">'pointer'</span><br />    <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span>;<br /> <br /><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span>;<br /> <br /><span style="color: #00C800;">function</span> show_page<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">id</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />    $<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'.page'</span><span style="color: #000000;">&#41;</span>.removeClass<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'page_active'</span><span style="color: #000000;">&#41;</span>;<br />    $<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'#page_'</span>+<span style="color: #0000ff;">id</span><span style="color: #000000;">&#41;</span>.addClass<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'page_active'</span><span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /> <br /><span style="color: #00C800;">function</span> extract_id<span style="color: #000000;">&#40;</span>str<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />    <span style="color: #00C800;">return</span> str.<span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span>str.indexOf<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'_'</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">+1</span>,str.length<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /> <br /><br /></script><br />    <br /></body><br /></html><br /><br />ENDTEXT<br /><br /><span style="color: #00C800;">return</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #B900B9;">//-- HARBOURINO   --//</span><br /><br /><span style="color: #0000ff;">INIT</span> PROCEDURE PrgInit<br />  <br />  SET CENTURY <span style="color: #0000ff;">ON</span><br />  SET EPOCH <span style="color: #0000ff;">TO</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;">-98</span><br />  <br />  SET DELETED <span style="color: #0000ff;">ON</span><br />  SET EXCLUSIVE OFF<br />  <br />  REQUEST HB_Lang_DE<br />  <br />  HB_LangSelect<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"DE"</span><span style="color: #000000;">&#41;</span><br />  <br />  SET DATE <span style="color: #0000ff;">TO</span> GERMAN<br />  <br />  rddsetdefault<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DBFCDX"</span> <span style="color: #000000;">&#41;</span><br />  <br />  EXTERN DESCEND<br />  <br /><span style="color: #00C800;">RETURN</span><br /><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><br /> </div>[/code:2j5hlru6]
Best options for drag and drop pictures
Mark, I made a little test with a DBF file. [img:3pdale2a]https&#58;//mybergland&#46;com/fwforum/dragdrop2&#46;gif[/img:3pdale2a]
Best regards and anomalous performance
Hi Antonio, You may note that this two little program are different in only one thing. The second one make use of WINDOW instead of DIALOG ======slow.prg========= #include "fivewin.ch" FUNCTION MAIN() LOCAL oDlg LOCAL oBrw LOCAL lPaint := .F. SELECT 0 USE customer DEFINE DIALOG oDlg FROM 10 , 10 TO 600 , 800 PIXEL @ 0, 0 LISTBOX oBrw FIELDS SIZE 600 , 800 ACTIVATE DIALOG oDlg RETURN NIL =====fast.prg==================== #include "fivewin.ch" FUNCTION MAIN() LOCAL oWnd LOCAL oBrw LOCAL lPaint := .F. SELECT 0 USE customer DEFINE WINDOW oDlg FROM 10 , 10 TO 600 , 800 PIXEL @ 0, 0 LISTBOX oBrw FIELDS SIZE 600 , 800 ACTIVATE DIALOG Wnd RETURN NIL If I put in background listbox of slow.exe program and I catch a dialog of another program such as cmd in window mode or any other program and I move quickly (like a shaker) this dialog over listbox of slow.exe program cells listbox repaint is too slow, I note something like a slime. On the contrary fast.exe works fine like all other windows program I tested: Excel, Groupwise, Outlook and other software compiled in Visual Objects or Fox Pro. In my opinion it is very probably that thar is a bug somewhere. Have a good day Marco
Best regards and anomalous performance
Marco, The speed delay probably is caused for the "double buffer" technique used on dialogs. The "double buffer" technique avoids "flickering" but the painting speed is slower You can disable the "double buffer" technique in FWH modifying these two methods in Class TWindow: METHOD DispBegin() VIRTUAL METHOD DispEnd() VIRTUAL
Best regards and anomalous performance
Ok thanks <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Best resource editor
Hi, what is the best resource editor? Here is a list of all alternatives I've found: Borland Workshop ResEdit: (free) - <!-- m --><a class="postlink" href="http://www.resedit.net/">http://www.resedit.net/</a><!-- m --> PellesC (free) - <!-- m --><a class="postlink" href="http://www.smorgasbordet.com/pellesc/">http://www.smorgasbordet.com/pellesc/</a><!-- m --> VSX (Microsoft) free - <!-- m --><a class="postlink" href="http://forums.fivetechsoft.com/viewtopic.php?t=9572">http://forums.fivetechsoft.com/viewtopic.php?t=9572</a><!-- m --> Resource Builder ( SiComponents ) (45 €) - <!-- m --><a class="postlink" href="http://www.sicomponents.com/">http://www.sicomponents.com/</a><!-- m --> Visual FiveWin Perhaps Visual FiveWin is the best choice, but it is still in beta stage?
Best resource editor
Hello Frank, I tested all solutions, Some month ago, I changed to Resource-builder ( also I have been a beta-tester for version 3.0 ). The new version offers futures, You don't find in the other products like 24 Bit image import and more. You can download resource builder ( 30 days trial ), to find out by yourself. ResEd is ok, but the RC-file seems not to be compatible with borland workshop. After saving, the source changes and it is not easy, to get it working again with workshop. Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
Best resource editor
Hello Uwe, thank you for your recommendation. I've downloaded RB and tried the sample testxbr3.prg/rc. The first impression is good, but what happens if you want to generate more dynamically code, e. g.: - store the initial windows size <nHeight> and <nWidth> in an ini file, or - enable/disable controls in a dialog, depending of a user role, or - localize your app for more than one language, or - generate data driven menus, browses and dialogs, or ... To be honest, I never worked with resource files before and I'm a new unexperienced FWH user, so maybe I don't understand the concept of rc files? <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: -->
Best resource editor
Hi Frank, What you're wanting to do is manipulate controls during runtime and you can do that via code irregardless whether they were created via source code or using resources. Of course if you use a resource editor you'll save a lot of time because you can visually confirm the layout of dialogs are as what you have in mind. Those controls can still be changed during runtime. For example to disable and enable controls you can use oCtrl:disable()/oCtrl:enable(). To hide them, oCtrl:hide(), oCtrl:show(). To resize them, oCtrl:move() and so on. I recommend you to start by reading Fivewin's Programmers Guide which is normally in \fwh\manual\fwprog.hlp and James's excellect article [url=http&#58;//ourworld&#46;compuserve&#46;com/homepages/jbott/fwintro&#46;htm:2ltt4abm]An Introduction to Fivewin[/url:2ltt4abm]. Later dive into \fwh\samples for examples on how to do things. HTH
Best resource editor
Frank, I send you by email a FiveWin german manual. Though it is for FiveWin for Clipper, it covers lots of areas -including resources- that will help you to learn and understand FiveWin <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Best resource editor
Antonio, got it! Many thanks
Best resource editor
hua, thanks for this explanation, thinking that I understand the lession: design controls (objects like menus, toolbars, browse, dialogs, ...) with initially values by using a resource editor, later you can manipulate these objects (the initially values) as you (the developer) like. I have already read Jame's articles: - Introduction to FiveWin - Introduction to Object-Oriented Programming Using FiveWin: Part I - Introduction to Object-Oriented Programming Using FiveWin: Part II so the principle of OOP is clear, but I missed the correlation to the resource editor. Many thanks to James, he has done an excellent work. But what about IDE's like VFW or VxH? Are these apps replacement products for resource editors perhaps with additionally features, or what?
Best resource editor
Frank, Resources management is a standard Windows feature: you can store your GUI dialogs and GDI objects (bitmaps, cursors, icons, etc.) inside RC files (ascii files) and those resources get embedded inside your EXE (or DLL) and you can instantiate those objects from your application at runtime, and once instantiated, you can modify them, etc. From Visual Basic on, Microsoft and other companies started to use non standard ways of storing resources, thus breaking the overall compatibility that the original RC files provided. There was a standard model for all applications. Now this no longer applies. With FiveWin we decided, since early versions, to keep using the standard Windows resources, as that lets us use lots of different resources editors, tools, etc. that are based on the original and standard Windows resources. In example: you can not use a Visual Basic form from a C++ application, neither from other development environments. But you can use a standard RC file with C++, FiveWin, etc. Its a standard <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Best resource editor
Antonio, so do you recommend to stay with this standard? And what about IDE's like VFW or VxH and this standard?
Best resource editor
Antonio, found this: [url:g6uxvttn]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=5&t=14950&p=77247&hilit=resource#p77244[/url:g6uxvttn] So its quite clear now! Thanks for the assistance
Best resource editor
Frank, > so do you recommend to stay with this standard? yes, of course. It will give you the freedom to also use other development platforms and tools that are based on standard resources. > And what about IDE's like VFW or VxH and this standard? They don't use standard resources files. So each tool is uncompatible with the others. We prefer to use open standards <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Best technic to use the set relation to syntax
[quote="Otto":3cl6vjzu]Marc, would you be so kind to post a screenshot how the program looks like? Best regards, Otto[/quote:3cl6vjzu] Otto, At this moment it is just the layout like we are talking about here... I first want to have a good XbrowseBuilder with 1 line of code, than I expand to a invoices system because it will need many browsers. <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=41270">viewtopic.php?f=3&t=41270</a><!-- l --> BTW : Have you a link on how to build those animated postings you guys can do in this forum ?
Best technic to use the set relation to syntax
I wonder what the best technic would be in folowing senario.... Small network (4 pc) and a program with 5 folderex folders. Asume : Customers basic data invoices contactpersons specific settings I can set a relation from cusrtomer to each data for filtering the folders. That works. But... At that point, when i'm in folder 1, the basic and start scrolling for a customer, or a seek every time the set relation for all folders will be updated, so slowing down the basic browse. How do you guys do this ? Only change the querry at the moment you hit the folder tap ? and not use a relation, but more of a ordscope ? The relations make it more easy, but slows down, as far as I know the way to program them.
Best technic to use the set relation to syntax
Have you tried using INDEX ON MEMORY / TEMPORARY? If you have a little example, it gets easier. Hugs. Regards, saludos.
Best technic to use the set relation to syntax
Index on ... That is a new idea for this purpose. I'm expanding the program you and I started ))))). It starts to have potential. I have to see how to change the code in order to make it with dbf samples from the sample dir, but I asked your mailadres (other post) so I could send the actual dbf's (or a link) Than you can see where I'm. It will become a invoicing program based on folderex and xbrowse. For the Xbrowse I made a Xbrowse Builder that calls his data from 2 dbf files. Great working for my way of doing ))) This is the code now for callling Xbrowse. One row and all setting, positions, layouts, colors are dbf based. // Marc, write the code here on the spot. // FOLDER 2 ----------------------------------------------------------------------------------------------- // 2 browsers on 1 folder oBrw[2] = getXBrowser("KLANTDOCUMENTEN",oFld:aDialogs[2]) oBrw[6] = getXBrowser("KLANTFACTART",oFld:aDialogs[2]) oBrw[2]:bChange := { || oBrw[6]:refresh() } // FOLDER 3 ----------------------------------------------------------------------------------------------- oBrw[3] = getXBrowser("KLANTPERSONEN",oFld:aDialogs[3]) // FOLDER 4 ----------------------------------------------------------------------------------------------- oBrw[4] = getXBrowser("FACTUREN",oFld:aDialogs[4]) //StyleBrowse(oBrw[4],{ "factuur","klantnum" },{ "factuur","klantnum" })
Best technic to use the set relation to syntax
Marc, would you be so kind to post a screenshot how the program looks like? Best regards, Otto
Best technic to use the set relation to syntax
Marc, [quote:2ukjnopr]How do you guys do this? Only change the query at the moment you hit the folder tab? and not use a relation, but more of an ordscope ?[/quote:2ukjnopr] What you suggest is just not feasible speed wise. This is what I would do. Show one browse full screen with the customer list. Have a lookup GET on the toolbar to find a specific customer. After the user finds the customer, they double-click on it in the browse. Then a dialog comes up with folders for invoices, contacts, etc. And yes, I would find related info with scopes, not set relation. This way the user has access to all the information you want and the program is much faster. James
Best technic to use the set relation to syntax
Hello Mark, I'm not sure I fully understand what you're trying to do. I have - I think - a similar system. Here is the information in the document name. I then read the directories into an array with Directory () and filter that array. I don't think it's slow. Best regards, Otto [url:1pfiflx5]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=33215&p=211109&hilit=emaildesktop&sid=b3850318df4e3d5aa66ac93d1bca063c&sid=b3850318df4e3d5aa66ac93d1bca063c#p211109[/url:1pfiflx5]
Best technic to use the set relation to syntax
James, I also used Ordscopes in my old version, and possible also in the new project. It was while looking into the Yunus sample that Mr. Rao has used relations. I implemented relations in my first setup ans that is working, but a relation is changing the child database result everytime the parent is moving. I have to say that in my old version, ordscope is olso changing the child when a move is done in the parent, because there I used the : oChange.... Ordscope syntax. My original question is that when I don't use the Onchange in the parent, (My child browsers all always on a other foldertab. ) there is no movement while going true the parent. At the moment I want to see the invoices, I need to click on the Invoice Tab, and THEN I schould Ordcope the data from the folderaction (getfocus) function, so when the invoice tab is shown, the data whill be the scope. Then there will be only 1 scope done. This make sence right ? Minimal scopes are done... Good technic ?
Best technic to use the set relation to syntax
Marc, [quote:1dksbnnr]My original question is that when I don't use the Onchange in the parent, (My child browsers all always on a other foldertab. ) there is no movement while going true the parent.[/quote:1dksbnnr] Yes, that is what you want. Otherwise you are dragging lots of useless data over the LAN each time you move from one customer to the next. [quote:1dksbnnr]At the moment I want to see the invoices, I need to click on the Invoice Tab, and THEN I schould Ordcope the data from the folderaction (getfocus) function, so when the invoice tab is shown, the data whill be the scope. Then there will be only 1 scope done.[/quote:1dksbnnr] Yes, this will be a lot faster and will reduce the network traffic immensely. This make sence right ? Minimal scopes are done... Exactly. James
Best technic to use the set relation to syntax
James, Also my first class ever used. At this moment I try to get as much as possible systeem var's into this I have read your papers )) At the beginning : [code=fw:x8kn2cvu]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />oMarc:= TMarc<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oMarc:<span style="color: #000000;">aLever</span> = readleveranciers<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">CLASS</span> TMarc<br />   <span style="color: #00C800;">DATA</span>  aMaanden  AS ARRAY <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Jan"</span>,<span style="color: #ff0000;">"Feb"</span>,<span style="color: #ff0000;">"Mrt"</span><span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">DATA</span>  aDbfVelden  AS ARRAY <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">DATA</span>  aLever AS ARRAY <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />   <span style="color: #B900B9;">//DATA  aLever AS ARRAY INIT readleveranciers()  // Not working</span><br />   <span style="color: #00C800;">DATA</span>  aStates AS ARRAY <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #B900B9;">// state 0 defined as empty</span><br />   <span style="color: #00C800;">DATA</span>  <span style="color: #0000ff;">name</span> <span style="color: #0000ff;">INIT</span> <span style="color: #ff0000;">"Just a Name"</span><br />   <span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">NEW</span><br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">NEW</span> <span style="color: #00C800;">CLASS</span> TMarc<br /><br />   SET AUTORDER <span style="color: #0000ff;">TO</span> <span style="color: #000000;">1</span><br />   SET CENTURY <span style="color: #0000ff;">ON</span><br />   SET DATE BRITISH<br />   SET TIME FORMAT <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"HH:MM:SS"</span><br />   SET EPOCH <span style="color: #0000ff;">TO</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;">30</span><br />   SET SOFTSEEK OFF<br />   SET WRAP <span style="color: #0000ff;">ON</span><br />   SETCANCEL<span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />   SET CONFIRM OFF<br />   SET DELETED <span style="color: #0000ff;">ON</span><br />   SET _3DLOOK <span style="color: #0000ff;">ON</span><br />   SET UNIQUE OFF<br />   SET ESCAPE OFF<br />   SET EXACT <span style="color: #0000ff;">ON</span><br />   SET EXCLUSIVE OFF<br />   SET MULTIPLE OFF<br />   SET AUTORDER <span style="color: #0000ff;">TO</span> <span style="color: #000000;">1</span><br />   <span style="color: #0000ff;">define</span> <span style="color: #0000ff;">font</span> oFontw <span style="color: #0000ff;">name</span> <span style="color: #ff0000;">"MS Sans Serif"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-50</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">SELF</span><br /><br /><span style="color: #00C800;">function</span> ReadLeveranciers<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//  Just pulling some data into a array</span><br />   <span style="color: #00C800;">local</span> aDbf  := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">local</span> c, aDir<br />   Minfilesize:= <span style="color: #000000;">1</span><br />   netopen<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Lever"</span><span style="color: #000000;">&#41;</span><br />   DBEVAL<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> || AAdd<span style="color: #000000;">&#40;</span> aDbf, <span style="color: #000000;">&#123;</span>FIELD->klant_nr,FIELD->naam_1,FIELD->tag<span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />   ASORT<span style="color: #000000;">&#40;</span>aDbf, , , <span style="color: #000000;">&#123;</span> | x,y | x<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> < y<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">//  A->Z 2 veld</span><br />   close lever<br /><br /><span style="color: #00C800;">return</span> aDbf<br /><br /> </div>[/code:x8kn2cvu] When I start the actual work for invoice making : it will become Tdatabase For now preparing the Browsemaker, some systemtools and thinking of strategy like the post above.
Best technic to use the set relation to syntax
Marc, [quote:253yohy6] When I start the actual work for invoice making : it will become Tdatabase[/quote:253yohy6] An invoice is a complex object, as it contains a customer, an invoice header, and invoice line Items, all of which are objects themselves. Then you add methods like oInvoice:Total() and oInvoice:PaymentDueDate(), etc.
Best technic to use the set relation to syntax
Indeed, But you posted several topics and replies on the topics of Tdatabase. We had also several samples, so it is sure possible to get a good start from it. The nice thing is we can mostly find help in this Forum. At least, I make use of it ))) But I spend a lot of time finding out some fundamentals that I need to understand, so digging in the forum and samples is the way to go.
Best way to check if value of database fields are current
Is there a build in function for checking a database field if the value is current. Best regards, Otto
Best way to check if value of database fields are current
What do you mean by "current" Otto? James
Best way to check if value of database fields are current
Hello James, maybe the right term is consecutive number. I mean to check if in an invoice database all the invoice numbers are complete. Thanks in advance Otto
Best way to print Invoice ?
Hi all, I am very much new to printing using FWH. I need to print Invoices from the application using FWH on a laser printer. I am trying to convert only the printing portion of an old Clipper application. My new FWH application will have a dialog with a text box in it accepting the Invoice no. Once the user keys in the Invoice no. the FWH application should print on an Blank A4 paper on a laser printer with all the Heading, Address, Invoice No, Date, Boxes/Lines and then the detailed lines containing the Items and then at the end of the page with the Bill Total and other Statuatory declarations. In DOS Clipper I am doing this using the code [code=fw:ekb96pk9]<div class="fw" id="{CB}" style="font-family: monospace;">@prow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">+1</span>,<span style="color: #000000;">00</span> <span style="color: #0000ff;">say</span> BOLD_ON+PADC<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Company Name"</span>,<span style="color: #000000;">80</span><span style="color: #000000;">&#41;</span> +BOLD_OFF<br />@prow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">+1</span>,<span style="color: #000000;">00</span> <span style="color: #0000ff;">say</span> PADC<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Company Address"</span>,<span style="color: #000000;">80</span><span style="color: #000000;">&#41;</span><br /><br />@prow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">+1</span>,<span style="color: #000000;">00</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Invoice No : "</span>+str<span style="color: #000000;">&#40;</span>nInvoiceNo,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span><br />@prow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>   ,<span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Invoice Dt  : "</span>+dtoc<span style="color: #000000;">&#40;</span>dInvDate<span style="color: #000000;">&#41;</span><br /><br />@prow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">+1</span>,<span style="color: #000000;">00</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"/---------------------------------------------------------------------------------------------<span style="color: #000000;">\"</span><br />@prow()+1,00 say "</span>| Sr# | Item <span style="color: #0000ff;">Name</span>     | Qty  |  Price | VAT % | VAT Amt | Total Amt |<span style="color: #ff0000;">"<br />@prow()+1,00 say "</span>|-------|--------------------|--------|----------|----------|--------------|---------------|<span style="color: #ff0000;">"<br /><br />// Process and Print the Line Items<br />Do while Bill->InvoiceNo == nInvoiceNo .and. !eof()<br />    cLine:="</span>|<span style="color: #ff0000;">"+str(n++,5)+"</span>| <span style="color: #ff0000;">"+ITEM_NAME+"</span> | <span style="color: #ff0000;">"+str(QTY,3)+"</span> | <span style="color: #ff0000;">"+STR(PRICE,8,2)+"</span> | <span style="color: #ff0000;">"+str(VAT_TYPE)<br />    cLine+=+"</span> | <span style="color: #ff0000;">"+ STR(VAT_AMT,8,2)+"</span> | <span style="color: #ff0000;">"+str(TOTAL_AMT)+"</span> |<span style="color: #ff0000;">"<br />    @prow()+1,00 say cLine<br /><br />    Select Bill <br />    Skip<br />Enddo<br />@prow()+1,00 say "</span>|-------|--------------------|--------|----------|----------|--------------|---------------|<span style="color: #ff0000;">"<br />@prow()+1,00 say "</span>|                                                             TOTAL       |<span style="color: #ff0000;">"+str(GRAND_TOTAL)+"</span> |<span style="color: #ff0000;">"<br />@prow()+1,00 say "</span>\---------------------------------------------------------------------------------------------/<span style="color: #ff0000;">"<br /></span></div>[/code:ekb96pk9] [b:ekb96pk9]Bill should appear like this[/b:ekb96pk9] [code=fw:ekb96pk9]<div class="fw" id="{CB}" style="font-family: monospace;">                         <span style="color: #000000;">&#91;</span>b<span style="color: #000000;">&#93;</span>ABC Company<span style="color: #000000;">&#91;</span>/b<span style="color: #000000;">&#93;</span><br />    Address <span style="color: #000000;">12</span>/<span style="color: #000000;">123445</span>, That Street, Pincode : <span style="color: #000000;">999999</span><br /><br />Invoice No :  <span style="color: #000000;">23</span>                                          Invoice Dt : <span style="color: #000000;">15</span><span style="color: #000000;">-05</span><span style="color: #000000;">-2009</span><br />/---------------------------------------------------------------------------------------------\<br />| Sr# | Item <span style="color: #0000ff;">Name</span>       &nbsp;   | Qty  |  Price | VAT % | VAT Amt | Total Amt |<br />|-------|--------------------|--------|----------|----------|--------------|---------------|<br />|    <span style="color: #000000;">1</span>  | Item <span style="color: #000000;">1</span>        &nbsp;    |  <span style="color: #000000;">3</span>    | <span style="color: #000000;">10.00</span>  |    <span style="color: #000000;">4</span>%   |     <span style="color: #000000;">0.40</span>    |   <span style="color: #000000;">10.40</span>     |<br />|    <span style="color: #000000;">2</span>  | Item <span style="color: #000000;">2</span>          &nbsp;  |  <span style="color: #000000;">5</span>    | <span style="color: #000000;">15.00</span>  |    <span style="color: #000000;">4</span>%   |     <span style="color: #000000;">0.40</span>    |   <span style="color: #000000;">15.40</span>     |<br />|    <span style="color: #000000;">3</span>  | Item <span style="color: #000000;">3</span>          &nbsp;  |  <span style="color: #000000;">2</span>    | <span style="color: #000000;">20.00</span>  |    <span style="color: #000000;">4</span>%   |     <span style="color: #000000;">0.40</span>    |   <span style="color: #000000;">20.40</span>     |<br />|       |                    |        |         |           |              |               |<br />|       |                    |        |         |           |              |               |<br />|       |                    |        |         |           |              |               |<br />|       |                    |        |         |           |              |               |<br />|-------|--------------------|--------|----------|----------|--------------|---------------|<br />|                                                                TOTAL    |   <span style="color: #000000;">46.20</span>     |<br />\---------------------------------------------------------------------------------------------/<br />Goods once sold will not be take back .........<br /> </div>[/code:ekb96pk9]Can anybody help me where should I start to get a print out similiar to the above. Any sample code will be helpful. I am confused after seeing the Samples TestPrn3 etc etc. like CMSay() I would also like to use Boxes and Lines instead of the character "-----" so that the print out appears neat and tidy Regards Anser
Best way to print Invoice ?
EasyReport Best regards, Otto PRINTAREA's : you can have as many as you want PRINTAREA 1 = header PRINTAREA 2 = items PRINTAREA 3 = footer You have a Report designer which creates the vrd-files. These are ASCII files. You can edit them also with an editor. 10=Image||700| 0|1|1|26|119|28|33|C:\whtouch\logo\LOGO.JPG|0| 11=Text|Firma|401| 0|1|1|27|115|70|5|1|3|2|3|0|0||0 12=Text|Adr1|402| 0|1|1|24|115|70|4|11|3|2|3|0|0||0 13=Text|Adr2|403| 0|1|1|30|115|70|4|11|3|2|3|0|0||0 14=Text|Adr3|404| 0|1|1|36|115|70|4|11|3|2|3|0|0||0 [code=fw:mzfm3qh4]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />   EASYREPORT oVRD <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">".<span style="color: #000000;">\x</span>VRD<span style="color: #000000;">\W</span>ellnessTermine.vrd"</span> ;<br /> PREVIEW lPreview <span style="color: #0000ff;">TO</span> cPrinter   PRINTDIALOG IIF<span style="color: #000000;">&#40;</span> lPreview, .F., .F. <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">IF</span> oVRD:<span style="color: #000000;">lDialogCancel</span> = .T.<br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ENDIF</span><br /><br />PRINTAREA <span style="color: #000000;">1</span> <span style="color: #0000ff;">OF</span> oVRD ;<br />   ITEMIDS    <span style="color: #000000;">&#123;</span> <span style="color: #000000;">102</span> <span style="color: #000000;">&#125;</span> ;<br />   ITEMVALUES <span style="color: #000000;">&#123;</span> kunden->name <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> .not. eof<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   PRINTAREA <span style="color: #000000;">2</span> <span style="color: #0000ff;">OF</span> oVRD ;<br />      ITEMIDS    <span style="color: #000000;">&#123;</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">101</span>,<span style="color: #000000;">102</span> <span style="color: #000000;">&#125;</span> ;<br />      ITEMVALUES <span style="color: #000000;">&#123;</span>test->test1, test->test2, test->test3     <span style="color: #000000;">&#125;</span><br /><br /><br />   <span style="color: #0000ff;">select</span> test<br />   skip<br /><br /><span style="color: #00C800;">enddo</span><br /><br /><br />PRINTAREA <span style="color: #000000;">3</span> <span style="color: #0000ff;">OF</span> oVRD ;<br />   ITEMIDS    <span style="color: #000000;">&#123;</span> <span style="color: #000000;">102</span>,<span style="color: #000000;">102</span>,<span style="color: #000000;">103</span>,<span style="color: #000000;">104</span> <span style="color: #000000;">&#125;</span> ;<br />   ITEMVALUES <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"here"</span>,<span style="color: #ff0000;">"are"</span>,<span style="color: #ff0000;">"your"</span>,<span style="color: #ff0000;">"test"</span> <span style="color: #000000;">&#125;</span><br /><br /><br /><br />oVRD:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  <br />    <br />  <br />    <br />    <br /> </div>[/code:mzfm3qh4]
Best way to print Invoice ?
Dear Mr.Otto, Thank you very much for the information <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> I think EasyReport is a commercial one right ? With FWH purchase 1 License is free right ? I don't remember whether this is 1 developer license and whether I can use this while distributing the application <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> My fisrt preference is to stick on to FWH itself without relying on a third party control. Anyway if getiing this done using FWH is too complicated then I may have to think about EasyReport. I beleive that the EasyReport report file will be an external file (.rpt) which needs to be there along with FWH Application. Regards Anser
Best way to print Invoice ?
Hello Anser, >I think EasyReport is a commercial one right ? Yes – but worth the money. >My fisrt preference is to stick on to FWH itself without relying on a third party control. >Anyway if getiing this done using FWH is too complicated then I may have to think about EasyReport. I had for a very long time hardcoded reports. But a report designer is the better choice. I beleive that the EasyReport report file will be an external file (.rpt) which needs to be there along with FWH Application. Yes. As EasyReport is written in Fivewin you have full control over your reports. No installation/setup is necessary – if your Fivewin application executes on the client machine also the report is working! (I had so many problems with CR. ) Also the speed to create reports is high. Best regards, Otto
Best way to print Invoice ?
Hi, take a look at <!-- m --><a class="postlink" href="http://www.paritetsoft.ru/frh.htm">http://www.paritetsoft.ru/frh.htm</a><!-- m --> It's the xharbour wrapper (class) for Fast Report. It's really easy to use and with great features.
Best way to print Invoice ?
[quote="anserkk":1p5xygw0]I am very much new to printing using FWH. I need to print Invoices from the application using FWH on a laser printer. I am trying to convert only the printing portion of an old Clipper application. My new FWH application will have a dialog with a text box in it accepting the Invoice no. Once the user keys in the Invoice no. the FWH application should print on an Blank A4 paper on a laser printer with all the Heading, Address, Invoice No, Date, Boxes/Lines and then the detailed lines containing the Items and then at the end of the page with the Bill Total and other Statuatory declarations.[/quote:1p5xygw0]Hi Anser: With TCliPrt class you can use your original clipper printig code in FWH\xHarbour programs. It's free. You can download it from here: <!-- m --><a class="postlink" href="http://www.box.net/shared/5ac0n9e88g">http://www.box.net/shared/5ac0n9e88g</a><!-- m --> Best regards. Manuel Mercado
Best way to print Invoice ?
Hi Anserkk I use the PDF class to generate all my invoices and reports - this also makes it easier to email the report or invoice as an attachment. Regards Colin
Best way to print Invoice ?
[quote="Colin Haig":3vr67fmk]Hi Anserkk I use the PDF class to generate all my invoices and reports - this also makes it easier to email the report or invoice as an attachment. Regards Colin[/quote:3vr67fmk] Mr Colin Can you please enlighten us more about how do you use the PDF class to prepare and print reports? Where can we get the PDF class? Thanks in advance
Best way to print Invoice ?
Mr Rao Here is a sample - I have removed some of the code but it should be enough to see how it works. I am not sure where you can get pdf.prg but I can send you a copy PUBLIC aReport := array( PARAMLEN ) aStyle := { "Normal", "Bold", "Italic", "BoldItalic" } aFonts := { { "Times", .t., .t., .t., .t. },; { "Helvetica", .t., .t., .t., .t. },; { "Courier", .t., .t., .t., .t. } } cPdf := cPath + 'PO' + alltrim(cPoNum) + '.pdf' pdfOpen(cPdf, 200, .t.,cPath) pdfSetLPI( 48 ) // allows best placement of text on graphics do while ! oPoitms:eof() cJbNo := oPoitms:jb_no fnHeader(aSupplier,cPoNum,dPo,@nPage,@nPrRow,cPath,lConfirm,lEmail,aShipTo,cSub) pdfAtSay(oPoitms:code,nPrRow, 0 ,"R") pdfAtSay(oPoitms:desc,nPrRow, 28 ,"R") pdfAtSay(str(oPoitms:qty,7,2),nPrRow, 114 ,"R") oPoitms:skip() nPrRow++ enddo SysRefresh() pdfAtSay('Document Type ',nMaxRow - 5, 0 ,"R") pdfBold() pdfAtSay(cType,nMaxRow - 5, 30 ,"R") pdfNormal() pdfBox( 255 , 150, 280 , 206, 0.01, 8 , "M" ,,) pdfAtSay('Sub Total',nMaxRow - 5, 151 ,"R") pdfAtSay(str(nTotal,9,2),nMaxRow -5, 171 ,"R") pdfAtSay('Raised By ',nMaxRow - 3, 0 ,"R") pdfBold() pdfAtSay(alltrim(cUserName) + '/' + alltrim(cNetName),nMaxRow - 3, 30 ,"R") pdfNormal() if lPrices pdfAtSay(' G.S.T',nMaxRow - 3, 151 ,"R") pdfAtSay(str(nTotGst,9,2),nMaxRow - 3, 171 ,"R") endif pdfAtSay('Job Number ',nMaxRow - 1, 0 ,"R") pdfBold() pdfAtSay(cJbNo,nMaxRow - 1, 30 ,"R") pdfNormal() if lPrices pdfAtSay(' Total',nMaxRow - 1, 151 ,"R") pdfAtSay(str(nTotal + nTotGst,9,2),nMaxRow -1, 171 ,"R") endif pdfClose() WinExec("acrord32 " + (cPdf)) return(nil) //--------------------------------------------------------------------------------------// function fnheader(aSupplier,cPoNum,dPo,nPage,nPrRow,cPath,lConfirm,lEmail,aShipTo,cSub) if nPage == 0 .or. nPrRow > 55 nPage++ pdfNewPage( "A4", "P", 6 ) if lEmail pdfImage(cPath + 'cbdlogo2.jpg',0,0,"M",25,105) pdfSetFont(aFonts[3,1], 0, 14,) pdfAtSay('xxxxxxxxxxxxx', 0, 145, "R" ) pdfAtSay('xxxxxxxxxxxxx', 1, 145, "R" ) pdfSetFont(aFonts[3,1], 0, 13,) pdfAtSay('Phone (08)123456789', 3, 145, "R" ) pdfAtSay('Fax (08)234567890', 4, 145, "R" ) pdfAtSay('ABN 00 001 111 xxx', 5, 145, "R" ) endif pdfSetFont(aFonts[3,1], 0, 10,) pdfBox( 30 , 5 , 38 , 205 ,0.01, 10 , "M" ,,) pdfAtSay('Date : ' + dtoc(dPo), 7.5, 1 ,"R") pdfAtSay('Printed Date : ' + dtoc(date()), 7.5, 70 ,"R") pdfAtSay('P.O. No.: ' + alltrim(cPoNum) + '/' + cSub, 7.5, 160 ,"R") pdfBox( 40 , 5 , 48 , 205 ,0.01, 10 , "M" ,,) pdfBold() pdfAtSay('Supplier Details', 9.5, 1 ,"R") pdfAtSay('Shipping Details', 9.5, 110 ,"R") pdfNormal() pdfBox( 48 , 5 , 80 , 205 ,0.01, 10 , "M" ,,) pdfAtSay(aSupplier[1], 12, 1 ,"R") if ! empty(aShipTo[1]) pdfAtSay(aShipTo[1], 12, 110 ,"R") endif if ! empty(aSupplier[2]) pdfAtSay(aSupplier[2], 13, 1 ,"R") endif if ! empty(aShipTo[2]) pdfAtSay(aShipTo[2], 13, 110 ,"R") endif if ! empty(aShipTo[3]) pdfAtSay(aShipTo[3], 14, 110 ,"R") endif if ! empty(aSupplier[3]) pdfAtSay(aSupplier[3], 14, 1 ,"R") if ! empty(aSupplier[4]) pdfAtSay(aSupplier[4], 15, 1 ,"R") endif else if ! empty(aSupplier[4]) pdfAtSay(aSupplier[4], 15, 1 ,"R") endif endif if lConfirm pdfBold() pdfAtSay('*** Please Note - Confirmation Only ***', 19.5, 45 ,"R") pdfNormal() endif pdfSetFont(aFonts[3,1], 0, 9,) pdfBox( 90 , 5 , 100 , 205 ,0.01, 10 , "M" ,,) pdfAtSay('Code', 22, .1 ,"R") pdfAtSay('Description', 22, 28 ,"R") pdfAtSay('Qty', 22, 121 ,"R") pdfAtSay('Rate', 22, 147 ,"R") pdfAtSay('Amount', 22, 177 ,"R") nPrRow := 24 endif return(nil) //--------------------------------------------------------------------------------------------------//
Best way to print Invoice ?
Try the fw tReport class. Easy, simple, powerful, you already own it. You can actually print just about anything with it (reports as well invoices). No 3rd parties. Always compatible. And there is a free tmreport class that inherits from treport that allows you to export your reports/invoices to excel. Look at the samples in fwh\samples folder. It is a good place to get started. Hope it helps. Reinaldo.
Best way to print Invoice ?
Colin: May I have a copy of PDF sources ?. My e-mail address soisa2002 at prodigy dot net dot mx Best regards and thank you very much
Best way to print Invoice ?
Mr Colin Thank you very much. Would you mind sending me the pdf.prg ? My email is <!-- e --><a href="mailto:nageswaragunupudi@gmail.com">nageswaragunupudi@gmail.com</a><!-- e --> Thank you in advance
Best way to print Invoice ?
Dear All, I thank each and every one of you for providing these information's regarding the printing of an Invoice. Now I will have to decide the one, which I should use to get a simple invoice printed without spending too much time. By the way Mr.Colin, I would also like to have the copy of the pdf.prg, my email id is <!-- e --><a href="mailto:anserkk@gmail.com">anserkk@gmail.com</a><!-- e --> (Please remember that gmail does not accept .zip file attachment, if it is a zip file, then please rename .zip to .zop ) Regards Anser
Best way to print Invoice ?
Mr reinaldocrespo > And there is a free tmreport class that inherits from treport that allows you to export your reports/invoices to excel. > Where can we get the Tmreport class please ?
Best way to print Invoice ?
Anser, for a complete list of printing solutions: PageScript from <!-- m --><a class="postlink" href="http://www.abeelabs.com">http://www.abeelabs.com</a><!-- m -->. Frank
Best way to print Invoice ?
Thank you Mr.Frank for the information. Printing/reporting a very simple thing which we used to do it in clipper & DOS has turned out to be a very complicated thing in Windows environment. <!-- s:o --><img src="{SMILIES_PATH}/icon_surprised.gif" alt=":o" title="Surprised" /><!-- s:o --> and hence many third party tools. I prefer not to depend on a third party tool and do it from FWH itself. I understand that I have to learn the trick to do it from FWH and it is not that simple. Regards Anser
Best way to print Invoice ?
Dear Mr.Otto, [quote:1x57o7gp]No installation/setup is necessary – if your Fivewin application executes on the client machine also the report is working![/quote:1x57o7gp] Do you mean that we don't have to install EasyReport on each client machine ? Instead, all the contents of the Folder Distribution (ErStart.Exe, many DLL's etc) and the .vrd file (Report File) should be distributed along with our FWH application and from FWH we can call EasyReport using the following command ShellExecute( 0, "Open", "ERStart.exe", "-File=.\test.vrd -PREVIEW", NIL, 1 ) Any idea where should be the Distribution folder copied while we distribute the FWH application ? Can we use EasyReport to create reports using the data from MySQL tables ? I have got 1 developer/designer License (Free) which is bundled along with the FWH Purchase. (That's what I understand). I am planning to try this and distribute the ErStart.Exe and .vrd file on my Client's PC. Would you mind giving me some useful hints so that I get a push in the right direction. In my DOS clipper Invoice.Prg, I have the Company name, Address, VAT Reg No etc kept in one DBF and the Line Items ie Item Code, Item Name, Qty, Price etc. in another [b:1x57o7gp]Temporary DBF which is created at Run Time and deleted after the printing of the invoice[/b:1x57o7gp] The Grand Total, VAT Total, discount Totals etc (Printed at the bottom) are calculated values while processing the Temporary DBF in a Do While loop. How and where do I start with the above said Scenario ? Thanks & Regards Anser
Best way to print Invoice ?
Mr. Anser, I am happy. You are on the right way! [quote:xglsdrei]Do you mean that we don't have to install EasyReport on each client machine ? Instead, all the contents of the Folder Distribution (ErStart.Exe, many DLL's etc) and the .vrd file (Report File) should be distributed along with our FWH application [/quote:xglsdrei] Yes. I have a directory inside my program where the EasyReport files are located and one or more where I have the reports. You define the report – you can also locate the reports on a net drive. Then all the WS have the same. EASYREPORT oVRD NAME ".\xVRD\Paketaufkleber.vrd" ; PREVIEW lPreview TO cPrinter OF oWnd PRINTDIALOG IIF( lPreview, .F., .F. ) [quote:xglsdrei]and from FWH we can call EasyReport using the following command ShellExecute( 0, "Open", "ERStart.exe", "-File=.\test.vrd -PREVIEW", NIL, 1 ) [/quote:xglsdrei]no this is all handled automatically. #include "VRD.CH" 1. define the report 2. define you PRINTAREA’s which is in practice an ARRAY with an ID and the value you want to be print to this ID which you have given in your design. PRINTAREA 1 OF oVRD ; ITEMIDS { 101,102,103,104,204,205,206,207,208 } ; ITEMVALUES { cCompany,cAddr1,cAddr2,cAddr3,cAnrede,cName,cStrasse,cOrt,cLandFeld } [quote:xglsdrei]Any idea where should be the Distribution folder copied while we distribute the FWH application ? [/quote:xglsdrei] In the same folder as your program. [quote:xglsdrei]Can we use EasyReport to create reports using the data from MySQL tables ? [/quote:xglsdrei] Yes. Here a very easy – but much used report. This prints a client address on a white paper: [code=fw:xglsdrei]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> f_paket<br />    <span style="color: #00C800;">local</span> oVRD<br />    <span style="color: #00C800;">local</span> lPreview :=.t.<br />    <span style="color: #00C800;">local</span> cPrinter := GetPvProfString<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DRUCKER"</span>,<span style="color: #ff0000;">"Standard"</span>,<span style="color: #ff0000;">"Standard"</span>, <span style="color: #ff0000;">".<span style="color: #000000;">\I</span>NI<span style="color: #000000;">\W</span>INHOTEL.INI"</span> <span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">local</span> cCompany  := <span style="color: #ff0000;">""</span><br />    <span style="color: #00C800;">local</span> cAddr1    := <span style="color: #ff0000;">""</span><br />    <span style="color: #00C800;">local</span> cAddr2    := <span style="color: #ff0000;">""</span><br />    <span style="color: #00C800;">local</span> cAddr3    := <span style="color: #ff0000;">""</span><br /><br />    <span style="color: #00C800;">local</span> cAnrede   := <span style="color: #ff0000;">""</span><br />    <span style="color: #00C800;">local</span> cName     := <span style="color: #ff0000;">""</span><br />    <span style="color: #00C800;">local</span> cStrasse  := <span style="color: #ff0000;">""</span><br />    <span style="color: #00C800;">local</span> cOrt      := <span style="color: #ff0000;">""</span><br />    <span style="color: #00C800;">local</span> cLandFeld := <span style="color: #ff0000;">""</span><br />  <br />    cCompany  := ALLTRIM<span style="color: #000000;">&#40;</span>setup->company<span style="color: #000000;">&#41;</span><br />    cAddr1    := ALLTRIM<span style="color: #000000;">&#40;</span>setup->addr1<span style="color: #000000;">&#41;</span><br />    cAddr2    := ALLTRIM<span style="color: #000000;">&#40;</span>setup->addr2<span style="color: #000000;">&#41;</span><br />    cAddr3    := ALLTRIM<span style="color: #000000;">&#40;</span>setup->addr3<span style="color: #000000;">&#41;</span><br /><br />    cAnrede   := kunden->anrede<br />    cName     := ALLTRIM<span style="color: #000000;">&#40;</span>kunden->name<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" "</span>+ALLTRIM<span style="color: #000000;">&#40;</span>kunden->vorname<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" "</span>+Trim<span style="color: #000000;">&#40;</span>kunden->titel<span style="color: #000000;">&#41;</span><br />    cStrasse  := kunden->strasse<br />    cOrt      := ALLTRIM<span style="color: #000000;">&#40;</span>kunden->plz<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" "</span>+kunden->ort<br />    cLandFeld := f_landfeld<span style="color: #000000;">&#40;</span>kunden->lkz<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br />    EASYREPORT oVRD <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">".<span style="color: #000000;">\x</span>VRD<span style="color: #000000;">\P</span>aketaufkleber.vrd"</span> ;<br />        PREVIEW lPreview <span style="color: #0000ff;">TO</span> cPrinter <span style="color: #0000ff;">OF</span> oWnd  PRINTDIALOG IIF<span style="color: #000000;">&#40;</span> lPreview, .F., .F. <span style="color: #000000;">&#41;</span><br /><br />      PRINTAREA <span style="color: #000000;">1</span> <span style="color: #0000ff;">OF</span> oVRD ;<br />        ITEMIDS    <span style="color: #000000;">&#123;</span> <span style="color: #000000;">101</span>,<span style="color: #000000;">102</span>,<span style="color: #000000;">103</span>,<span style="color: #000000;">104</span>,<span style="color: #000000;">204</span>,<span style="color: #000000;">205</span>,<span style="color: #000000;">206</span>,<span style="color: #000000;">207</span>,<span style="color: #000000;">208</span> <span style="color: #000000;">&#125;</span> ;<br />        ITEMVALUES <span style="color: #000000;">&#123;</span> cCompany,cAddr1,cAddr2,cAddr3,cAnrede,cName,cStrasse,cOrt,cLandFeld <span style="color: #000000;">&#125;</span><br /><br />    oVRD:<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> <span style="color: #00C800;">NIL</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /> </div>[/code:xglsdrei] [img:xglsdrei]http&#58;//www&#46;atzwanger-software&#46;com/fw/easy1&#46;jpg[/img:xglsdrei] Then you define the header for your bodytext. [code=fw:xglsdrei]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//Print position header</span><br />   PRINTAREA <span style="color: #000000;">2</span> <span style="color: #0000ff;">OF</span> oVRD<br /> </div>[/code:xglsdrei] Then you define a PRINTAREA for the data that changes. You request for example the data in a do while and you print every line like this: In my case the PRINTAREA3 is defined with a high of 5 mm. (Order positions) [img:xglsdrei]http&#58;//www&#46;atzwanger-software&#46;com/fw/easy3&#46;jpg[/img:xglsdrei] [code=fw:xglsdrei]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> .not. eof<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />PRINTAREA <span style="color: #000000;">3</span> <span style="color: #0000ff;">OF</span> oVRD ;<br />         ITEMIDS    <span style="color: #000000;">&#123;</span> <span style="color: #000000;">101</span>,<span style="color: #000000;">102</span>,<span style="color: #000000;">105</span>,<span style="color: #000000;">106</span>,<span style="color: #000000;">107</span> <span style="color: #000000;">&#125;</span> ;<br />         ITEMVALUES <span style="color: #000000;">&#123;</span> cMenge, ;<br />         cBezeichnung, ;<br />         cPreis, ;<br />         cWert, ;<br />         cRabatt <span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">enddo</span><br /> </div>[/code:xglsdrei] Here democode for the footer: [code=fw:xglsdrei]<div class="fw" id="{CB}" style="font-family: monospace;">   <span style="color: #B900B9;">//Print order footer</span><br />               cText1 := <span style="color: #ff0000;">"Fortsetzung Seite: "</span> + ALLTRIM<span style="color: #000000;">&#40;</span>str<span style="color: #000000;">&#40;</span>nSeite<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />               cText2 := <span style="color: #ff0000;">"Zwischensumme "</span> +  ALLTRIM<span style="color: #000000;">&#40;</span>transform<span style="color: #000000;">&#40;</span> rgsumm ,<span style="color: #ff0000;">"999,999.99"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//text Fortsetzungsblatt</span><br />               PRINTAREA <span style="color: #000000;">9</span> <span style="color: #0000ff;">OF</span> oVRD ;<br />                  ITEMIDS    <span style="color: #000000;">&#123;</span> <span style="color: #000000;">101</span>, <span style="color: #000000;">102</span> <span style="color: #000000;">&#125;</span> ;<br />                  ITEMVALUES <span style="color: #000000;">&#123;</span> cText1, cText2 <span style="color: #000000;">&#125;</span><br /> </div>[/code:xglsdrei] Important: you have to take care for the pagebreak - but the code is easy: [quote:xglsdrei] IF oVRD:nNextRow > oVRD:nPageBreak nSeite := nSeite + 1 //Print order footer cText1 := "Fortsetzung Seite: " + ALLTRIM(str(nSeite)) cText2 := "Zwischensumme " + ALLTRIM(transform( rgsumm ,"999,999.99")) //text Fortsetzungsblatt PRINTAREA 9 OF oVRD ; ITEMIDS { 101, 102 } ; ITEMVALUES { cText1, cText2 } PAGEBREAK oVRD //Print position header cText1 := "Seite: " + ALLTRIM(str(nSeite)) cText2 := "Rechnung-NR: " + cOrderNr PRINTAREA 6 OF oVRD ; ITEMIDS { 101, 102,105 ,106} ; ITEMVALUES { cText1, cText2,"Übertrag:",ALLTRIM(transform( rgsumm ,"999,999.99")) } PRINTAREA 2 OF oVRD [/quote:xglsdrei] [img:xglsdrei]http&#58;//www&#46;atzwanger-software&#46;com/fw/easy2&#46;jpg[/img:xglsdrei] Best regards, Otto
Best way to print Invoice ?
You can create some rather complex invoices using the standard FW Report class. I have made invoices that are more complex than your example using TReport. I do not have a complete simple example since my reports are part of more complex classes, like a Sales Order and Invoice classes. Here is a partial example: [code=fw:1fgumcd2]<div class="fw" id="{CB}" style="font-family: monospace;">      REPORT oReport;<br />         HEADER ;<br />           <span style="color: #ff0000;">"Invoice: "</span>+trim<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">invno</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"Page: "</span>+;<br />           ltrim<span style="color: #000000;">&#40;</span>str<span style="color: #000000;">&#40;</span>oReport:<span style="color: #000000;">nPage</span>,<span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">RIGHT</span>;<br />         <span style="color: #0000ff;">TITLE</span> ::<span style="color: #000000;">oSysdata</span>:<span style="color: #000000;">company</span>, ;<br />           ::<span style="color: #000000;">oSysdata</span>:<span style="color: #000000;">address</span>,;<br />           trim<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">oSysdata</span>:<span style="color: #000000;">city</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">", "</span>+trim<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">oSysdata</span>:<span style="color: #000000;">state</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" "</span>+::<span style="color: #000000;">oSysdata</span>:<span style="color: #000000;">zip</span>,;<br />           <span style="color: #ff0000;">" "</span>,<span style="color: #ff0000;">" "</span>,;<br />           <span style="color: #ff0000;">"Ship to:"</span>, ;<br />           <span style="color: #ff0000;">" "</span>,;<br />           ::<span style="color: #000000;">oCustomer</span>:<span style="color: #000000;">Contact</span>,;<br />           ::<span style="color: #000000;">oCustomer</span>:<span style="color: #000000;">company</span>,;<br />           trim<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">oCustomer</span>:<span style="color: #000000;">address1</span><span style="color: #000000;">&#41;</span>+<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>!empty<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">oCustomer</span>:<span style="color: #000000;">address2</span><span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">", "</span>+::<span style="color: #000000;">oCustomer</span>:<span style="color: #000000;">address2</span>,<span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span>,;<br />           trim<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">oCustomer</span>:<span style="color: #000000;">city</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">", "</span>+trim<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">oCustomer</span>:<span style="color: #000000;">state</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" "</span>+::<span style="color: #000000;">oCustomer</span>:<span style="color: #000000;">zip</span>,;<br />           ::<span style="color: #000000;">oCustomer</span>:<span style="color: #000000;">phone</span>,<span style="color: #ff0000;">" "</span>,<span style="color: #ff0000;">" "</span>,;<br />           <span style="color: #ff0000;">"PO No: "</span>+::<span style="color: #000000;">oInvmast</span>:<span style="color: #000000;">PONum</span>+<span style="color: #ff0000;">"  Invoice date: "</span>+dtoc<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">oInvmast</span>:<span style="color: #000000;">invdte</span><span style="color: #000000;">&#41;</span>+;<br />           <span style="color: #ff0000;">"  Terms: "</span>+::<span style="color: #000000;">oInvmast</span>:<span style="color: #000000;">pterms</span> <span style="color: #0000ff;">LEFT</span>;<span style="color: #B900B9;">//+"  Salesperson: "," " LEFT;</span><br />           FOOTER cFooter1,cFooter2 <span style="color: #0000ff;">CENTER</span>;<br />         <span style="color: #0000ff;">FONT</span> oFont;<br />         <span style="color: #0000ff;">TO</span> DEVICE oDevice</div>[/code:1fgumcd2] Regards, James
Best way to print Invoice ?
Dear Mr.Otto Thank you for providing the samples. Now I understand the trick behind the Report Designer and Passing the values to it. I have not used any report designers till now. EasyReport is really Easy <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> [quote:1v9lv8qv]IF oVRD:nNextRow > oVRD:nPageBreak[/quote:1v9lv8qv] I understand that we should write the code to do the necessary things as per our requirement when a PageBreak is reached. But how is this oVRD:nPageBreak identified ? Do we have to set the PageBreak (When should a PageBreak should occur) or Will EasyReport automatically finds the PageBreak based on the Page Length of the opted PaperSize (A4) of the Report Dear Mr.James, There are very few samples on the usage of TReport. Would have been better if we had a small sample showing the power of TReport to print a sample invoice with a regular simple invoice model containing The Company Name Company Address Invoice Details like Invoice No, Invoice Date etc. Customer Details like Customer Name, Customer Address etc Column Heading with Lines/Boxes seperating the Columns Line Items with Lines/Boxes seperating the Columns Sub Total Grand Total Statuatory Declarations etc. With both of your samples and explanations, now the concepts are getting more clear. Regards Anser
Best way to print Invoice ?
Hello Mr. Anser, I am sorry I posted yesterday screenshots from EasyReport where the language was set to German. You can setup the language of EasyReport-designer. There are general report settings you can make. These settings are stored in the file with the extension … . vrd and the printareas then as … . v01 to … . vn This is the setting vrd of the screenshot RECHNUNG I posted. You see I use 17 ! PRINTAREAS. Header, Subheader, Folio, Items, invoice endtext and so on. [img:2yx8kids]http&#58;//www&#46;atzwanger-software&#46;com/fw/easy4&#46;jpg[/img:2yx8kids] You don’t have to care about the vrd-files. Only if you want you can manipulate the file directly with an editor. Sometimes this is much faster. [code=fw:2yx8kids]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #000000;">&#91;</span>General<span style="color: #000000;">&#93;</span><br />EditProperties=<span style="color: #000000;">1</span><br />EditAreaProperties=<span style="color: #000000;">1</span><br />EditLanguage=<span style="color: #000000;">1</span><br />DeveloperMode=<span style="color: #000000;">1</span><br />InsertMode=<span style="color: #000000;">1</span><br /><span style="color: #0000ff;">Title</span>=Rechnung<br />Measure=<span style="color: #000000;">1</span><br />GridWidth=<span style="color: #000000;">1</span><br />GridHeight=<span style="color: #000000;">1</span><br />ShowGrid=<span style="color: #000000;">0</span><br />TopMargin=<span style="color: #000000;">26</span><br />LeftMargin=<span style="color: #000000;">11</span><br />Expressions=<span style="color: #000000;">1</span><br />GeneralExpressions=EasyReport General.dbf<br />UserExpressions=EasyReport User.dbf<br />DataExpressions=EasyReport Database.dbf<br />PageBreak=<span style="color: #000000;">240</span><br />Orientation=<span style="color: #000000;">1</span><br />ShowInfoMsg=<span style="color: #000000;">1</span><br />PrintIDs=<span style="color: #000000;">1</span><br />Group=Order<br />AreaFilesDir=.\xVRD\<br />PaperSize=<span style="color: #000000;">9</span><br />PaperWidth=<span style="color: #000000;">0</span><br />PaperHeight=<span style="color: #000000;">0</span><br /><br /><span style="color: #000000;">&#91;</span>Fonts<span style="color: #000000;">&#93;</span><br /><span style="color: #B900B9;">// maximal 20</span><br /><span style="color: #B900B9;">// Parameters: name| nWidth| nHeight| bold| italic| underline| strikeout| escapement</span><br /><span style="color: #000000;">1</span>=Arial| <span style="color: #000000;">0</span>| <span style="color: #000000;">-12</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">0</span><br /><span style="color: #000000;">2</span>=Arial| <span style="color: #000000;">0</span>| <span style="color: #000000;">-20</span>| <span style="color: #000000;">1</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">0</span><br /><span style="color: #000000;">3</span>=Arial| <span style="color: #000000;">0</span>| <span style="color: #000000;">-9</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">0</span><br /><span style="color: #000000;">4</span>=Arial| <span style="color: #000000;">5</span>| <span style="color: #000000;">-12</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">1</span>| <span style="color: #000000;">1</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">0</span><br /><span style="color: #000000;">5</span>=Arial| <span style="color: #000000;">0</span>| <span style="color: #000000;">-18</span>| <span style="color: #000000;">1</span>| <span style="color: #000000;">1</span>| <span style="color: #000000;">1</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">200</span><br /><span style="color: #000000;">6</span>=Arial| <span style="color: #000000;">0</span>| <span style="color: #000000;">-7</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">0</span><br /><span style="color: #000000;">7</span>=Arial| <span style="color: #000000;">0</span>| <span style="color: #000000;">-12</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">0</span><br /><span style="color: #000000;">8</span>=Arial| <span style="color: #000000;">0</span>| <span style="color: #000000;">-12</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">2700</span><br /><span style="color: #000000;">9</span>=Arial| <span style="color: #000000;">0</span>| <span style="color: #000000;">-12</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">900</span><br /><span style="color: #000000;">10</span>=Arial| <span style="color: #000000;">0</span>| <span style="color: #000000;">-14</span>| <span style="color: #000000;">1</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">0</span><br /><span style="color: #000000;">11</span>=Arial| <span style="color: #000000;">0</span>| <span style="color: #000000;">-8</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">0</span>| <span style="color: #000000;">0</span><br /><br /><span style="color: #000000;">&#91;</span>Colors<span style="color: #000000;">&#93;</span><br /><span style="color: #B900B9;">// Parameters: RGB - A numeric (RGB) value corresponding to the red| green</span><br /><span style="color: #B900B9;">//                   and blue values specified.</span><br /><span style="color: #000000;">1</span>=<span style="color: #000000;">0</span><br /><span style="color: #000000;">2</span>=<span style="color: #000000;">16777215</span><br /><span style="color: #000000;">3</span>=<span style="color: #000000;">0</span><br /><span style="color: #000000;">4</span>=<span style="color: #000000;">4227072</span><br /><span style="color: #000000;">5</span>=<span style="color: #000000;">8421376</span><br /><span style="color: #000000;">6</span>=<span style="color: #000000;">65535</span><br /><span style="color: #000000;">7</span>=<span style="color: #000000;">13500148</span><br /><span style="color: #000000;">8</span>=<span style="color: #000000;">16250871</span><br /><span style="color: #000000;">9</span>=<span style="color: #000000;">8355711</span><br /><span style="color: #000000;">11</span>=<span style="color: #000000;">0</span><br /><br /><br /><span style="color: #000000;">&#91;</span>Infos<span style="color: #000000;">&#93;</span><br />Author=Mag. Otto Atzwanger<br />Company=Atzwanger Tourismussoftware<br />Comment=Rechnung<br />Revision=<span style="color: #000000;">1996</span><br />SaveDate=<span style="color: #000000;">20.05</span><span style="color: #000000;">.2009</span><br />SaveTime=<span style="color: #000000;">08</span>:<span style="color: #000000;">30</span>:<span style="color: #000000;">47</span><br /><span style="color: #000000;">&#91;</span>Areas<span style="color: #000000;">&#93;</span><br /><span style="color: #000000;">1</span>=rechnung.v01<br /><span style="color: #000000;">2</span>=rechnung.v02<br /><span style="color: #000000;">3</span>=rechnung.v03<br /><span style="color: #000000;">4</span>=rechnung.v04<br /><span style="color: #000000;">5</span>=rechnung.v05<br /><span style="color: #000000;">6</span>=rechnung.v06<br /><span style="color: #000000;">7</span>=rechnung.v07<br /><span style="color: #000000;">8</span>=rechnung.v08<br /><span style="color: #000000;">9</span>=rechnung.v09<br /><span style="color: #000000;">10</span>=rechnung.v10<br /><span style="color: #000000;">11</span>=rechnung.v11<br /><span style="color: #000000;">12</span>=rechnung.v12<br /><span style="color: #000000;">13</span>=rechnung.v13<br /><span style="color: #000000;">14</span>=rechnung.v14<br /><span style="color: #000000;">15</span>=rechnung.v15<br /><span style="color: #000000;">16</span>=rechnung.v16<br /><span style="color: #000000;">17</span>=rechnung.v17<br /><br /> </div>[/code:2yx8kids] Best regards, Otto Best regards, Otto
Best way to print Invoice ?
Dear Mr.Otto, Thank you. I shall try and test. Regards Anser
Best way to print Invoice ?
Anserkk, I am very much new to printing using FWH. I think more than you! I think (like you) that in the beginning, the simplest way is not to use 3rd party applications. There are many other problems in my mind that make confusion. And how printing better from my FWH applications in this moment is not the most important problem in this moment! I have to solve first HOW PRINTING. Only after, i will spend my time for doing it better. So, for me the better thing is to consider 3rd party applications for printing in a second time. As first step, for printing i'm using the syntax: PRINT oPRN NAME "Title" PAGE oprn:say() && for printing text oprn:line() && for printing line ENDPAGE ENDPRINT and it works fine. Now after reading your post, i'm trying the free library TCLIPPRT from Manuel Mercado, and i think is good because it give me the possibility not change my mind and my way of developing. To Manuel: your library is simple so is great ! One question: how can i use different fonts in the same print? Is it possible or not? I haven't find this issue in the example.. Thanks Max
Best way to print Invoice ?
Hi Mr.Max, Both of us are on the same route <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> From where can I get the Class TCLIPPRT so that I can also test printing using the class [quote:3iumc2xw]oprn:line() && for printing line[/quote:3iumc2xw] What about printing a vertical line ? Boxes [quote:3iumc2xw]PRINT oPRN NAME "Title" PAGE oprn:say() && for printing text oprn:line() && for printing line ENDPAGE ENDPRINT[/quote:3iumc2xw] I am looking for more samples on printing like the way quoted above. At least a simple sample showing how to print a simple Invoice as I have already said above in this thread Regards Anser
Best way to print Invoice ?
Hi Mr.Max, I got the Class TCLIPPRT after searching the forum. I shall test. Regards Anser
Best way to print Invoice ?
Anser, [quote="anserkk":3dl6zfx7] From where can I get the Class TCLIPPRT so that I can also test printing using the class [/quote:3dl6zfx7] Look in the bottom of the first page of [b:3dl6zfx7][u:3dl6zfx7]your[/u:3dl6zfx7][/b:3dl6zfx7] post: Manuel Mercado directly suggest you tu use TCLIPPRT class and wrote you the link . Only thanks to this post now i know that TCLIPPRT exist, so I'm trying this free class for the first time. However, oprn:line() and oprn:say() is included by default to standard class TPRINTER. Class TCLIPPRT is another way for simple printing like your invoice example. [quote:3dl6zfx7]What about printing a vertical line ? Boxes[/quote:3dl6zfx7] With oprn:line() you can draw vertical lines and boxes too. Look at TESTPRN2.PRG in your \FWH\SAMPLES and to help file FWCLASS in \FWH\MANUAL . Max
Best way to print Invoice ?
Hello mr. Anser, I feel you are not convinced. Here you have your example with the help of EasyReport. Design of the invoice you can change with the designer like in WORD. Best regards, Otto [code=fw:21cvis9o]<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;">"VRD.CH"</span><br /><br /><span style="color: #00C800;">static</span> oWnd<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oBar<br />   <span style="color: #00C800;">local</span> oPopup<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">20</span>, <span style="color: #000000;">60</span> ;<br />      <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Printing an invoice"</span><br />   @ <span style="color: #000000;">3</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"invoice"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">50</span>  <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">ACTION</span> PrintInvoice<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> PrintInvoice<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> oVRD<br />   <span style="color: #00C800;">local</span> company  :=    <span style="color: #ff0000;">"ABC Company"</span><br />   <span style="color: #00C800;">local</span> add1     :=    <span style="color: #ff0000;">"Address 12/123445"</span><br />   <span style="color: #00C800;">local</span> add2     :=    <span style="color: #ff0000;">"That Street"</span><br />   <span style="color: #00C800;">local</span> Pincode  :=    <span style="color: #ff0000;">"Pincode : 999999"</span><br />   <span style="color: #00C800;">local</span> InvoiceNo :=   <span style="color: #ff0000;">"23"</span><br />   <span style="color: #00C800;">local</span> InvoiceDt :=   <span style="color: #ff0000;">"15-05-2009"</span><br />   <span style="color: #00C800;">local</span> I := <span style="color: #000000;">0</span><br />   <span style="color: #00C800;">local</span> nTotal := <span style="color: #000000;">0</span><br />   <span style="color: #00C800;">local</span> aArr  := <span style="color: #000000;">&#123;</span>; <br />      <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"1"</span> ,  <span style="color: #ff0000;">"Item 1"</span>, <span style="color: #ff0000;">"3"</span>,  <span style="color: #ff0000;">"10.00"</span> , <span style="color: #ff0000;">" 4%"</span> ,   <span style="color: #ff0000;">"0.40"</span>,   <span style="color: #ff0000;">"10.40"</span> <span style="color: #000000;">&#125;</span>,;    <br />      <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"2"</span> ,  <span style="color: #ff0000;">"Item 2"</span>, <span style="color: #ff0000;">"5"</span>,  <span style="color: #ff0000;">"15.00"</span> , <span style="color: #ff0000;">" 4%"</span> ,   <span style="color: #ff0000;">"0.40"</span>,   <span style="color: #ff0000;">"15.40"</span> <span style="color: #000000;">&#125;</span>,;    <br />      <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"3"</span> ,  <span style="color: #ff0000;">"Item 3"</span>, <span style="color: #ff0000;">"2"</span>,  <span style="color: #ff0000;">"20.00"</span> , <span style="color: #ff0000;">" 4%"</span> ,   <span style="color: #ff0000;">"0.40"</span>,   <span style="color: #ff0000;">"20.40"</span>  <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>  <br /><br /><br />   EASYREPORT oVRD <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">".<span style="color: #000000;">\x</span>VRD<span style="color: #000000;">\i</span>nvoice.vrd"</span> <br /><br />   PRINTAREA <span style="color: #000000;">1</span> <span style="color: #0000ff;">OF</span> oVRD;<br />         ITEMIDS    <span style="color: #000000;">&#123;</span> <span style="color: #000000;">101</span>,<span style="color: #000000;">102</span>,<span style="color: #000000;">103</span>,<span style="color: #000000;">104</span>,<span style="color: #000000;">105</span>,<span style="color: #000000;">106</span> <span style="color: #000000;">&#125;</span> ;<br />         ITEMVALUES <span style="color: #000000;">&#123;</span> company,add1,add2,Pincode,InvoiceNo,InvoiceDt <span style="color: #000000;">&#125;</span><br />   <br />   PRINTAREA <span style="color: #000000;">2</span> <span style="color: #0000ff;">OF</span> oVRD<br />   <span style="color: #00C800;">FOR</span> I = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span>aArr<span style="color: #000000;">&#41;</span><br />        <span style="color: #00C800;">IF</span> oVRD:<span style="color: #000000;">nNextRow</span> > oVRD:<span style="color: #000000;">nPageBreak</span><br />            PAGEBREAK oVRD<br />        <span style="color: #00C800;">endif</span><br />      nTotal := nTotal + VAL<span style="color: #000000;">&#40;</span>aArr<span style="color: #000000;">&#91;</span>I,<span style="color: #000000;">7</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br />      PRINTAREA <span style="color: #000000;">3</span> <span style="color: #0000ff;">OF</span> oVRD ;     <br />         ITEMIDS    <span style="color: #000000;">&#123;</span> <span style="color: #000000;">101</span>,<span style="color: #000000;">102</span>,<span style="color: #000000;">103</span>,<span style="color: #000000;">104</span>,<span style="color: #000000;">105</span>,<span style="color: #000000;">106</span>,<span style="color: #000000;">107</span> <span style="color: #000000;">&#125;</span> ;<br />         ITEMVALUES <span style="color: #000000;">&#123;</span> aArr<span style="color: #000000;">&#91;</span>I,<span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>,aArr<span style="color: #000000;">&#91;</span>I,<span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>,aArr<span style="color: #000000;">&#91;</span>I,<span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>,aArr<span style="color: #000000;">&#91;</span>I,<span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>,aArr<span style="color: #000000;">&#91;</span>I,<span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span>,aArr<span style="color: #000000;">&#91;</span>I,<span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span>,aArr<span style="color: #000000;">&#91;</span>I,<span style="color: #000000;">7</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">next</span><br />   PRINTAREA <span style="color: #000000;">4</span> <span style="color: #0000ff;">OF</span> oVRD ;     <br />      ITEMIDS    <span style="color: #000000;">&#123;</span> <span style="color: #000000;">107</span> <span style="color: #000000;">&#125;</span> ;<br />      ITEMVALUES <span style="color: #000000;">&#123;</span> str<span style="color: #000000;">&#40;</span>nTotal<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />   oVRD:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:21cvis9o] [img:21cvis9o]http&#58;//www&#46;atzwanger-software&#46;com/fw/aclip3&#46;jpg[/img:21cvis9o] [img:21cvis9o]http&#58;//www&#46;atzwanger-software&#46;com/fw/aclip2&#46;jpg[/img:21cvis9o]
Best way to print Invoice ?
Mr. Anser, and if your client wants another design: [img:r8qpnfrm]http&#58;//www&#46;atzwanger-software&#46;com/fw/clip4&#46;jpg[/img:r8qpnfrm]
Best way to print Invoice ?
Dear Mr.Otto, Thank you very much for the Sample. [quote:2zyg4z6c]I feel you are not convinced.[/quote:2zyg4z6c] I am convinced with EasyReport. I understand that it is very easy to create report using any Visual Report Designer and EasyReport is a very simple and elegant tool and as it is developed using FiveWin, the developers of EasyReport definitely knows the xBase way. In windows environment it is difficult to design a report without a visual report designer. It is difficult to calculate the printing coordinates especially when using different fonts. The latest sample which you have provided is very useful to me. The ID nos 107,108 etc are they generated automatically while you design the report ?. Do you modify these id numbers ? When I tried I was getting values -1, etc The only thing bothering me is the external dependencies. I understand that while distributing the application there will be few EasyReport DLL files + For each report there will be a .vrd file and for each PrintArea in that particular report there will be .V01 .V02 ... files. One of the threats faced by me here is that I get calls from my clients saying that files are missing, due to accidental deletion of files. The same problem exists when using DBF files too. But for my new applications I am using MySQL and thus eliminated missing DBF files. One advantage of using the FWH's builtin classes is that I reduce the chances of this problem, because everything is bundled inside the FWH application exe. Of course the strain and time taken to write the report is too much and I am also exploring other possibilities to simplify the report generation. Regards Anser
Best way to print Invoice ?
Dear MR.Max, [quote:3778cljy]Look in the bottom of the first page of your post: Manuel Mercado directly suggest you tu use TCLIPPRT class and wrote you the link .[/quote:3778cljy] I think I was blind. I don't know how I missed Mr.Manuel's post in this thread. When I tried the sample which cam along with class, I am getting a Linking error about a missing AlphaBlend Brushes function in FiveHc.Lib Regards Anser
Best way to print Invoice ?
[quote:2z1pkgye]There are very few samples on the usage of TReport.[/quote:2z1pkgye] There are lots of examples in fw\samples\report. [quote:2z1pkgye]Would have been better if we had a small sample showing the power of TReport to print a sample invoice with a regular simple invoice model containing The Company Name Company Address Invoice Details like Invoice No, Invoice Date etc. Customer Details like Customer Name, Customer Address etc[/quote:2z1pkgye] These were all shown in my example in my previous message. [quote:2z1pkgye]Column Heading with Lines/Boxes seperating the Columns Line Items with Lines/Boxes seperating the Columns Sub Total Grand Total Statuatory Declarations etc.[/quote:2z1pkgye] The above are all standard TReport features. There should be examples of all them in the sample reports. Regards, James
Best way to print Invoice ?
Mr. Otto, i am testing my EASY REPORT 2.1 PERSONAL EDITION with using your (precious!) examples in this post. I use FWH 8.04 , XHARBOUR 1.1.0 and BCC 5.5 . I add the VRD_XHARBOUR99.LIB found in \easyreport2\fivewin\lib and Compiling and linking apparently all is ok. But when i execute my .exe, this error immediately occurs and stop my application: [quote:ryoa1oit]UNRECOVERABLE ERROR 9000: Module: 'vrd.prg' was compiled into PCODE version: 5,this version of xHarbour expects version: 9[/quote:ryoa1oit] I note that the VRD_XHARBOUR99.LIB is dated 23/10/2004. Perhaps an updated VRD.LIB is requested ? Or other issue? If i bore you with my request don't reply to me: don't worry, i know that the right thing to do is to ask help to developers of EasyReport. Thank you in any case! Max
Best way to print Invoice ?
Mr. Anser, [quote:1jj3tdij]Do you modify these id numbers ? When I tried I was getting values -1, etc [/quote:1jj3tdij] This is like with resource workshop. You only give to these items Ids which you want substitute through the program. [quote:1jj3tdij]The only thing bothering me is the external dependencies[/quote:1jj3tdij] If you do not give the designer to your clients you have no dependencies. The print engine is linked in through the files: Vrd.prg Vrdbcode.prg Vrditem.prg <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> You could use a trick if you don’t want to publish the report files: You could store them in your exe and when you start your exe you could write them to the disk – or you change the vrd.prgs to access directly variables instate of reading . <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> But I think the freedom that the clients can change the reports is the advantage. Best regards, Otto
Best way to print Invoice ?
Dear Mr.Otto, Sorry to trouble you again. [quote:3shz2243]If you do not give the designer to your clients you have no dependencies. The print engine is linked in through the files: Vrd.prg Vrdbcode.prg Vrditem.prg [/quote:3shz2243] Do you mean that if I include the PRG's Vrd.Prg, Vrdbcode.Prg & Vrditem.Prg in my project then I don't have to distribute the DLL and other EasyReport dependent files available in the Folder \EasyReport2\Distribution. So that while distributing my application there is only the FWH Application.Exe file and the required Report files like .Vrd and .V01 .V02 .Vo3 ... etc. What about the Report Preview ? Thanks & Regards Anser
Best way to print Invoice ?
Max, Have you tried to include the 3 vrd-files to your project. I don't have ER libs. Best regards, Otto
Best way to print Invoice ?
Otto, compiling the 3 vrd*.prg files without the .lib now is ok! thank you. Max
Best way to print Invoice ?
Mr. Anser, rpreview.prg is the file for the preview. Best regards, Otto
Beta tester required for new clause TRUEPIXEL
We have already included Paco Garcia's new clause TRUEPIXEL into the next version of FWH. We are almost ready to publish the new version FWH 14.11 but we would like to beta test Paco's feature before publishing it. If you are a FWH 14.09 please send me an email to me to receive these new libs. We will only take a few beta testers so please don't ask for it all of you <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Thanks!
Beta tester required for new clause TRUEPIXEL
[quote="Antonio Linares":3d5wi3iw]We have already included Paco Garcia's new clause TRUEPIXEL into the next version of FWH. We are almost ready to publish the new version FWH 14.11 but we would like to beta test Paco's feature before publishing it. If you are a FWH 14.09 please send me an email to me to receive these new libs. We will only take a few beta testers so please don't ask for it all of you <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Thanks![/quote:3d5wi3iw] Dear Antonio, include FWH64 version.
Beta tester required for new clause TRUEPIXEL
If you tell me what I must make I wish become a tester
Beta tester required for new clause TRUEPIXEL
Silvio, We already published it <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> FWH 14.11
Beta testers requeridos para probar TRUEPIXEL
Ya hemos incluido la nueva claúsula TRUEPIXEL de Paco García para la próxima versión de FWH. Estos ya casi listos para publicar la nueva versión 14.11 pero nos gustaria probar este cambio de Paco antes de publicarlo. Si eres usuario de FWH 14.09 por favor envíame un email para recibir las nuevas librerías. Solo usaremos a unos pocos beta testers así que por favor no la pidais todos <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Gracias!
Better method Gradient() for class TWindow
The height and width from gradientfill() is ::nHeight and ::nWidth from the window/dialog. This includes caption, borders, etc and this seems to be wrong. We should use the real ClientArea! Use for a test {{0.49,CLR_GRAY,CLR_WHITE},{0.02,CLR_BLACK,CLR_BLACK},{0.49,CLR_WHITE,CLR_GRAY}} as gradient. The black line should located in the middle (V or H) from window/dialog [code=fw:34ghtoku]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">METHOD</span> Gradient<span style="color: #000000;">&#40;</span> aGradColors <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TWindow<br /><br />   <span style="color: #00C800;">local</span> hDC, hBmp, hBmpOld, aClient := GetClientRect<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">hWnd</span><span style="color: #000000;">&#41;</span>, nHeight := aClient<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>-aClient<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>, nWidth := aClient<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>-aClient<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><br /><br />   <span style="color: #00C800;">DEFAULT</span> aGradColors := ::<span style="color: #000000;">aGradColors</span><br /><br />   <span style="color: #00C800;">if</span> aGradColors == <span style="color: #00C800;">nil</span><br />      <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />   <span style="color: #00C800;">endif</span><br /><br />   hDC = CreateCompatibleDC<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">GetDC</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   hBmp = CreateCompatibleBitMap<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, nWidth, nHeight <span style="color: #000000;">&#41;</span><br />   hBmpOld = SelectObject<span style="color: #000000;">&#40;</span> hDC, hBmp <span style="color: #000000;">&#41;</span><br /><br />   GradientFill<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, nHeight, nWidth, aGradColors <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">if</span> ::<span style="color: #000000;">oBrush</span> != <span style="color: #00C800;">nil</span><br />      ::<span style="color: #000000;">oBrush</span>:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br /><br />   ::<span style="color: #000000;">oBrush</span> = TBrush<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   ::<span style="color: #000000;">oBrush</span>:<span style="color: #000000;">hBitmap</span> = hBmp<br />   ::<span style="color: #000000;">oBrush</span>:<span style="color: #000000;">hBrush</span> = CreatePatternBrush<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span><br /><br />   SelectObject<span style="color: #000000;">&#40;</span> hDC, hBmpOld <span style="color: #000000;">&#41;</span><br /><br />   ::<span style="color: #000000;">ReleaseDC</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></div>[/code:34ghtoku]
Better method Gradient() for class TWindow
You get best results by using Gradient Brush rather than using gradient function. Please try: [code=fw:3852ooio]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; <span style="color: #00C800;">local</span> oDlg, aGrad, oBrush<br /><br />&nbsp; &nbsp;aGrad := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#123;</span><span style="color: #000000;">0.49</span>,CLR_GRAY,CLR_WHITE<span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #000000;">0.02</span>,CLR_BLACK,CLR_BLACK<span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #000000;">0.49</span>,CLR_WHITE,CLR_GRAY<span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush GRADIENT aGrad<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">BRUSH</span> oBrush <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"GRADIENT BRUSH"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">BRUSH</span> oBrush<br /><br />&nbsp;</div>[/code:3852ooio] [url=https&#58;//imageshack&#46;com/i/po5XwBpOp:3852ooio][img:3852ooio]http&#58;//imagizer&#46;imageshack&#46;us/v2/xq90/924/5XwBpO&#46;png[/img:3852ooio][/url:3852ooio]
Better method Gradient() for class TWindow
Mr. Rao, right, but in method SetSize() the method gradient() is using and should be correct.
Better method Gradient() for class TWindow
[quote="byte-one":2u2ucum2]Mr. Rao, right, but in method SetSize() the method gradient() is using and should be correct.[/quote:2u2ucum2] SetSize does not affect gradient brush. We have 2 alternative approaches to show gradient background for a window/dialog. (A) Use gradient method/clause and (B) create a gradient brush and apply the brush to window/dialog. A) Using gradient method. (Upto ver 17.06) 1) Does not fill the client rect correctly. (This is what you rightly pointed out and your fix also is right) 2) Gradient is not resizeable when the window/dialog is resized. 3) Painting of some controls (eg. TUrlLink) fails. B) Using Gradient Brushes 1) Exactly fits the ClientRect 2) Resizeable 3) All transparent controls are painted properly This is a test program to compare: [code=fw:2u2ucum2]<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> oDlg, aGrad, oBrush, oBar, oUrl<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nChoice<br /><br />&nbsp; &nbsp;nChoice := Alert<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Select"</span>, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"GRADIENT BRUSH"</span>, <span style="color: #ff0000;">"GRADIENT METHOD"</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;aGrad := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.02</span>, CLR_HGREEN, CLR_HGREEN <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.47</span>, CLR_GRAY, &nbsp; CLR_WHITE &nbsp;<span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.02</span>, CLR_BLACK, &nbsp;CLR_BLACK &nbsp;<span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.47</span>, CLR_WHITE, &nbsp;CLR_GRAY &nbsp; <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.02</span>, CLR_HRED, &nbsp; CLR_HRED &nbsp; <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">0</span> &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush GRADIENT aGrad<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> nChoice == <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg TRUEPIXEL <span style="color: #0000ff;">BRUSH</span> oBrush <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"GRADIENT BRUSH"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg TRUEPIXEL GRADIENT aGrad <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"GRADIENT METHOD"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Make Dialog resizeable</span><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">nStyle</span> &nbsp; &nbsp;+= <span style="color: #000000;">&#40;</span> WS_MAXIMIZEBOX + WS_MINIMIZEBOX + WS_THICKFRAME <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">110</span>,<span style="color: #000000;">20</span> URLLINK oUrl URL <span style="color: #ff0000;">"www.fivetechsoft.com"</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg<br />&nbsp; &nbsp;oUrl:<span style="color: #000000;">lTransparent</span> := .t.<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">BRUSH</span> oBrush<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:2u2ucum2] [url=https&#58;//imageshack&#46;com/i/po9YKwszp:2u2ucum2][img:2u2ucum2]http&#58;//imagizer&#46;imageshack&#46;us/v2/xq90/924/9YKwsz&#46;png[/img:2u2ucum2][/url:2u2ucum2] FWH17.07 1) Adopted your suggestion to fix issue (1) 2) Also modified Gradient method and now gradient is resizeable like brushes 3) Yet to find a fix for issue No.3
Better method Gradient() for class TWindow
What next? From FWH17.07, both brush and gradient method function the same way. Let is add buttonbar and see. Gradient fills ClientRect, but part of it is occupied by buttonbar, hiding the top part of the gradient. In case we like the gradient to fit the visible client area (excluding oTop(oBar), oBottom(MsgBar),oLeft and oRight) what we can do is: oDlg:oBrush:lClientArea := .T. // FWH17.07 [url=https&#58;//imageshack&#46;com/i/pmWenYDfp:145fw42i][img:145fw42i]http&#58;//imagizer&#46;imageshack&#46;us/v2/xq90/922/WenYDf&#46;png[/img:145fw42i][/url:145fw42i]
Better method Gradient() for class TWindow
Thanks, Mr. Rao! This is perfect.
Better than free / Mejor que gratis
Better than free: [url:6cui6wrb]http&#58;//www&#46;kk&#46;org/thetechnium/archives/2008/01/better_than_fre&#46;php[/url:6cui6wrb] Mejor que gratis: [url:6cui6wrb]http&#58;//www&#46;uncafelitoalasonce&#46;com/mejor-que-gratis/[/url:6cui6wrb]
Bibliografía
Buenas tardes, soy nuevo en este lenguaje y estaba buscando bibliografía. Aclaro que no vengo de Clipper. Desde ya Muchas Gracias!
Bibliografía
Hola Santi, bienvenido Qué version estás utilizando? <!-- m --><a class="postlink" href="http://wiki.fivetechsoft.com/doku.php">http://wiki.fivetechsoft.com/doku.php</a><!-- m -->
Bibliografía
Bienvenido <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Al fin, alguien al que podré ayudarle jejejejejeje
Bibliografía
[quote="santidedos":1mdol1jz]Buenas tardes, soy nuevo en este lenguaje y estaba buscando bibliografía. Aclaro que no vengo de Clipper. Desde ya Muchas Gracias![/quote:1mdol1jz] Hola amigo: Yo tambien soy novato, aunque programe en Clipper + Fivewin , hace muchos años. Como ya sabras ahora es Harbour/XHarbour + Fivewin . De Harbour todos los libros de Clipper te valen, bueno a partir de la version 5.2 muchisimo mejor. A mi el libro que me ayudo mas (A pesar de que tiene muchos errores ) es "Curso de programacion en Clipper 5" Ed. Ra-ma. En la web. [url] <!-- m --><a class="postlink" href="https://harbour.github.io/doc/">https://harbour.github.io/doc/</a><!-- m --> <!-- m --><a class="postlink" href="http://www.fivetechsoft.com/harbour-docs/harbour.html">http://www.fivetechsoft.com/harbour-docs/harbour.html</a><!-- m --> <!-- m --><a class="postlink" href="https://harbour.github.io/doc/harbour.html#compiler-options">https://harbour.github.io/doc/harbour.h ... er-options</a><!-- m --> <!-- m --><a class="postlink" href="https://harbour.wiki/">https://harbour.wiki/</a><!-- m --> <!-- m --><a class="postlink" href="http://www.fivetechsoft.com/harbour-docs/harbour-reference-guide.htm">http://www.fivetechsoft.com/harbour-doc ... -guide.htm</a><!-- m --> <!-- m --><a class="postlink" href="https://code.google.com/archive/p/fivewin-contributions/downloads">https://code.google.com/archive/p/fivew ... /downloads</a><!-- m --> [/url] Con esto tienes material de sobra para empezar. Y luego pregunta como seran preguntas faciles(Por ahora ) Si los las se prometo contestarte, de todas formas es un foro muy colaborador, ya lo veras. Animo. Jose. Con esto puedes
Bibliografía
Hola muy bienvenido. En mi humilde opinión, la mejor bibliografía de fivewin son los usuarios del foro. Pregunta a voluntad. Saludos
Bibliografía
Muchas Gracias a todos! Muy atentos. Ya estoy mirando lo que me pasaron. En cuanto a qué versión uso: FWH 17.01, harbour 3.2 y Bcc7. De nuevo Muchas Gracias. Estaré preguntando cuando surjan dudas. Saludos!
Biblioteca para ler codigo de barras de imagem e camera
Boa tarde, alguém pode me ajudar a implementar estas rotinas para serem usadas pelo FIVEWIN? São rotinas para capturar código de barras de imagens ou cameras, ele suporta EAN/UPC, Code 128, Code 39, Interleaved 2 of 5 and QR Code O link que contém o projeto: <!-- m --><a class="postlink" href="http://sourceforge.net/projects/zbar/">http://sourceforge.net/projects/zbar/</a><!-- m --> Grato. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Biblioteca para ler codigo de barras de imagem e camera
Olá, vc conseguiu adaptar esta rotina para FiveWin + xHarbour? estou precisando para um sistema com Tablet com Windows... Se sim, e se puder compartilhar, por favor enviar para <!-- e --><a href="mailto:ronecoura@bol.com.br">ronecoura@bol.com.br</a><!-- e --> Obgdão!!! Fk com Deus!!!
Biel - Como configuro xMate para pocket pc
Biel, como eu configuro o xmate com pocket pc?
Bien por TActiveX!
En FiveWin siempre hay algo nuevo que no me atrevo a usar por ignorancia, hoy he comenzado a usar TActiveX y veo una maravilla en ello.En \Samples he encontrado (y aplicado) varios ejemplos pero no sé como usar los métodos y propiedades.Siguiendo algunos hilos encontré esto: <!-- m --><a class="postlink" href="http://www.despachoarteaga.com.mx/ActiveXXX.zip">http://www.despachoarteaga.com.mx/ActiveXXX.zip</a><!-- m --> Espero no violar derechos y si lo hago avísenme o los hago cómplices.Bueno, lo que intento es encontrar la forma de modificar el contenido de los campos editables de un archivo PDF y me pregunto si alguien ya lo ha logrado para que comparta la forma de como hacerlo.Espero respuesta. Gracias.
Bien por TActiveX!
Hola Alfredo,Con Activex no me fue posible realizar la fusión de datos con un formulario PDF, aunque, tal vez me faltó investigar más este asunto. Sigo interesado en ello, por si acaso avanzaras con el tema.Lo conseguido lo puedes ver en <!-- m --><a class="postlink" href="http://www.fivetechsoft.com/forums/viewtopic.php?t=4897&start=0">http://www.fivetechsoft.com/forums/view ... 97&start=0</a><!-- m -->
Bien por TActiveX!
Gracias Manuel. Reviso y te comento.
Bien por TActiveX!
Manuel,para hacer la fusion de pdfs puedes usar pdftk, que es open source. Entre otras cosas, es capaz de procesar forms de pdfs, mezclar y/o separar pdfs, etc. Hechale un vistazo.He logrado combinar pdf usando directamente Ghostscript, y hacer un par de cosas más, tal vez tambien ver este software te valga. Aprendí bastante del tema viendo los ejemplos de uso del PdfCreator, que en realidad es un wrapper a ghostscript, y lo mismo se puede decir de pdftk.Un saludo,Carlos.
Bien por TActiveX!
Gracias Carlos, lo voy a mirar.