topic
stringlengths
1
63
text
stringlengths
1
577k
CHECKBOX MODIFY
Many thanks EMG, your solution is clean, I was dreading having to create all those LOCAL variables. Super!
CHECKLIST with xBrowse
Hello, we made a little tool for in house use. You can copy & paste from a text editor to xBrowse. Choose between append, insert, overwrite rows in xBrowse. You can sort tasks, check/uncheck, show all, show only checked or not checked rows and intend rows. Thanks to xBrowse. Best regards, Otto [img:3ec6ieov]http://www.atzwanger-software.com/fw/chcklist_Clip4.jpg[/img:3ec6ieov] [img:3ec6ieov]http://www.atzwanger-software.com/fw/chcklist_Clip5.jpg[/img:3ec6ieov] [img:3ec6ieov]http://www.atzwanger-software.com/fw/chcklist_Clip6.jpg[/img:3ec6ieov] [img:3ec6ieov]http://www.atzwanger-software.com/fw/chcklist_Clip3.jpg[/img:3ec6ieov] [img:3ec6ieov]http://www.atzwanger-software.com/fw/chcklist_Clip2.jpg[/img:3ec6ieov] [img:3ec6ieov]http://www.atzwanger-software.com/fw/chcklist_Clip1.jpg[/img:3ec6ieov]
CHINESE IN GET
[quote="ukservice":d3aikxmo]Hello, How can I use chinese characters in get fields?. Thank you.[/quote:d3aikxmo] You need to modify TGet Class code for Two bytes characters.
CHINESE IN GET
Hello, How can I use chinese characters in get fields?. Thank you.
CHINESE IN GET
Hello. And how can be done?. Why does not FWH support this?. Thank you.
CHINESE IN GET
[quote="ukservice":3pdi9xqj]Hello. And how can be done?. Why does not FWH support this?. Thank you.[/quote:3pdi9xqj] Control position and key problem. Ex: Press Left/Right/Del key, only delete or move one byte character.But Asia use Two bytes of character.
CHINESE IN GET
Hello, I am afraid I have no idea of what I must change in tget.prg. How much is your class?. Does Fivetech plan to implement it?. Thanks.
CHINESE IN GET
Hello, Here is the RC file I used and got it to work. Please make sure the SimSum font is loaded on the workstation. TEST DIALOG 20, 41, 356, 86 STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU FONT 12, "SimSun" { EDITTEXT 201, 68, 29, 230, 12 EDITTEXT 202, 68, 44, 230, 12 CONTROL "\x89É\xA6s", 301, "BUTTON", BS_USERBUTTON | WS_TABSTOP, 302, 8, 46, 18 CONTROL "\xA8ú\xAEø", 302, "BUTTON", BS_USERBUTTON | WS_TABSTOP, 302, 29, 46, 18 CONTROL "\xA5\xB4\xA6L", 303, "BUTTON", BS_USERBUTTON | WS_TABSTOP, 302, 50, 46, 18 LTEXT "ENGLISH NAME", 101, 5, 29, 60, 12 LTEXT "\xA4\xA4\xA4å\xA9m\xA6W", 102, 5, 44, 60, 12 }
CHINESE IN GET
[quote="ukservice":lxtwqdza]Hello, I am afraid I have no idea of what I must change in tget.prg. How much is your class?. Does Fivetech plan to implement it?. Thanks.[/quote:lxtwqdza] >>How much is your class?. Please call me. richard dot service at seed dot net dot tw >>Does Fivetech plan to implement it?. I think NO. Because I modify my TGet class support that input Chinese character. Another problem: We can't add themes interface into my EXE. Because we modify TGet class not work within themes, remove themes work fine. I do'nt know Why Minigui work fine. Maybe Antonio need to fix this problem.
CHINESE IN GET
Richard, Is your class compilant with latest FWH and Harbour 3.0 builds?. Maybe Fivetech can offer you a free update if you help Antonio to implement chinese chars in TGet <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
CHINESE IN GET
[quote="ukservice":bgbzlsnz]Richard, Is your class compilant with latest FWH and Harbour 3.0 builds?. Maybe Fivetech can offer you a free update if you help Antonio to implement chinese chars in TGet <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->[/quote:bgbzlsnz] I have copy TGet class to him. But he have no idea for Chinese themes solution.
CHINESE IN GET
John, Richard, We are willing to include Richard's changes in FWH Class TGet. The problem we have is that we can´t manage a Chinese (or any other unicode language) Windows version.
CHINESE IN GET
Antonio and Richard, Thank you for help. My customer uses an english Windows 7 but in product´s name he needs also to include chinese words (a.e RED TEA ??/??). If I type ??/?? in notepad, I see propely. But not in TGet, i get ?????.
CHINESE IN GET
John, [quote:3nhxj0a6]If I type ??/?? in notepad, I see propely. But not in TGet, i get ?????[/quote:3nhxj0a6] I don't know how to write that, sorry If you provide us detailed instructions to do it, then we may be able to support it, thanks
CHINESE IN GET
[quote="Antonio Linares":38a1jcwc]John, Richard, We are willing to include Richard's changes in FWH Class TGet. The problem we have is that we can´t manage a Chinese (or any other unicode language) Windows version.[/quote:38a1jcwc] I had test Minigui TEditBox EXE( themes ), I press right/left/del ... key, cursor position work fine. Only problem is input Unicode Chinese character and appear '?' I test fwh within my TGet EXE( themes ), I press right/left/del ..key, cursor position work. but if you delete character, I look Garbled. I think count position not work. input Unicode Chinese character and appear '?' I test fwh within my TGet EXE( not themes ), I press right/left/del ..key, cursor position work. but if you delete/copy/paste character, anythink work fine. input Unicode Chinese character and appear '?'
CHINESE IN GET
Richard, if you post here your changes for the Class TGet, we will check them to fix the themes issue, thanks
CHINESE IN GET
[quote="Antonio Linares":3tr010l2]Richard, if you post here your changes for the Class TGet, we will check them to fix the themes issue, thanks[/quote:3tr010l2] I sent to your EMail. Please check it.
CHINESE IN GET
Antonio, in testget.prg I need to paste [code=fw:1nx8dc30]<div class="fw" id="{CB}" style="font-family: monospace;">RED TEA ??/?? <br /> </div>[/code:1nx8dc30] It shows RED TEA????? But If I paste it into Notepad, it works fine.
CHINESE IN GET
[quote="ukservice":3utgnd5i]Antonio, in testget.prg I need to paste [code=fw:3utgnd5i]<div class="fw" id="{CB}" style="font-family: monospace;">RED TEA ??/?? <br /> </div>[/code:3utgnd5i] It shows RED TEA????? But If I paste it into Notepad, it works fine.[/quote:3utgnd5i] I make sample EXE. testget.exe => add themes testget2.exe-> Non themes Please input any Chinese characters and try to press right/left to move position. try to press delete a Chinese character or insert or paste any Chinese characters. [url:3utgnd5i]http&#58;//www&#46;fivetech&#46;com&#46;tw/fwh/chinese-test&#46;rar[/url:3utgnd5i]
CHINESE IN GET
[quote="ukservice":36pd2njd]Antonio, in testget.prg I need to paste [code=fw:36pd2njd]<div class="fw" id="{CB}" style="font-family: monospace;">RED TEA ??/?? <br /> </div>[/code:36pd2njd] It shows RED TEA????? But If I paste it into Notepad, it works fine.[/quote:36pd2njd] Very good! I didn't thought of such an easy way to test it <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
CHINESE IN GET
Hello. I paste RED TEA ??/?? in both examples and I get in both RED TEA ??/?? If I paste in notepad, i get RED TEA ??/??.
CHINESE IN GET
My first try has been to modify FWH Clipboard object to properly retrieve the unicode text, and it is working fine: [img:3b4pomvc]http&#58;//img197&#46;imageshack&#46;us/img197/2623/captureyf&#46;png[/img:3b4pomvc] But what I have found is that if we convert the unicode text to ansi code, and then back to unicode, the unicode text does not recover its original format: MsgInfo( AnsiToWide( WideToAnsi( cUnicodeText ) ) ) <> cUnicodeText I have also tried with Harbour hb_mbtowc() and hb_wctomb() with no success. Richard, could you please test the AnsiToWide( WideToAnsi( ... ) ) test and see if you get the original unicode string ? thanks
CHINESE IN GET
[quote="Antonio Linares":1u2nx3yn]My first try has been to modify FWH Clipboard object to properly retrieve the unicode text, and it is working fine: [img:1u2nx3yn]http&#58;//img197&#46;imageshack&#46;us/img197/2623/captureyf&#46;png[/img:1u2nx3yn] But what I have found is that if we convert the unicode text to ansi code, and then back to unicode, the unicode text does not recover its original format: MsgInfo( AnsiToWide( WideToAnsi( cUnicodeText ) ) ) <> cUnicodeText I have also tried with Harbour hb_mbtowc() and hb_wctomb() with no success. Richard, could you please test the AnsiToWide( WideToAnsi( ... ) ) test and see if you get the original unicode string ? thanks[/quote:1u2nx3yn] [code=fw:1u2nx3yn]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Function</span> TestUnicode<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> cUnicodeText := <span style="color: #ff0000;">"?"</span><br /><br /><span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> AnsiToWide<span style="color: #000000;">&#40;</span> WideToAnsi<span style="color: #000000;">&#40;</span> cUnicodeText <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:1u2nx3yn] Display "?" Work fine, but I input "?" appear "?" Windows 7 Ultimate 32bit Chinese
CHINESE IN GET
Richard, John, Could you please run this test and post here what you get ? thanks [code=fw:1cwn0959]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">Function</span> TestUnicode<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> cUnicodeText := <span style="color: #ff0000;">"RED TEA ??/??"</span><br /><br />&nbsp; &nbsp;MsgInfoU<span style="color: #000000;">&#40;</span> cUnicodeText <span style="color: #000000;">&#41;</span> <br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> MSGINFOU <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;MessageBoxW<span style="color: #000000;">&#40;</span> GetActiveWindow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> WCHAR * <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, L<span style="color: #ff0000;">"Information"</span>, 0x40 <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP</div>[/code:1cwn0959] Here I get: [img:1cwn0959]http&#58;//img97&#46;imageshack&#46;us/img97/7318/captureaor&#46;png[/img:1cwn0959]
CHINESE IN GET
Antonio and Richard, First of all, thank you for the help. Antonio, I get: [url=http&#58;//imageshack&#46;us/photo/my-images/692/onezr&#46;png/:184tbo5s][IMG=http://img692.imageshack.us/img692/1126/onezr.png][/IMG][/url:184tbo5s] Uploaded with [url=http&#58;//imageshack&#46;us:184tbo5s]ImageShack.us[/url:184tbo5s] But when I copy forum code to Med editor and save, I get: [url=http&#58;//imageshack&#46;us/photo/my-images/200/56816653&#46;png/:184tbo5s][IMG=http://img200.imageshack.us/img200/7961/56816653.png][/IMG][/url:184tbo5s] Uploaded with [url=http&#58;//imageshack&#46;us:184tbo5s]ImageShack.us[/url:184tbo5s]
CHINESE IN GET
Antonio, I got it below: [img:1vzg0pe3]http&#58;//www&#46;fivetech&#46;com&#46;tw/fwh/TestUnicode1&#46;jpg[/img:1vzg0pe3] I remember HongKong's Patrick Fan said, If use Unicode, your source code( PRG ) need to save Unicode format not ANSI format.
CHINESE IN GET
Richard, Yes, I am using UTF8 format from UEStudio but no success. We need first to know what it is missing there so we can continue, I have posted the same example in the Harbour list, lets see if we get some help [url:2levf8uo]https&#58;//groups&#46;google&#46;com/group/harbour-devel/browse_thread/thread/8b5c242824ac011c?hl=es[/url:2levf8uo]
CHINESE IN GET
This example works fine using a C language to declare the string and saved the file as "unicode ansii escaped" from UEStudio. I wonder how to get the same result without the need for the C function: [code=fw:28vbkk89]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br /><br />   <span style="color: #00C800;">local</span> cUnicodeText := GetStr<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br /><br />   MsgInfoU<span style="color: #000000;">&#40;</span> cUnicodeText <span style="color: #000000;">&#41;</span> <br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> <br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP <br /><br /><span style="color: #00D7D7;">#include</span> <windows.h> <br /><span style="color: #00D7D7;">#include</span> <hbapi.h> <br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> MSGINFOU <span style="color: #000000;">&#41;</span> <br /><span style="color: #000000;">&#123;</span> <br />   MessageBoxW<span style="color: #000000;">&#40;</span> GetActiveWindow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> WCHAR * <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, L<span style="color: #ff0000;">"Information"</span>, 0x40 <span style="color: #000000;">&#41;</span>; <br /><span style="color: #000000;">&#125;</span> <br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> GETSTR <span style="color: #000000;">&#41;</span> <br /><span style="color: #000000;">&#123;</span> <br />   hb_retclen<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> char * <span style="color: #000000;">&#41;</span> L<span style="color: #ff0000;">"RED TEA ??/??"</span>, <span style="color: #000000;">26</span> <span style="color: #000000;">&#41;</span>; <br /><span style="color: #000000;">&#125;</span> <br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP</div>[/code:28vbkk89]
CHINESE IN GET
This example is working fine (got it from Harbour dev list): [code=fw:d3l1idrr]<div class="fw" id="{CB}" style="font-family: monospace;">request HB_CODEPAGE_UTF8 <br />request HB_CODEPAGE_UTF16LE <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> cUnicodeText := <span style="color: #ff0000;">"RED TEA ??/??"</span> <br /><br />&nbsp; &nbsp;MsgInfoU<span style="color: #000000;">&#40;</span> hb_translate<span style="color: #000000;">&#40;</span> cUnicodeText, <span style="color: #ff0000;">'UTF8'</span>, <span style="color: #ff0000;">'UTF16LE'</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> MSGINFOU <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;MessageBoxW<span style="color: #000000;">&#40;</span> GetActiveWindow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> WCHAR * <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, L<span style="color: #ff0000;">"Information"</span>, 0x40 <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP &nbsp;</div>[/code:d3l1idrr]
CHINESE IN GET
Antonio, Yes, two samples work fine. So you have any idea for Unicode and Themes within Chinese character??
CHINESE IN GET
Richard, We are working on it. We already implemented support for unicode in the clipboard <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
CHINESE IN GET
[quote="Antonio Linares":39964ec1]Richard, We are working on it. We already implemented support for unicode in the clipboard <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:39964ec1] Sounds great.
CHINESE IN GET
Antonio, Any update?. Thank you.,
CHINESE IN GET
John, We are working on it, not ready yet
CHINESE IN GET
Hi, Try to set Non Chinese OS that run Chinese App(FWH). You will be know our problem. [quote:4tc0ydu0] Other version XP to install Chinese word module by ShumingWang » Thu Oct 20, 2011 11:04 am If your operating system is XP, you first need to install the following way 'East Asian language support package'. 1, go to Control Panel - Date, Time, Language and Regional Options - Regional and Language Options - Languages ??tab, check the Install files for East Asian Languages ??- Advanced tab, select the first drop-down box Chinese (PRC), and then check the following list of items related to all Chinese - OK. Will be asked to insert the Windows XP installation CD to install East Asian language pack. Then, to make the program the system to display Chinese or Chinese website, should also be in the IE browser's top menu on the Tools - Internet Options - General tab, click Add in the bottom of Languages ??and select Chinese [zh] - OK. 2, the installation is complete, call the Chinese input method: Please go to Control Panel - Date, Time, Language and Regional Options - Regional and Language Options - Languages ??tab - Details - Settings tab - Add - In the Input Language drop-down box select Chinese (PRC) - in the Keyboard layout / IME drop-down box to select the input method to use - OK - but also again in the lower part of the key Settings window to set shortcut keys to facilitate the rapid call for future input method - OK. 3, If the above list is not on your favorite input method, such as five-stroke input method, etc., please download the plug-in software from other websites or IME built-in input, external input directly from the Start - All Programs called, built-in IME press into the 2-point method to add IME list is selected. [/quote:4tc0ydu0]
CHINESE IN GET
Antonio, Is there any update?. Thanks.
CHINESE IN GET
Antonio, [quote="ukservice":1z9s1gup] Is there any update?. [/quote:1z9s1gup] We also need this feature urgent and would be very happy if it will be available soon. Many thanks.
CHINESE IN GET
up.
CHINESE IN GET
Hello, Any update? Thanks.
CHINESE IN GET
Hello again, Any update?. I have a customer interested in our software but he needs to use chinese in get. Thank you.
CHINESE IN GET
[quote="ukservice":16ofrlqz]Hello again, Any update?. I have a customer interested in our software but he needs to use chinese in get. Thank you.[/quote:16ofrlqz] Now, my solution only support TGet for Chinese input. If your customer no need or later Unicode, we have modify TGet code.
CHINESE IN GET
John, Actually the only solution is to use FWH Class TEdit instead of Class TGet
CHINESE IN GET
Antonio, There is not info at Manual or Wiki about class TEdit(). Also, why don´t you replace TGET by standard Windows TEdit?. Anyway, It does not work. See sample: [code=fw:q2qiqfaj]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// Testing two characters support GETs (China, etc.)</span><br /><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, oEdit, cGet := <span style="color: #ff0000;">"a normal GET &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Testing two characters support for GETs"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">COLOR</span> <span style="color: #000000;">0</span>, GetSysColor<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">600</span>,<span style="color: #000000;">600</span><br /><br /><br />&nbsp; &nbsp;oEdit = TEdit<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;">2</span>, <span style="color: #000000;">3</span>,, oDlg, <span style="color: #000000;">200</span>, <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// METHOD New( nRow, nCol, bSetGet, oWnd, nWidth, nHeight ) CLASS TEdit</span><br /><br />&nbsp; &nbsp;oEdit:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Hello"</span> <span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">5</span>,<span style="color: #000000;">3</span> <span style="color: #0000ff;">GET</span> cGet <span style="color: #0000ff;">OF</span> oDlg<br /><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">6</span>, <span style="color: #000000;">4</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Class"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> oEdit:<span style="color: #000000;">GetText</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"Get Text"</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">23</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 /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:q2qiqfaj] [url=http&#58;//imageshack&#46;us/photo/my-images/141/errortget&#46;png/:q2qiqfaj][IMG=http://img141.imageshack.us/img141/6915/errortget.png][/IMG][/url:q2qiqfaj] Uploaded with [url=http&#58;//imageshack&#46;us:q2qiqfaj]ImageShack.us[/url:q2qiqfaj]
CHINESE IN GET
John, 1. No, it is not documented yet, anyhow is a simple wrapper for a standard Windows Edit control. 2. If we do that we will break lots of FWH users applications. No way. 3. The written text is unicode and you can use non-unicode functions to display it. In example: Instead of using Windows API MessageBoxA(), MessageBoxW() has to be used. Also, instead of using GetWindowTextA(), GetWindowTextW() has to be used. Windows translates many of its functions to <name>A or <name>W depending if unicode is used or not.
CHINESE IN GET
Antonio, Thanks for reply. Anyway, I need to use GET as the user should use chinese chars in every get. Maybe Richard could help you to modify TGET class for all the comunity. Thanks.
CHINESE IN GET
[quote="Antonio Linares":35xdldkb] 2. If we do that we will break lots of FWH users applications. No way. [/quote:35xdldkb] But maybe it would be possible making the necessary changes optional? If somebody wants to use Unicode in there applications, they can call e.g. the FWH function SetUnicode(.T.). So nothing will break in other FWH users applications. IMO in future more and more FWH users needs Unicode support. Or maybe this will be a solution: Making the dialog with the GETs with Harbour QT as an Windows DLL file and call this DLL out of the existing FWH application.
CHINESE IN GET
I don't know what may have changed in our computers but now copying and pasting the "RED TEA..." that we had with unicode in this thread, now it is not longer properly pasted in notepad, neither resources editor, etc Please try this change, those that can properly copy and paste: [code=fw:1lhwe7a2]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   @ <span style="color: #000000;">6</span>, <span style="color: #000000;">4</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Class"</span> <span style="color: #0000ff;">ACTION</span> ShowText<span style="color: #000000;">&#40;</span> oEdit:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span> ;<br />      <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">23</span><br /><br />...<br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> SHOWTEXT <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   LPWSTR pText<span style="color: #000000;">&#91;</span> <span style="color: #000000;">200</span> <span style="color: #000000;">&#93;</span>;<br />   <br />   GetWindowTextW<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, pText, <span style="color: #000000;">200</span> <span style="color: #000000;">&#41;</span>;<br />   MessageBoxW<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, pText, L<span style="color: #ff0000;">"Info"</span>, MB_ICONINFORMATION <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP   <br /> </div>[/code:1lhwe7a2]
CHM help file to use with FWH
Mr. Enrico What's application for create CHM file ? and How to use with FWH ? Regards Areang
CHM help file to use with FWH
You have to use an authoring software like Help & Manual: [url:4k370edp]http&#58;//www&#46;ec-software&#46;com[/url:4k370edp] And then use HtmlHelp(), HTMLHelpCtx() and HTMLHelpPopup() to show the CHM from FWH. EMG
CHR(13) es para el enter... y para el TAB?
Eso Necesito saber como agregar a una linea de texto un TAB gracias.
CHR(13) es para el enter... y para el TAB?
Chr( 9 )
CHR(13) es para el enter... y para el TAB?
Completo: [url:36xo9y2g]http&#58;//www&#46;theasciicode&#46;com&#46;ar/extended-ascii-code/graphic-character-low-density-dotted-ascii-code-176&#46;html[/url:36xo9y2g] Saludos.
CHR(13) es para el enter... y para el TAB?
gracias
CHRGRP CHR_WIDE
HI All, I try CHRGRP CHR_WIDE but got an error, can someone please show an example for the usage of the Redefine GET ....... CHRGRP CHR_WIDE Thanks and regards
CHRGRP CHR_WIDE
[url:13w80082]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=33932&p=201009&hilit=CHRGRP#p201009[/url:13w80082]
CHRGRP CHR_WIDE
Thanks Karinha, i found the CHRGRP should be CHRGROUP .
CIERRE INCOMPRENSIBLE DE CAJAS DE DIALOGO
Apreciados usuarios: Mediante una funcion de mantenimiento me permito abrir hasta tres cajas de dialogo (con distinto nombre) y al ir cerrando una a una, me sucede que en ocasiones se me cierra otra ventana sobre la que no he pulsado su boton de cierre. Como si una ventana me controlara el cierre de otras. A alguien le ha pasado algo parecido ?. Pido su ayuda compañeros !!
CIERRE INCOMPRENSIBLE DE CAJAS DE DIALOGO
Cuando creas las cajas de diálogo les pones la claúsula OF oDlg ? DEFINE DIALOG oDlg ... OF oDlgAnterior ? En caso de que lo hagas así, prueba a quitarles esa claúsula: DEFINE DIALOG oDlg ...
CIERRE INCOMPRENSIBLE DE CAJAS DE DIALOGO
Señor Linares: Recorte la cláusula, incluso mediante un parámetro que recibo y una estructura condicional creo una caja distinta en cada caso. Sin embargo el comportamiento persiste. Continuaré probando y si encuentro la solución se la comunicaré.
CLASE OLE PARA 16 Y 32 BITS
SALUDOS POR FAVOR SI ALGUIEN TIENE LA CLASE OLE, TOLEAUTO ACTUALIZADA Y ME LA PODRIA MANDAR SE LO AGRADECERIA MUCHO, GRACIAS, TENGO ES UNA VERSION DEL 2001 QUE ME DA ERROR AL TRATAR DE PASAR DE EXCEL A DBF GRACIAS COMPAÑEROS
CLASE OLE PARA 16 Y 32 BITS
One question / una cuestión: ¿ Clipper / Habour .or. xHarbour ?
CLASE OLE PARA 16 Y 32 BITS
saludos preferiblemente de harbour pero me conformo con alguna que sirva ya que no leen desde excel, da error de property no se que cosa en GETproperty workbooks o algo asi, me tiene verde, tengo mas de 2 meses en este detalle, gracias
CLASE OLE PARA 16 Y 32 BITS
[quote="QAZWSX2K":2mho67qy]saludos preferiblemente de harbour pero me conformo con alguna que sirva ya que no leen desde excel, da error de property no se que cosa en GETproperty workbooks o algo asi, me tiene verde, tengo mas de 2 meses en este detalle, gracias[/quote:2mho67qy] En Harbour y sin librerías adicionales, yo lo hago así (ahora me doy cuenta de que no estoy eliminando al final oExcel ni oHoja): ========================== oExcel := CreateOLEObject("Excel.Application") OLESetProperty(oExcel,"Visible", .T.) OLEInvoke( OLEGetProperty(oExcel,"Workbooks"), "Open", cPathxls ) oHoja := OLEGetProperty(oExcel,"ActiveSheet") ccognoms := "zzz" nRow := 1 While AllTrim( ccognoms ) <> "" nRow ++ Msgnowait( AMPAarra, "Atención!" , "Leyendo e importando datos." + ; " Espere unos momentos por favor...." ) cCCC := OleGetProperty( OleGetProperty( oHoja, "Cells", nRow, 2 ), "Value" ) If Valtype( cCCC) = "U" cCCC := "00000000000000000000" EndIf cccc := Upper( cccc ) Traza(1, "cccc=", cccc ) cmail := OleGetProperty( OleGetProperty( oHoja, "Cells", nRow, 3 ), "Value" ) If Valtype( cmail) = "U" cmail := Space(1) EndIf cmail := Upper( cmail ) Traza(1, "cmail=", cmail ) cdatanaix := OleGetProperty( OleGetProperty( oHoja, "Cells", nRow, 4 ), "Value" ) If Valtype( cdatanaix) = "U" cdatanaix := CToD("01/01/1900") elseIf Valtype( cdatanaix) = "C" cdatanaix := CToD(cdatanaix) EndIf Traza(1, "cdatanaix=", cdatanaix) cCognoms := OleGetProperty( OleGetProperty( oHoja, "Cells", nRow, 7 ), "Value" ) If Valtype( ccognoms) = "U" ccognoms := space(1) EndIf cCognoms := Upper( ccognoms ) Traza(1, "ccognoms=", ccognoms ) cNom := OleGetProperty( OleGetProperty( oHoja, "Cells", nRow, 8 ), "Value" ) If Valtype( cnom) = "U" cnom := space(1) EndIf cNOM := Upper( cNOM ) Traza(1, "cnom=", cNOM ) cLOPD := OleGetProperty( OleGetProperty( oHoja, "Cells", nRow, 10 ), "Value" ) If Valtype( clopd) = "U" clopd := .F. Else clopd := .T. EndIf Traza(1, "clopd=", cLOPD ) OLEInvoke( oExcel, "Quit" ) ========================== Es lento pero funciona. Saludos Carlos G.
CLASE OLE PARA 16 Y 32 BITS
Les recomiendo que se den una vuelta por : <!-- m --><a class="postlink" href="http://vikthor.com.mx/fivewin">http://vikthor.com.mx/fivewin</a><!-- m --> en la seccion enlaces y busquen la liga a la página de José Giménez
CLASE OLE PARA 16 Y 32 BITS
gracias aunque interesante si me dijeras que hace la funcion traza() [quote="FiveWiDi":3mw1f8i3][quote="QAZWSX2K":3mw1f8i3]saludos preferiblemente de harbour pero me conformo con alguna que sirva ya que no leen desde excel, da error de property no se que cosa en GETproperty workbooks o algo asi, me tiene verde, tengo mas de 2 meses en este detalle, gracias[/quote:3mw1f8i3] En Harbour y sin librerías adicionales, yo lo hago así (ahora me doy cuenta de que no estoy eliminando al final oExcel ni oHoja): ========================== oExcel := CreateOLEObject("Excel.Application") OLESetProperty(oExcel,"Visible", .T.) OLEInvoke( OLEGetProperty(oExcel,"Workbooks"), "Open", cPathxls ) oHoja := OLEGetProperty(oExcel,"ActiveSheet") ccognoms := "zzz" nRow := 1 While AllTrim( ccognoms ) <> "" nRow ++ Msgnowait( AMPAarra, "Atención!" , "Leyendo e importando datos." + ; " Espere unos momentos por favor...." ) cCCC := OleGetProperty( OleGetProperty( oHoja, "Cells", nRow, 2 ), "Value" ) If Valtype( cCCC) = "U" cCCC := "00000000000000000000" EndIf cccc := Upper( cccc ) Traza(1, "cccc=", cccc ) cmail := OleGetProperty( OleGetProperty( oHoja, "Cells", nRow, 3 ), "Value" ) If Valtype( cmail) = "U" cmail := Space(1) EndIf cmail := Upper( cmail ) Traza(1, "cmail=", cmail ) cdatanaix := OleGetProperty( OleGetProperty( oHoja, "Cells", nRow, 4 ), "Value" ) If Valtype( cdatanaix) = "U" cdatanaix := CToD("01/01/1900") elseIf Valtype( cdatanaix) = "C" cdatanaix := CToD(cdatanaix) EndIf Traza(1, "cdatanaix=", cdatanaix) cCognoms := OleGetProperty( OleGetProperty( oHoja, "Cells", nRow, 7 ), "Value" ) If Valtype( ccognoms) = "U" ccognoms := space(1) EndIf cCognoms := Upper( ccognoms ) Traza(1, "ccognoms=", ccognoms ) cNom := OleGetProperty( OleGetProperty( oHoja, "Cells", nRow, 8 ), "Value" ) If Valtype( cnom) = "U" cnom := space(1) EndIf cNOM := Upper( cNOM ) Traza(1, "cnom=", cNOM ) cLOPD := OleGetProperty( OleGetProperty( oHoja, "Cells", nRow, 10 ), "Value" ) If Valtype( clopd) = "U" clopd := .F. Else clopd := .T. EndIf Traza(1, "clopd=", cLOPD ) OLEInvoke( oExcel, "Quit" ) ========================== Es lento pero funciona. Saludos Carlos G.[/quote:3mw1f8i3]
CLASE PRINTER Y PDF.
La idea es poner un pdf que es un diseño en una parte pequeña de la hoja para que se vea como hay que montar ese producto. Con la clase Printer, existe alguna manera de imprmir un pdf como si fuera un bmp : [code=fw:ka6qc288]<div class="fw" id="{CB}" style="font-family: monospace;">  aCoordss:= oPrn:<span style="color: #000000;">Cmtr2Pix</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span>,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />          aCoords := oPrn:<span style="color: #000000;">Cmtr2Pix</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">5</span>,<span style="color: #000000;">2.7</span><span style="color: #000000;">&#41;</span><br />          OPRN:<span style="color: #000000;">SAYBITMAP</span><span style="color: #000000;">&#40;</span>aCoordss<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>,aCoordss<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>,<span style="color: #ff0000;">"fichero.BMP"</span>,aCoords<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>,aCoords<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span></div>[/code:ka6qc288] Gracias por vuestra ayuda.
CLASE PRINTER Y PDF.
Hola, para el que pueda interesarle la solución que hemos tomado es : Convertir el pfd a BMP mediante linea de comandos para poder trabajarlo despues. Os dejo la utilidad que hemos utilizado. Saludos a Todos. <!-- m --><a class="postlink" href="http://www.softinterface.com/Convert-PDF-To-Image/Foreign/Spanish/Convertir-PDF-a-TIFF.HTM">http://www.softinterface.com/Convert-PD ... a-TIFF.HTM</a><!-- m -->
CLASE REPEXCEL
Hola, utilizo la clase repexcel para poder exportar desde treport a planillas excel. Funciona perfecto simpre que los listados sean desde un archivo, si está basado en un array me genera el listado pero sin los registros (o sea el excel sólo tiene la cabecera del reporte y los títulos de las columnas) Otro problema que detecté es que si defino un PICTURE en el reporte me tira error acceso al array en la línea TSALXLS:NEW(99). De todos modos este error esta también en el listado basado en arrays por lo que no se si su origen es por este motivo o siempre que utilizo PICTURES. Saludos Iván
CLASE REPEXCEL
A nadie le ha ocurrido este problema? Hay alguna otra clase para exportar a Excell desde el Preview? Será que habrá que pasar el array a un archivo temporal y desde allí armar el listado? Gracias y saludos Iván
CLASE REPEXCEL
Tienes que utilizar este bloque de codigo, antes del Activate del report. [code=fw:2yoiqcvh]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oRep:<span style="color: #000000;">bPreInit</span> := <span style="color: #000000;">&#123;</span> || n:= <span style="color: #000000;">1</span> <span style="color: #000000;">&#125;</span> <br /><span style="color: #B900B9;">//donde n es tu contador que recorre la matriz/array.</span></div>[/code:2yoiqcvh]
CLASE REPEXCEL
Hola Renomas. ¿Podrías indicarme cómo activar correctamente el oReport:CellView() en Repexcel? Siempre he utilizado sin problemas tu librería REPEXCEL. Es excelente. Hasta hoy no había utilizado oReport:Cellview() en mis sistemas, pero un cliente me lo ha solicitado y no obedece. He revisado los prgs de la librería, pero francamente no encuentro donde meterle mano. ¿Hay alguien que lo haya hecho y pueda suministrarme un ejemplo? He logrado que funcione parcialmente así: IF oReport:lCreated // oReport:lSeparator := .t. //oReport:CellView() oReport:lBoxOnTotal:=.t. ENDIF ACTIVATE REPORT oReport ; ON CHANGE oReport:Separator() Pero... me agrega una linea más, antes de cada total de Grupo, y es totalmente anti-estético. Mucho agradeceré sus orientaciones. Saludos.
CLASE REPEXCEL
Experimenta modificar el method saydata de tsalxls [code=fw:2ctjj93d]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> SayData<span style="color: #000000;">&#40;</span> nCol, nLine <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TSalXLS<br /><br />     <span style="color: #00C800;">LOCAL</span> nFont, ;<br />           nFor, ;<br />           oCol := ::<span style="color: #000000;">oRpt</span>:<span style="color: #000000;">aColumns</span><span style="color: #000000;">&#91;</span> nCol <span style="color: #000000;">&#93;</span>, ;<br />           nAlignament:= ALING_NULL, ;<br />           uVal, ;<br />           nFormat := <span style="color: #000000;">0</span>, ;<br />           nBorder := BORDER_NONE  <span style="color: #B900B9;">//ADICIONADO !!</span><br /><br /><br />     <span style="color: #00C800;">IF</span> nLine > len<span style="color: #000000;">&#40;</span> oCol:<span style="color: #000000;">aData</span><span style="color: #000000;">&#41;</span><br />        <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />     <span style="color: #00C800;">ENDIF</span><br /><br />     nFont := ::<span style="color: #000000;">cFont</span><span style="color: #000000;">&#40;</span> eval<span style="color: #000000;">&#40;</span> oCol:<span style="color: #000000;">bDataFont</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />     <span style="color: #00C800;">If</span> oCol:<span style="color: #000000;">lGrid</span>                      <span style="color: #B900B9;">//ADICIONADO !!</span><br />         nBorder := BORDER_ALL <span style="color: #B900B9;">//ADICIONADO !!</span><br />     <span style="color: #00C800;">EndIf</span>                                 <span style="color: #B900B9;">//ADICIONADO !!</span><br /><br />     <span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br />        <span style="color: #00C800;">CASE</span> oCol:<span style="color: #000000;">aPad</span><span style="color: #000000;">&#91;</span> nLine <span style="color: #000000;">&#93;</span> == RPT_LEFT<br />             nAlignament := ALING_LEFT<br /><br />        <span style="color: #00C800;">CASE</span> oCol:<span style="color: #000000;">aPad</span><span style="color: #000000;">&#91;</span> nLine <span style="color: #000000;">&#93;</span> == RPT_RIGHT<br />             nAlignament := ALING_RIGHT<br /><br />        <span style="color: #00C800;">CASE</span> oCol:<span style="color: #000000;">aPad</span><span style="color: #000000;">&#91;</span> nLine <span style="color: #000000;">&#93;</span> == RPT_CENTER<br />             nAlignament := ALING_CENTER<br />     <span style="color: #00C800;">ENDCASE</span><br /><br />     uVal := Eval<span style="color: #000000;">&#40;</span> oCol:<span style="color: #000000;">aData</span><span style="color: #000000;">&#91;</span> nLine <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <br /><br />     <span style="color: #00C800;">IF</span> !empty<span style="color: #000000;">&#40;</span> oCol:<span style="color: #000000;">aPicture</span><span style="color: #000000;">&#91;</span> nLine <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> .or. valtype<span style="color: #000000;">&#40;</span> uVal <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">'D'</span>  <span style="color: #B900B9;">//Cuando es Fecha tambien env.</span><br />        nFormat := ::<span style="color: #000000;">cFormat</span><span style="color: #000000;">&#40;</span> oCol:<span style="color: #000000;">aPicture</span><span style="color: #000000;">&#91;</span> nLine <span style="color: #000000;">&#93;</span>, valtype<span style="color: #000000;">&#40;</span> uVal <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />     <span style="color: #00C800;">ENDIF</span><br /><br />     @ ::<span style="color: #000000;">nRow</span>, nCol XLS <span style="color: #0000ff;">SAY</span> uVal <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oXLS</span> ;<br />                              FORMAT nFormat ;<br />                              <span style="color: #0000ff;">FONT</span> nFont     ;<br />                              ALIGNAMENT nAlignament ;<br />                              BORDER nBorder   <span style="color: #B900B9;">//ADICIONADO !!</span><br />     <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:2ctjj93d]
CLASE REPEXCEL
Gracias por contestar, Renomas. Intentaré modificar el method que indicas, y te aviso. Saludos.
CLASE REPEXCEL
Renomas: Lo he hecho así (no he logrado encontrar la solución modificando TSalxls): IF oReport:lCreated // oReport:lSeparator := .t. //oReport:CellView() // oReport:lBoxOnTotal:=.t. ENDIF ACTIVATE REPORT oReport ; ON STARTGROUP ( oReport:NewLine(), EVAL(bSECCION) ) ; // ; ON CHANGE oReport:Separator() ; //necesario cuando se usa RepExcel, para CellView ON ENDGROUP oReport:BackLine(1) //necesario cuando se usa RepExcel, para CellView No es lo mejor, pero se asemeja un poco más al Method CellView, cuando no se utiliza Repexcel. Saludos.
CLASE REPEXCEL
Lo he mejorado así: ACTIVATE REPORT oReport ; ON STARTGROUP ( oReport:NewLine(),; oReport:NewLine(),; //Por repexcel EVAL(bSECCION),; if(!oReport:lFirstRow,oReport:Separator,) ) ; //por repexcel ON CHANGE oReport:Separator() ; //necesario cuando se usa RepExcel, para CellView ON ENDGROUP oReport:BackLine(1) //necesario cuando se usa RepExcel, para CellView Saludos.
CLASE REPEXCEL
Podes enviarme un ejemplo de como lo haces... e que version de fw utilizas?
CLASE REPEXCEL
Hola Renomas, te he enviado el ejemplo solicitado a: <!-- e --><a href="mailto:ducanlive@hotmail.com">ducanlive@hotmail.com</a><!-- e --> Utilice la version 712. Saludos
CLASE TDOSPRN NO IMPRIME EN LPT1
Nuevamente hola a todos: Su ayuda por favor utilizo la clase Tdosprn de fwh 14.12 con Harbour 3.2, pero no me manda la impresión. Que podría ser? LOCAL oPrn IF !IsPrint("LPT1:") RETURN nil ENDIF oPrn := TDosPrn():New("LPT1") oPrn:StartPage() oPrn:say(10,10,"Prueba de Impresión") oPrn:EndPage() Asi es como lo uso pero no manda nada hacia la impresora nada.
CLASE TDOSPRN NO IMPRIME EN LPT1
Toma en cuanta con que Windows de 32 bits, no controla al LPTx, Prueba asi: [code=fw:12brxsx0]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">LOCAL</span> oPrn<br /><span style="color: #00C800;">IF</span> !IsPrint<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"LPT1"</span><span style="color: #000000;">&#41;</span>        <span style="color: #B900B9;">// sin los dos puntos</span><br /> <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span><br /><span style="color: #00C800;">ENDIF</span><br />oPrn := TDosPrn<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"LPT1"</span><span style="color: #000000;">&#41;</span><br />oPrn:<span style="color: #000000;">StartPage</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oPrn:<span style="color: #0000ff;">say</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">10</span>,<span style="color: #000000;">10</span>,<span style="color: #ff0000;">"Prueba de Impresión"</span><span style="color: #000000;">&#41;</span><br />oPrn:<span style="color: #0000ff;">EndPage</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /> </div>[/code:12brxsx0]
CLASE TDOSPRN NO IMPRIME EN LPT1
hola , yo lo hago de esta forma: [code=fw:12vsit9i]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #0000ff;">PRINTER</span> oPrn <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Guia Despacho"</span> <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"nombre impresora conectada a LPT1"</span> &nbsp;<span style="color: #B900B9;">// renombro la impresora EJ: IBMXL en windows</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> Fon1 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Arial Narrow"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-12</span> <span style="color: #0000ff;">OF</span> oPrn<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">PAGE</span><br />&nbsp; &nbsp; &nbsp;Largo := oPrn:<span style="color: #000000;">nVertSize</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;Hancho:= oPrn:<span style="color: #000000;">nHorzSize</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;nRow += <span style="color: #000000;">0.38</span><br />&nbsp; &nbsp; &nbsp;oPrn:<span style="color: #000000;">CmSay</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> nRow += <span style="color: #000000;">0.38</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">3.5</span>,<span style="color: #ff0000;">"GUIA DESPACHO NRO."</span>+cNum, Fon1 <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;nRow += <span style="color: #000000;">0.38</span><br />&nbsp; &nbsp; &nbsp;nRow += <span style="color: #000000;">0.38</span><br />&nbsp; &nbsp; &nbsp;oPrn:<span style="color: #000000;">CmSay</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> nRow += <span style="color: #000000;">0.38</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">12.9</span>,STR<span style="color: #000000;">&#40;</span>DAY<span style="color: #000000;">&#40;</span>cFec<span style="color: #000000;">&#41;</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> &nbsp;, Fon1 <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;....... <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.......<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPrn:<span style="color: #000000;">CmSay</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">21.70</span>,<span style="color: #000000;">18</span>,TRANSFORM<span style="color: #000000;">&#40;</span>tTotal,<span style="color: #ff0000;">"@E ####,###,###"</span><span style="color: #000000;">&#41;</span>, Fon1 <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">ENDPAGE</span><br />&nbsp; &nbsp; Fon1:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #0000ff;">ENDPRINT</span><br /><br />&nbsp;</div>[/code:12vsit9i] esto me ha funcionado desde win98 a win 8.1 sin problemas espero que te sirva saludos desde chile. Armando
CLASE TDOSPRN NO IMPRIME EN LPT1
Agradezco a cada uno sus respuestas, lo que hice fué: Desinstalar la impresora de matriz y volver a instalarla como Genérica, al parecer ya quedó resuelto, seguiré probando. Muchas gracias a Todos.
CLASE TSystemInfo
Hola: ¿Existe alguna versión más actualizada y que funcione con los últimos sistemas operativos? Gracias.
CLASE TSystemInfo
Quizá la actualización del método WinVer() sea suficiente [code=fw:2mvcr34q]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> WinVer<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">Class</span> TSystemInfo<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> cVersion := <span style="color: #ff0000;">""</span><br />&nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">Do</span> <span style="color: #00C800;">Case</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Case</span> ::<span style="color: #000000;">IsWin95</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ; cVersion := <span style="color: #ff0000;">"Windows 95"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Case</span> ::<span style="color: #000000;">IsWin95SP1</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp;; cVersion := <span style="color: #ff0000;">"Windows 95 Service Pack 1"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Case</span> ::<span style="color: #000000;">IsWin95OSR2</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; ; cVersion := <span style="color: #ff0000;">"Windows 95 OSR2"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Case</span> ::<span style="color: #000000;">IsWin98</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ; cVersion := <span style="color: #ff0000;">"Windows 98"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Case</span> ::<span style="color: #000000;">IsWin98SP1</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp;; cVersion := <span style="color: #ff0000;">"Windows 98 Service Pack 1"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Case</span> ::<span style="color: #000000;">IsWin98SE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; ; cVersion := <span style="color: #ff0000;">"Windows 98 Second Edition"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Case</span> ::<span style="color: #000000;">IsWinME</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ; cVersion := <span style="color: #ff0000;">"Windows ME"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Case</span> ::<span style="color: #000000;">IsWinNT31</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; ; cVersion := <span style="color: #ff0000;">"Windows NT 3.1"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Case</span> ::<span style="color: #000000;">IsWinNT35</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; ; cVersion := <span style="color: #ff0000;">"Windows NT 3.5"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Case</span> ::<span style="color: #000000;">IsWinNT351</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp;; cVersion := <span style="color: #ff0000;">"Windows NT 3.51"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Case</span> ::<span style="color: #000000;">IsWinNT4</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp;; cVersion := <span style="color: #ff0000;">"Windows NT 4"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Case</span> ::<span style="color: #000000;">IsWin2000</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; ; cVersion := <span style="color: #ff0000;">"Windows 2000"</span> + <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">IsWin2000Prof</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">" Professional"</span>, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">IsWin2000Server</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">" Server"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">//+ " " + ::cSP + " build " + LTrim( Str( ::nBuild ) )</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Case</span> ::<span style="color: #000000;">IsWinXP</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ; cVersion := <span style="color: #ff0000;">"Windows XP "</span> + <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lAnd<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">wSteMask</span>, <span style="color: #000000;">512</span> <span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"Home Edition"</span>, <span style="color: #ff0000;">"Professional"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Case</span> ::<span style="color: #000000;">IsWin2003Server</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ; cVersion := <span style="color: #ff0000;">"Windows Server 2003"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Case</span> IsWinVista<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ; cVersion := <span style="color: #ff0000;">"Windows Vista"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Case</span> IsWin7<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ; cVersion := <span style="color: #ff0000;">"Windows 7"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Case</span> IsWin8<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ; cVersion := <span style="color: #ff0000;">"Windows 8"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Case</span> IsWindows10<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ; cVersion := <span style="color: #ff0000;">"Windows 10"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Otherwise</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; cVersion := <span style="color: #ff0000;">"Unknown Windows version"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">EndCase</span><br /><br />&nbsp; &nbsp;cVersion += <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span> IsWin64<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">" 64 "</span>, <span style="color: #ff0000;">" 32 "</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"Bits"</span><br /><br /><span style="color: #00C800;">Return</span> cVersion</div>[/code:2mvcr34q] Fuente: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=185645#p185646">viewtopic.php?p=185645#p185646</a><!-- l -->
CLASE TXLS 2.1
Alguien por favor puede enviarme la clase TXLS Version 2.1 para xHarbour. Es urgente por favor. Muchas Gracias.
CLASE TXLS 2.1
Si observas, la encontrarás en este mismo foro. Sería bueno además que si solicitas algo no lo hagas en el foro de utilidades sino de consultas porque aquí están las utilidades para bajar. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Pero lo mas importante, si observas en este foro hallarás lo que buscas.
CLASE VTASKBAR ERROR EN WIN98
Este es el error que arroja al ejecutar en win98 Application =========== Path and name: C:\UTIL\DESA32BITS\PRUEBA MENU XP\PRUEBA13\VM.EXE (32 bits) Size: 1,311,232 bytes Time from start: 0 hours 0 mins 0 secs Error occurred at: 03/21/07, 15:04:51 Error description: Error FiveWin/6 Cannot create window or control: Class: TVMENU Caption: System Error: La operación se ha completado correctamente. Stack Calls =========== Called from: WINDOW.PRG => WNDCREATEERROR(0) Called from: WINDOW.PRG => TVMENU:CREATE(0) Called from: VMENU.PRG => TVMENU:NEW(361) Called from: prueba.prg => MAIN(32) System ====== CPU type: 1600 Mhz Hardware memory: 160 megs Free System resources: 90 % GDI resources: 90 % User resources: 90 % Compiler version: xHarbour build 0.99.71 Intl. (SimpLex) Windows version: 4.10, Build 67766446 A Windows total applications running: 0 Variables in use ================ Procedure Type Value ========================== WNDCREATEERROR Param 1: O Class: TVMENU Local 1: C " Class: TVMENU Caption: System Error: La operación se ha completado correctamente. " TVMENU:CREATE Local 1: C "TVMENU" Local 2: O Class: TVMENU TVMENU:NEW Param 1: N 78 Param 2: N 0 Param 3: N 148 Param 4: N 1000 Param 5: O Class: TWINDOW Param 6: B {|| ... } Param 7: N 16777215 Param 8: N 12810350 Param 9: O Class: TFONT Param 10: L .F. Param 11: N 16777215 Param 12: N 23 Param 13: U Param 14: C "UNDERLINE" Param 15: N 5 Param 16: N 12810350 Param 17: N 1 Param 18: C "FILLED" Param 19: U Param 20: N 16777215 Param 21: U Param 22: N 16777215 Param 23: N 12810350 Param 24: U Param 25: N 16777215 Param 26: L .F. Param 27: L .F. Param 28: U Param 29: U Local 1: O Class: TVMENU MAIN Local 1: U Local 2: U Local 3: O Class: TBITMAP Local 4: O Class: TBITMAP Local 5: O Class: TBRUSH Local 6: O Class: TFONT Linked RDDs =========== DBF DBFFPT DBFNTX DBFBLOB DataBases in use ================ Classes in use: =============== 1 HASHENTRY 2 HBCLASS 3 HBOBJECT 4 TFONT 5 TBRUSH 6 TWINDOW 7 TCONTROL 8 TBITMAP 9 TVMENU 10 TC5IMGLIST 11 ERROR 12 TREG32 Memory Analysis =============== 118 Static variables Dynamic memory consume: Actual Value: 0 bytes Highest Value: 0 bytes
CLASE VTASKBAR ERROR EN WIN98
..
CLASE VTASKBAR ERROR EN WIN98
¿ Haz intentado contactar con Paco Garcia, para ver ese error ?
CLASE VTASKBAR ERROR EN WIN98
wich version you have ?
CLASS Information needed?
Hi, I try to learn how to write class. I examined the TDatabase class. I just want to find out the which method is done this. FWH Example : dbf01.prg Line 73: [code=fw:x2a0kjq3]<div class="fw" id="{CB}" style="font-family: monospace;">   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oDbf:<span style="color: #000000;">First</span> <span style="color: #0000ff;">ID</span> ID_NAME <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span> ;<br />      <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Please type here the first name of the customer"</span><br /><br />                                              <span style="color: #B900B9;">// We directly use the Fields</span><br />                                              <span style="color: #B900B9;">// name, but we are working on</span><br />                                              <span style="color: #B900B9;">// a buffer ! This is perfect</span><br />                                              <span style="color: #B900B9;">// for Network management</span></div>[/code:x2a0kjq3] We use the fields directly oDbf:<Fieldname>. How? Which method is used to do this? Thanks,
CLASS Information needed?
Hakan, We use the Classes ON ERROR feature: [code=fw:3q28gkl8]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;#ifdef __HARBOUR__<br />&nbsp; &nbsp; &nbsp; ERROR HANDLER OnError<span style="color: #000000;">&#40;</span> uParam1 <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;#else<br />&nbsp; &nbsp; &nbsp; ERROR HANDLER OnError<span style="color: #000000;">&#40;</span> cMsg, nError <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;#endif<br />&nbsp;</div>[/code:3q28gkl8] ... [code=fw:3q28gkl8]<div class="fw" id="{CB}" style="font-family: monospace;"><br />#ifdef __HARBOUR__<br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> OnError<span style="color: #000000;">&#40;</span> uParam1 <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TDataBase<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">local</span> cMsg &nbsp; := __GetMessage<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">local</span> nError := <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cMsg, <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"_"</span>, <span style="color: #000000;">1005</span>, <span style="color: #000000;">1004</span> <span style="color: #000000;">&#41;</span><br />#else<br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> OnError<span style="color: #000000;">&#40;</span> cMsg, nError <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TDataBase<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">local</span> uParam1 := GetParam<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />#endif<br />&nbsp;</div>[/code:3q28gkl8]
CLASS Information needed?
Thanks Antonio, I have looked at the TDatabase class several times. I could not imagine it in ERROR HANDLER. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
CLASS Information needed?
Hakan, Have you read the articles I wrote on writing classes that are on my website? [url:19sqbmt8]http&#58;//www&#46;gointellitech&#46;com[/url:19sqbmt8] James
CLASS Information needed?
Yes, James. Your webpage about classes is my first learning stage. Thank you again.
CLASS REPORT
Hi, I'm generating reports using Report class. I am able to print columns total for the whole report, also I can get the increasing sum on each page. I'd like to know if it is possible to additionally get the summary for each page of the report (not increasing, just each page sum up). Have you any idea how to do that? Maybe I should use another class? Thanks, Leszek
CLASS REPORT
Leszek, If you are using the REPORT command try the SUMMARY clause: REPORT oRpt ... SUMMARY if you are managing the report object directly, you can do: oReport:lSummary := .T.
CLASS REPORT
Hola, this is a sample but working with array, you can change easily to work with DataBase [code=fw:3l3v8db0]<div class="fw" id="{CB}" style="font-family: monospace;"> <br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// was missing this important declaration in the first publication</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> aTotal := <span style="color: #000000;">&#123;</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>,<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>,<span style="color: #000000;">0</span><span style="color: #000000;">&#125;</span>.....<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont1 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"ARIAL NARROW"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-8</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont2 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"ARIAL NARROW"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-8</span> BOLD<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont3 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"ARIAL NARROW"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-12</span> BOLD<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont4 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"ARIAL NARROW"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-8</span> BOLD<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont5 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"ARIAL NARROW"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-6</span><br /> <br />   <span style="color: #0000ff;">DEFINE</span> PEN pen1 WIDTH <span style="color: #000000;">0.3</span><br /> <br />       REPORT oReport;<br />        <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"PERIODO: "</span> + <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> aData<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span>,<span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> ;<br />         <span style="color: #0000ff;">FONT</span> oFont1, oFont2, oFont3, oFont4, oFont5                     ;<br />          PEN pen1                                           ;<br />       HEADER <span style="color: #ff0000;">"Nombre o Razón Social: "</span> + cNombre,;<br />              <span style="color: #ff0000;">"Número NIT: "</span> + cNit ,;<br />              <span style="color: #ff0000;">"Número Sucursal: "</span> + cSucursal ,;<br />              <span style="color: #ff0000;">"Dirección: "</span> + cDireccion;<br />              <span style="color: #0000ff;">LEFT</span>        ;<br />       FOOTER <span style="color: #ff0000;">"Página : "</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>;<br />      PREVIEW  ;<br />      CAPTION <span style="color: #ff0000;">"LIBRO VENTAS - IVA"</span><br /> <br />              COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Fecha"</span>                 <span style="color: #00C800;">DATA</span> aData<span style="color: #000000;">&#91;</span> nAt, <span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span>       <span style="color: #0000ff;">SIZE</span>  <span style="color: #000000;">9</span> <span style="color: #0000ff;">FONT</span> <span style="color: #000000;">1</span> <span style="color: #0000ff;">CENTER</span><br />              COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Número"</span>                <span style="color: #00C800;">DATA</span> aData<span style="color: #000000;">&#91;</span> nAt, <span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>       <span style="color: #0000ff;">SIZE</span>  <span style="color: #000000;">9</span> <span style="color: #0000ff;">FONT</span> <span style="color: #000000;">1</span><br />              COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Nombre o Razón Social"</span> <span style="color: #00C800;">DATA</span> aData<span style="color: #000000;">&#91;</span> nAt, <span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>       <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">30</span> <span style="color: #0000ff;">FONT</span> <span style="color: #000000;">1</span><br />              COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Número"</span>,<span style="color: #ff0000;">"Factura"</span>      <span style="color: #00C800;">DATA</span> aData<span style="color: #000000;">&#91;</span> nAt, <span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>       <span style="color: #0000ff;">SIZE</span>  <span style="color: #000000;">7</span> <span style="color: #0000ff;">FONT</span> <span style="color: #000000;">1</span><br />              COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Número"</span>,<span style="color: #ff0000;">"Autorización"</span> <span style="color: #00C800;">DATA</span> aData<span style="color: #000000;">&#91;</span> nAt, <span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>       <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">15</span> <span style="color: #0000ff;">FONT</span> <span style="color: #000000;">1</span> <span style="color: #0000ff;">CENTER</span><br />              COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Código de"</span>,<span style="color: #ff0000;">"Control"</span>   <span style="color: #00C800;">DATA</span> aData<span style="color: #000000;">&#91;</span> nAt, <span style="color: #000000;">12</span><span style="color: #000000;">&#93;</span>      <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">12</span> <span style="color: #0000ff;">FONT</span> <span style="color: #000000;">1</span> <span style="color: #0000ff;">CENTER</span><br />              COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Importe"</span>,<span style="color: #ff0000;">"Facturado"</span>   <span style="color: #00C800;">DATA</span> VAL<span style="color: #000000;">&#40;</span>aData<span style="color: #000000;">&#91;</span> nAt, <span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>  <span style="color: #0000ff;">SIZE</span>  <span style="color: #000000;">9</span> <span style="color: #0000ff;">FONT</span> <span style="color: #000000;">1</span> <span style="color: #0000ff;">RIGHT</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"999,999.99"</span> TOTAL<br />              COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"ICE"</span>                   <span style="color: #00C800;">DATA</span> aData<span style="color: #000000;">&#91;</span> nAt, <span style="color: #000000;">7</span><span style="color: #000000;">&#93;</span>       <span style="color: #0000ff;">SIZE</span>  <span style="color: #000000;">6</span> <span style="color: #0000ff;">FONT</span> <span style="color: #000000;">1</span> <span style="color: #0000ff;">RIGHT</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@Z 999,999.99"</span><br />              COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Exento"</span>                <span style="color: #00C800;">DATA</span> aData<span style="color: #000000;">&#91;</span> nAt, <span style="color: #000000;">8</span><span style="color: #000000;">&#93;</span>       <span style="color: #0000ff;">SIZE</span>  <span style="color: #000000;">6</span> <span style="color: #0000ff;">FONT</span> <span style="color: #000000;">1</span> <span style="color: #0000ff;">RIGHT</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@Z 999,999.99"</span><br />              COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Valor"</span>,<span style="color: #ff0000;">"Neto"</span>          <span style="color: #00C800;">DATA</span> VAL<span style="color: #000000;">&#40;</span>aData<span style="color: #000000;">&#91;</span> nAt, <span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>  <span style="color: #0000ff;">SIZE</span>  <span style="color: #000000;">9</span> <span style="color: #0000ff;">FONT</span> <span style="color: #000000;">1</span> <span style="color: #0000ff;">RIGHT</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"999,999.99"</span> TOTAL<br />              COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"IVA"</span>                   <span style="color: #00C800;">DATA</span> VAL<span style="color: #000000;">&#40;</span>aData<span style="color: #000000;">&#91;</span> nAt, <span style="color: #000000;">10</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span>  <span style="color: #000000;">7</span> <span style="color: #0000ff;">FONT</span> <span style="color: #000000;">1</span> <span style="color: #0000ff;">RIGHT</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"999,999.99"</span> TOTAL<br /> <br />   END REPORT<br /> <br />   oReport:<span style="color: #000000;">bPreInit</span>     := <span style="color: #000000;">&#123;</span>|| nAt := <span style="color: #000000;">1</span> <span style="color: #000000;">&#125;</span><br />   oReport:<span style="color: #000000;">bSkip</span>        := <span style="color: #000000;">&#123;</span>|| nAt++ <span style="color: #000000;">&#125;</span><br />   oReport:<span style="color: #000000;">lPageTotal</span>   := .T.<br />   oReport:<span style="color: #000000;">lTotal</span>       := .T.<br />   oReport:<span style="color: #000000;">cGrandTotal</span>  := <span style="color: #ff0000;">'Total Página'</span><br />   oReport:<span style="color: #000000;">cPageTotal</span>   := <span style="color: #ff0000;">'Total Página'</span> <br /> <br />   AEVAL <span style="color: #000000;">&#40;</span> oReport:<span style="color: #000000;">oHeader</span>:<span style="color: #000000;">aFont</span>, <span style="color: #000000;">&#123;</span> |e,i| oReport:<span style="color: #000000;">oHeader</span>:<span style="color: #000000;">aFont</span><span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> := <span style="color: #000000;">&#123;</span>||<span style="color: #000000;">2</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />   AEVAL <span style="color: #000000;">&#40;</span> oReport:<span style="color: #000000;">oTitle</span>:<span style="color: #000000;">aFont</span>,  <span style="color: #000000;">&#123;</span> |e,i| oReport:<span style="color: #000000;">oTitle</span>:<span style="color: #000000;">aFont</span><span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>  := <span style="color: #000000;">&#123;</span>||<span style="color: #000000;">3</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />   AEVAL <span style="color: #000000;">&#40;</span> oReport:<span style="color: #000000;">aColumns</span>,      <span style="color: #000000;">&#123;</span> |e| e:<span style="color: #000000;">bTitleFont</span>               := <span style="color: #000000;">&#123;</span>||<span style="color: #000000;">4</span><span style="color: #000000;">&#125;</span>     ,;<br />                                        e:<span style="color: #000000;">bTotalFont</span>               := <span style="color: #000000;">&#123;</span>||<span style="color: #000000;">2</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /> <br />   oReport:<span style="color: #000000;">oDevice</span>:<span style="color: #000000;">lPrvModal</span> := .T.<br /> <br />   <span style="color: #0000ff;">ACTIVATE</span> REPORT oReport ;<br />             <span style="color: #00C800;">WHILE</span> nAt <= LEN<span style="color: #000000;">&#40;</span> aData <span style="color: #000000;">&#41;</span> ;<br />            <span style="color: #0000ff;">ON</span> POSTPAGE AEVAL<span style="color: #000000;">&#40;</span> oReport:<span style="color: #000000;">aColumns</span>, <span style="color: #000000;">&#123;</span>|c,i| aTotal<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> += c:<span style="color: #000000;">nTotal</span>, c:<span style="color: #000000;">nTotal</span> := <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> ;<br />            <span style="color: #0000ff;">ON</span> POSTEND <span style="color: #000000;">&#40;</span> oReport:<span style="color: #000000;">cGrandTotal</span>  := <span style="color: #ff0000;">'Total General'</span>,;<br />                         AEVAL<span style="color: #000000;">&#40;</span> oReport:<span style="color: #000000;">aColumns</span>, <span style="color: #000000;">&#123;</span>|c,i| c:<span style="color: #000000;">nTotal</span> := aTotal<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span>,;<br />                         oReport:<span style="color: #000000;">PageTotal</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /> <br />   oFont1:<span style="color: #000000;">END</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oFont2:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oFont3:<span style="color: #000000;">END</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oFont4:<span style="color: #000000;">END</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oFont5:<span style="color: #000000;">END</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> <br />   pen1:<span style="color: #000000;">END</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> <br /> </div>[/code:3l3v8db0]
CLASS REPORT
Great thanks for your answers. Marcelo, thanks for your sample. I've changed it to print from file. I've got the page summary, but I lost the increasing sums for every page. I'd like to have both of them on every page. Please, see the following sample. How can I create something like that? Thanks, Leszek [code=fw:3a0gd0g5]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">Page</span> <span style="color: #000000;">1</span><br />- - - - - - - -  - - - - - -  - - -  - - - -  - -<br />| NR    | ..... |    col <span style="color: #000000;">1</span>          |  col <span style="color: #000000;">2</span>   | <br />- - - - - - - -  - - - - - -  - - -  - - - -  - -<br />  <span style="color: #000000;">1</span>                  <span style="color: #000000;">100</span>               <span style="color: #000000;">200</span><br />  <span style="color: #000000;">2</span>                  <span style="color: #000000;">100</span>               <span style="color: #000000;">200</span><br /> ...<br />- - - - - - - -  - - - - - -  - - -  - - - -  - -<br /><span style="color: #0000ff;">Page</span> <span style="color: #0000ff;">sum</span>:       |    <span style="color: #000000;">200</span>               <span style="color: #000000;">400</span><br />- - - - - - - -  - - - - - -  - - -  - - - -  - -<br />Increasing <span style="color: #0000ff;">sum</span>  |    <span style="color: #000000;">200</span>               <span style="color: #000000;">400</span><br />- - - - - - - -  - - - - - -  - - -  - - - -  - -<br /><br /><span style="color: #0000ff;">Page</span> <span style="color: #000000;">2</span><br />- - - - - - - -  - - - - - -  - - -  - - - -  - -<br />| NR    | ..... |    col <span style="color: #000000;">1</span>          |  col <span style="color: #000000;">2</span>   | <br />- - - - - - - -  - - - - - -  - - -  - - - -  - -<br />  <span style="color: #000000;">1</span>                  <span style="color: #000000;">300</span>               <span style="color: #000000;">700</span><br />  <span style="color: #000000;">2</span>                  <span style="color: #000000;">500</span>               <span style="color: #000000;">150</span><br /> ...<br />- - - - - - - -  - - - - - -  - - -  - - - -  - -<br /><span style="color: #0000ff;">Page</span> <span style="color: #0000ff;">sum</span>:       |    <span style="color: #000000;">800</span>               <span style="color: #000000;">850</span><br />- - - - - - - -  - - - - - -  - - -  - - - -  - -<br />Increasing <span style="color: #0000ff;">sum</span>  |   <span style="color: #000000;">1000</span>              <span style="color: #000000;">1250</span><br />- - - - - - - -  - - - - - -  - - -  - - - -  - -<br /><br />End</div>[/code:3a0gd0g5]
CLASS REPORT
Hello, first add some blank line at the begin in the footer like FOOTER " ", " "," " to reserve space for the new extra pagetotal then you change the ACTIVE REPORT LIKE [code=fw:10c5afks]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; <span style="color: #0000ff;">ACTIVATE</span> REPORT oReport ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">WHILE</span> nAt <= LEN<span style="color: #000000;">&#40;</span> aData <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">ENDPAGE</span> <span style="color: #000000;">&#40;</span> AEVAL<span style="color: #000000;">&#40;</span> oReport:<span style="color: #000000;">aColumns</span>, <span style="color: #000000;">&#123;</span>|c,i| aTotal<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> += c:<span style="color: #000000;">nTotal</span> &nbsp;<span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> , oReport:<span style="color: #000000;">PageTotal</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, AEVAL<span style="color: #000000;">&#40;</span> oReport:<span style="color: #000000;">aColumns</span>, <span style="color: #000000;">&#123;</span>|c,i| c:<span style="color: #000000;">nTotal</span> := aTotal<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> &nbsp;<span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> POSTPAGE AEVAL<span style="color: #000000;">&#40;</span> oReport:<span style="color: #000000;">aColumns</span>, <span style="color: #000000;">&#123;</span>|c,i| &nbsp;c:<span style="color: #000000;">nTotal</span> := <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> POSTEND <span style="color: #000000;">&#40;</span> oReport:<span style="color: #000000;">cGrandTotal</span> &nbsp;:= <span style="color: #ff0000;">'Total General'</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AEVAL<span style="color: #000000;">&#40;</span> oReport:<span style="color: #000000;">aColumns</span>, <span style="color: #000000;">&#123;</span>|c,i| c:<span style="color: #000000;">nTotal</span> := aTotal<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oReport:<span style="color: #000000;">PageTotal</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:10c5afks] I think you can add easily the page total legend regards Marcelo
CLASS REPORT
Hi, Marcelo! Thanks again for your help. I used your instructions and got it working well. I owe you a beer! <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) --> Best regards, Leszek