messages
listlengths 1
1
| topic
stringlengths 2
60
|
|---|---|
[
{
"date": "2016-10-05",
"forum": "FiveWin for Harbour/xHarbour",
"text": "WHAT I NEED TO USE CDO TO SEND MAIL WITH MY APPLICATION IN FIVE WIN (FWH)",
"time": "20:16",
"topic": "CDO MAILING",
"username": "richard wilson"
}
] |
CDO MAILING
|
[
{
"date": "2016-10-05",
"forum": "FiveWin for Harbour/xHarbour",
"text": "<!-- l --><a class=\"postlink-local\" href=\"http://fivetechsupport.com/forums/viewtopic.php?f=3&t=21490&p=191444&hilit=CDO&sid=563530d537ebeaabc8eaa32d638f43c5#p191444\">viewtopic.php?f=3&t=21490&p=191444&hilit=CDO&sid=563530d537ebeaabc8eaa32d638f43c5#p191444</a><!-- l -->",
"time": "20:30",
"topic": "CDO MAILING",
"username": "Kleyber"
}
] |
CDO MAILING
|
[
{
"date": "2017-06-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Everyone,\n\nI notice several of you have been having trouble with CDO lately. I have a client that also in having an issue after they installed a new mail server. I was reading up on CDO today and came across this page which lists all the versions of CDO and has the files available for download (it is a Microsoft site).\n\n<!-- m --><a class=\"postlink\" href=\"https://support.microsoft.com/en-us/help/171440/where-to-acquire-the-cdo-libraries-all-versions\">https://support.microsoft.com/en-us/hel ... l-versions</a><!-- m -->\n\nYou can tell from the number of versions that there are likely to be more than one version of CDO in any LAN, thus there is a fairly good chance that there may issues.\n\nSo, the first thing I would do is check the CDO version and OS one the computers having issues. The CDO files may have slightly different names and may be in different locations. Mine is \\windows\\system32\\CDOSYS.DLL (Windows 10). And my CDOSYS.DLL is version 6.6 which is not on the above referenced page (it was last updated in 2011).\n\nI have found that there is a new authentication protocol called NTLM which is used on newer Microsoft mail servers. So if your client is using a MS mail server, one thing to try is setting this value to 2 as shown.\n\n// 0= none, 1= Basic clear text, 2=NTLM \n:Item( \"http://schemas.microsoft.com/cdo/configuration/smtpauthenticate\" ):Value := 2\n\nOne word of warning about sending test emails. This happened to me about a year ago. I was sending lots of test mails when all of a sudden configurations that were working, stopped. I thought I was loosing my mind. Finally, I discovered that I had been marked as a spammer and the mail server was blocking me. I think it was due to the volume of mail and/or I had neglected to make sure the SentFrom and ReplyTo were not exactly the same. Anyway, beware.\n\nRegards,\nJames",
"time": "00:45",
"topic": "CDO MAPI versions and files",
"username": "James Bott"
}
] |
CDO MAPI versions and files
|
[
{
"date": "2017-06-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "hi James\nI leave CDO because in my lan there are a lot of pc that not work with any version or configuration (pc with Win7 and Win10)",
"time": "07:20",
"topic": "CDO MAPI versions and files",
"username": "damianodec"
}
] |
CDO MAPI versions and files
|
[
{
"date": "2017-06-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Damiano,\n\nMay I ask what are you using now?\n\nJames",
"time": "16:03",
"topic": "CDO MAPI versions and files",
"username": "James Bott"
}
] |
CDO MAPI versions and files
|
[
{
"date": "2017-06-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "hi James,\n[code=fw:3vyyrt2l]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">MAIL</span> oMail ;<br /> <span style=\"color: #0000ff;\">SUBJECT</span> textSubject ;<br /> <span style=\"color: #0000ff;\">TEXT</span> MessageText ;<br /> <span style=\"color: #0000ff;\">FROM</span> USER ;<br /> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"myCust@dominio.it\"</span>, ;<br /> <span style=\"color: #ff0000;\">\"myBoss@gmail.com\"</span> ; <br /> RECEIPT<br /><br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">MAIL</span> oMail</div>[/code:3vyyrt2l]\n\nthis is enough now for my app but I hope to arrange my app soon with CDO",
"time": "14:17",
"topic": "CDO MAPI versions and files",
"username": "damianodec"
}
] |
CDO MAPI versions and files
|
[
{
"date": "2017-06-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "For those having CDO problems I just found a very comprehensive list of errors and instructions for dealing with them.\n\n<!-- m --><a class=\"postlink\" href=\"http://www.ctimls.com/Support/KB/Error%20Fixes/Fix_CDO_Email_Error.htm\">http://www.ctimls.com/Support/KB/Error% ... _Error.htm</a><!-- m -->\n\nRegards,\nJames",
"time": "00:41",
"topic": "CDO MAPI versions and files",
"username": "James Bott"
}
] |
CDO MAPI versions and files
|
[
{
"date": "2017-06-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Damiano,\n\nWhat you are using now is the basic simple MAPI. This doesn't have any of the advanced features that CDO has so you will have issues with those servers that require the use of those features. You are lucky that the server your client is using doesn't require any of them.\n\nJames",
"time": "00:45",
"topic": "CDO MAPI versions and files",
"username": "James Bott"
}
] |
CDO MAPI versions and files
|
[
{
"date": "2017-06-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "hi James,\nthank you for link and help.\nI have to use MAPI because I now have not any others solution.\nnow I try with your link.",
"time": "14:26",
"topic": "CDO MAPI versions and files",
"username": "damianodec"
}
] |
CDO MAPI versions and files
|
[
{
"date": "2013-04-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I realize there are numerous threads on this but none of them has an answer to my specific question.\n\nFirst, here is the code I am using:\n\n[code=fw:1jad8kxv]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">Function</span> CDOSendMail<span style=\"color: #000000;\">(</span> aTabMail <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">Local</span> oEmailCfg,oEmailMsg<br /><br /><span style=\"color: #B900B9;\">/* Tabmail<br />01 = MAILSERVER // A correct mail server address<br />02 = MAILFROM // A valid originator of the message<br />03 = MAILTO // Who it is being sent to<br />04 = SUBJECT // The subect<br />05 = BODY // The body in text format<br />06 = ATTACHMENT // Attachment(s)<br />07 = BCC // Usually NIL NOT USED<br />08 = LAUTHORIZATION // T or F logical for authentication<br />09 = USERID pour MAILSERVER // The mail server Username<br />10 = PW pour MAILSERVER // The mail server password<br />11 = Mail port defaut = 25 // The port, default is 25, set to 465 for SSL<br />12 = Mail HTML page // An HTML page, usually not used<br />13 = ssl authentification // T or F logical for SSL<br />14 = Mail sender // Mail sender name NOT USED<br />15 = Organisation sender // Organization sender NOT USED<br />16 = Host // Host if needed NOT USED<br />*/</span><br /> <span style=\"color: #00C800;\">TRY</span><br /> oEmailCfg := CREATEOBJECT<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"CDO.Configuration\"</span> <span style=\"color: #000000;\">)</span><br /> WITH OBJECT oEmailCfg:<span style=\"color: #000000;\">Fields</span><br /> :<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"http://schemas.microsoft.com/cdo/configuration/smtpserver\"</span> <span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span> := TRIM<span style=\"color: #000000;\">(</span> aTabMail<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">01</span><span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">//\"mail.xxxxxxxx.com\"</span><br /> :<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"http://schemas.microsoft.com/cdo/configuration/smtpserverport\"</span> <span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span> := aTabMail<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">11</span><span style=\"color: #000000;\">]</span> <span style=\"color: #B900B9;\">// 25</span><br /> :<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"http://schemas.microsoft.com/cdo/configuration/sendusing\"</span> <span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span> := <span style=\"color: #000000;\">2</span> <span style=\"color: #B900B9;\">// Remote SMTP = 2, local = 1</span><br /> :<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"http://schemas.microsoft.com/cdo/configuration/smtpauthenticate\"</span> <span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span> := aTabMail<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">08</span><span style=\"color: #000000;\">]</span> <span style=\"color: #B900B9;\">// .T.</span><br /> :<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"http://schemas.microsoft.com/cdo/configuration/smtpusessl\"</span> <span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span> := aTabMail<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">13</span><span style=\"color: #000000;\">]</span><br /> :<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"http://schemas.microsoft.com/cdo/configuration/sendusername\"</span> <span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span> := TRIM<span style=\"color: #000000;\">(</span> aTabMail<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">09</span><span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// \"xxanser@xxxxxxxx.com\"</span><br /> :<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"http://schemas.microsoft.com/cdo/configuration/sendpassword\"</span> <span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span> := TRIM<span style=\"color: #000000;\">(</span> aTabMail<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// \"xxxxxx\"</span><br /> :<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout\"</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span> := <span style=\"color: #000000;\">30</span><br /> :<span style=\"color: #0000ff;\">Update</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> END WITH<br /> CATCH oError<br /> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Could not create message configuration\"</span> + <span style=\"color: #ff0000;\">\";\"</span> + ;<br /> <span style=\"color: #ff0000;\">\"Error: \"</span> + TRANSFORM<span style=\"color: #000000;\">(</span>oError:<span style=\"color: #000000;\">GenCode</span>, <span style=\"color: #00C800;\">NIL</span><span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\";\"</span> + ;<br /> <span style=\"color: #ff0000;\">\"SubC: \"</span> + TRANSFORM<span style=\"color: #000000;\">(</span>oError:<span style=\"color: #000000;\">SubCode</span>, <span style=\"color: #00C800;\">NIL</span><span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\";\"</span> + ;<br /> <span style=\"color: #ff0000;\">\"OSCode: \"</span> + TRANSFORM<span style=\"color: #000000;\">(</span>oError:<span style=\"color: #000000;\">OsCode</span>, <span style=\"color: #00C800;\">NIL</span><span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\";\"</span> + ;<br /> <span style=\"color: #ff0000;\">\"SubSystem: \"</span> + TRANSFORM<span style=\"color: #000000;\">(</span>oError:<span style=\"color: #000000;\">SubSystem</span>, <span style=\"color: #00C800;\">NIL</span><span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\";\"</span> + ;<br /> <span style=\"color: #ff0000;\">\"Message: \"</span> + oError:<span style=\"color: #000000;\">Description</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">Return</span> .F.<br /> END<br /> oError:=<span style=\"color: #00C800;\">NIL</span><br /><br /> <span style=\"color: #00C800;\">TRY</span><br /> oEmailMsg := CREATEOBJECT <span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"CDO.Message\"</span> <span style=\"color: #000000;\">)</span><br /> WITH OBJECT oEmailMsg<br /> :<span style=\"color: #000000;\">Configuration</span> = oEmailCfg<br /> :<span style=\"color: #0000ff;\">From</span> = aTabMail<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">02</span><span style=\"color: #000000;\">]</span> <span style=\"color: #B900B9;\">//chr(34)+\" Anser K.K. \"+chr(34)+ \"<anser@xxxxxxxx.com>\" // This will be displayed in the From (The email id does not appear)</span><br /> :<span style=\"color: #0000ff;\">To</span> = TRIM<span style=\"color: #000000;\">(</span> aTabMail<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">03</span><span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// \"xxanserkk@xxxxx.com\" // <----- Place the TO email address</span><br /> :<span style=\"color: #0000ff;\">Subject</span> = aTabMail<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">04</span><span style=\"color: #000000;\">]</span> <span style=\"color: #B900B9;\">// \"This is a Tst message\"</span><br /> :<span style=\"color: #000000;\">MDNRequested</span> = .T.<br /> :<span style=\"color: #000000;\">TextBody</span> = TRIM<span style=\"color: #000000;\">(</span> aTabMail<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">05</span><span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span> <br /> <span style=\"color: #00C800;\">IF</span> LEN<span style=\"color: #000000;\">(</span> aTabMail<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">06</span><span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span> > <span style=\"color: #000000;\">0</span><br /> <span style=\"color: #00C800;\">For</span> nEle := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">To</span> Len<span style=\"color: #000000;\">(</span> aTabMail<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">06</span><span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">AddAttachment</span><span style=\"color: #000000;\">(</span> ALLTRIM<span style=\"color: #000000;\">(</span>aTabMail<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">06</span><span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">[</span>nEle<span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// := AllTrim( aAttach[ nEle ] )</span><br /> <span style=\"color: #00C800;\">Next</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /> END WITH<br /> oEmailMsg:<span style=\"color: #000000;\">Send</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">)</span><br /> CATCH oError<br /> <br /> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Could not send message\"</span> + <span style=\"color: #ff0000;\">\";\"</span> + CRLF+ ;<br /> <span style=\"color: #ff0000;\">\"Error: \"</span> + TRANSFORM<span style=\"color: #000000;\">(</span>oError:<span style=\"color: #000000;\">GenCode</span>, <span style=\"color: #00C800;\">NIL</span><span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\";\"</span> + CRLF+;<br /> <span style=\"color: #ff0000;\">\"SubC: \"</span> + TRANSFORM<span style=\"color: #000000;\">(</span>oError:<span style=\"color: #000000;\">SubCode</span>, <span style=\"color: #00C800;\">NIL</span><span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\";\"</span> + CRLF+ ;<br /> <span style=\"color: #ff0000;\">\"OSCode: \"</span> + TRANSFORM<span style=\"color: #000000;\">(</span>oError:<span style=\"color: #000000;\">OsCode</span>, <span style=\"color: #00C800;\">NIL</span><span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\";\"</span> + CRLF +;<br /> <span style=\"color: #ff0000;\">\"SubSystem: \"</span> + TRANSFORM<span style=\"color: #000000;\">(</span>oError:<span style=\"color: #000000;\">SubSystem</span>, <span style=\"color: #00C800;\">NIL</span><span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\";\"</span> +CRLF+ ;<br /> <span style=\"color: #ff0000;\">\"Message: \"</span> + oError:<span style=\"color: #000000;\">Description</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">Return</span> .F.<br /> <br /> END<br /><br /><span style=\"color: #00C800;\">Return</span><span style=\"color: #000000;\">(</span> .t. <span style=\"color: #000000;\">)</span><br /><br /> </div>[/code:1jad8kxv]\n\nOn my computer this works. However, on a client's computer ( and other client's also ), I get the following response to the send() action:\n\nCould not send message\nError 1001\nSubC 3\nOSCode 0\nSubSystem CDO_Message;\nMessage DISP_E_MEMBERNOTFOUND\n\nI've run out of ideas on what might be causing the problem on some computers. Of course my clients think its something that I should fix in 2 minutes ! By the number of posts I've shown on this problem, its obvious I've spent a lot of time.\n\nAlso of note. I am using Windows 8 and it works. The machine I tested on this morning at a client's office is the same computer ( Samsung All In One, same model ) also with Windows 8.\n\nTim",
"time": "18:21",
"topic": "CDO Once Again ...",
"username": "TimStone"
}
] |
CDO Once Again ...
|
[
{
"date": "2013-04-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Tim,\n\nI am guessing you are trying to send via gmail?\n\nCan we see all the parameters in aTabMail (except for the username and password, of course)?\n\nWere you using the exact same EXE on the client's computer that was running on yours? If so, I am guessing it is the configuration of the client's PC having to do with cdosys.dll. You could try this:\n\n\"To resolve the issue simply open a 32-bit instance of cmd.exe from the SysWow64 directory and run \"regsvr32 cdosys.dll\" to re-register the 32-bit CDOSYS.\"\n\nThe above is from here:\n<!-- m --><a class=\"postlink\" href=\"http://blogs.msdn.com/b/mstehle/archive/2007/12/11/fyi-after-installing-exchange-2007-sp1-32-bit-cdosys-might-not-be-registered.aspx\">http://blogs.msdn.com/b/mstehle/archive ... tered.aspx</a><!-- m -->\n\nAlso, it could be a problem with the paths of any attachments. Are you using attachments? If so were they also on the client's PC? I would suggest not using attachments until you get it working without attachments.\n\nI would also suggest running the example program by Anser that I sent to your email a couple of days ago. This is a very simple program and it eliminates anything different in your code that could be causing the problem. It would be nice to just know if CDO is working on the client's PC.\n\nJames",
"time": "22:19",
"topic": "CDO Once Again ...",
"username": "James Bott"
}
] |
CDO Once Again ...
|
[
{
"date": "2013-04-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "James,\n\nI have spent so much time in trial and error. Surely there is some way to know what that error message means.\n\nNo, I am not using gmail. I do nothing Google. Anything that passes through a Google server, no matter what it is, is open ( according to their very public license ) to the public domain. They can use the data in any way they wish, including selling or trading it. I deal with confidential information a lot, so I have absolutely no Google connectivity in my system.\n\nn my case, I used the settings for Cox SSL and it worked fine. So, that means the program works fine ... even with attachments.\n\nMy client has AT&T and they route through Yahoo ! Other clients with problems are in Arizona and use Qwest, and I have no idea what some others are using.",
"time": "22:38",
"topic": "CDO Once Again ...",
"username": "TimStone"
}
] |
CDO Once Again ...
|
[
{
"date": "2013-04-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Tim,\n\n>I have spent so much time in trial and error. Surely there is some way to know what that error message means.\n\nJust about any parameter can cause that error--it is generic from my experience, so it doesn't help much. This is why I suggested eliminating as many variables as possible such as attachments.\n\nRE: gmail - I just wanted to know if you were using a SSL server.\n\nI just found that CDO is apparently installed when Outlook is installed, and starting with Outlook 2007 CDO was no longer installed. I am running XP PRO SP3 and Outlook is not installed on my PC and CDO is, so this is confusing. I do have Outlook Express, however.\n\nHere is a link to the CDO download page.\n\n<!-- m --><a class=\"postlink\" href=\"http://www.windows8appstore.com/windowssoftware/collaboration-data-objects-121/550407.html\">http://www.windows8appstore.com/windows ... 50407.html</a><!-- m -->\n\nUnfortunately, this may mean that you will need to install CDO on your client's computer. It would be nice if there was a simple way to determine if CDO was installed. Perhaps looking for the cdosys.dll?\n\nJames",
"time": "23:10",
"topic": "CDO Once Again ...",
"username": "James Bott"
}
] |
CDO Once Again ...
|
[
{
"date": "2013-04-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "OK ... so I went online, CDO was there ... and then I looked at the obvious.\n\nI compared Outlook settings with our email settings.\n\nThe guy guaranteed me over and over and over again that it was exactly the same.\n\nExcept the user name was not. He omitted the \"@hisserver.com\" section !\n\nI corrected the error.\n\nNow the CDO is working perfectly. Want to know how its implemented ? Check out the code section in the original post of this thread.\n\nThanks to everyone who helped along the way. I guess I need to go visit the client and collect a beer !\n\nTim",
"time": "02:07",
"topic": "CDO Once Again ...",
"username": "TimStone"
}
] |
CDO Once Again ...
|
[
{
"date": "2013-04-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Tim,\n\nGlad to hear you got it working.\n\n[quote:otgfb0kg]The guy guaranteed me over and over and over again that it was exactly the same.\n\nExcept the user name was not. He omitted the \"@hisserver.com\" section ![/quote:otgfb0kg]\n\nThis is why I kept suggesting reducing the number of variables. I would compile a test EXE hardcoded with [b:otgfb0kg]your[/b:otgfb0kg] email and email server info and with [b:otgfb0kg]no runtime inputs[/b:otgfb0kg] that you know is working on your PC. Then you can just run this on any client's PC to make sure CDO is working on their PC.\n\nAfter that you can install and configure your app and if it errors out, then you know it is a configuration issue rather than wondering if CDO is working.\n\nAgain, so glad you got it working.\n\nRegards,\nJames",
"time": "14:49",
"topic": "CDO Once Again ...",
"username": "James Bott"
}
] |
CDO Once Again ...
|
[
{
"date": "2015-11-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "how you resolve?, can you sharing with me? thanks",
"time": "17:47",
"topic": "CDO Once Again ...",
"username": "QAZWSX2K"
}
] |
CDO Once Again ...
|
[
{
"date": "2015-11-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "My implementation is shared in the original post. It is correct.\n\nThe problem was that the user did not setup the server connection correctly. When I remotely took over his computer, and saw that, I fixed his entry and it all worked.\n\nIn most cases, when it asks for user name, it actually uses the full email.\n\nHe had: Username: John Doe\nIt wanted Username : <!-- e --><a href=\"mailto:JohnDoe@server.com\">JohnDoe@server.com</a><!-- e -->\n\nI made the change and all worked fine. If you want to implement CDO, my code in the original post works perfectly.\n\nTim",
"time": "17:56",
"topic": "CDO Once Again ...",
"username": "TimStone"
}
] |
CDO Once Again ...
|
[
{
"date": "2015-11-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\n\nCDO does not work with latest TLS servers, and it´s blocked by many antivirus!.",
"time": "19:17",
"topic": "CDO Once Again ...",
"username": "lucasdebeltran"
}
] |
CDO Once Again ...
|
[
{
"date": "2015-11-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "CDO resolved the issues I've had with SMTP over the years. It continues to work fine for all of my clients, and I hear absolutely no complaints.\n\nI recommend the built in security in Windows 10 which has no problems with it, or Security Essentials for older OS versions.",
"time": "20:15",
"topic": "CDO Once Again ...",
"username": "TimStone"
}
] |
CDO Once Again ...
|
[
{
"date": "2015-11-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"TimStone\":2f9itkvh]CDO resolved the issues I've had with SMTP over the years. It continues to work fine for all of my clients, and I hear absolutely no complaints.\n\nI recommend the built in security in Windows 10 which has no problems with it, or Security Essentials for older OS versions.[/quote:2f9itkvh]\n\nI agree.\n\nEMG",
"time": "21:41",
"topic": "CDO Once Again ...",
"username": "Enrico Maria Giordano"
}
] |
CDO Once Again ...
|
[
{
"date": "2019-12-30",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi,\n\nHow do you send emails via TLS smtp server?\n\nThank you.",
"time": "22:15",
"topic": "CDO Once Again ...",
"username": "MOISES"
}
] |
CDO Once Again ...
|
[
{
"date": "2020-01-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I guess it is not possible:\n\n<!-- m --><a class=\"postlink\" href=\"https://social.technet.microsoft.com/Forums/windows/en-US/37d00342-e5e9-4c8d-975d-44362332d426/bug-in-cdomessage-smtpserverport-587-fails?forum=ITCG\">https://social.technet.microsoft.com/Fo ... forum=ITCG</a><!-- m -->",
"time": "16:23",
"topic": "CDO Once Again ...",
"username": "MOISES"
}
] |
CDO Once Again ...
|
[
{
"date": "2020-01-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"MOISES\":yoxjcvkr]I guess it is not possible:\n\n<!-- m --><a class=\"postlink\" href=\"https://social.technet.microsoft.com/Forums/windows/en-US/37d00342-e5e9-4c8d-975d-44362332d426/bug-in-cdomessage-smtpserverport-587-fails?forum=ITCG\">https://social.technet.microsoft.com/Fo ... forum=ITCG</a><!-- m -->[/quote:yoxjcvkr]\nhave you try Port 465 (mail.gmx.net) <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> \nalso there are Combination with Port 25 and SSL to work with TLS smtp server. (smtp.web.de)\n\nboth need\n[code=fw:yoxjcvkr]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #ff0000;\">\".../smtpauthenticate\"</span>, .t.</div>[/code:yoxjcvkr]",
"time": "04:02",
"topic": "CDO Once Again ...",
"username": "Jimmy"
}
] |
CDO Once Again ...
|
[
{
"date": "2015-06-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi, I try to send email using CDO but sometimes send and sometimes not, what I do wrong?\nThanks\n\nlocal lRet := .f.\nlocal oCfg, oError\n\nlocal cServ := \"smtp.rotamaxgroup.com\" \nlocal nPort := \"587\"\nlocal lAut := .t.\nlocal lSSL := .f.\nlocal cPass := \"XXXXXX\"\n\n\ncUser := Alltrim(_cUser) \ncRemt := Alltrim(_cUser) \n\nTRY\noCfg := CREATEOBJECT( \"CDO.Configuration\" )\nWITH OBJECT oCfg:Fields\n:Item( \"http://schemas.microsoft.com/cdo/configuration/smtpserver\" ):Value := cServ\n:Item( \"http://schemas.microsoft.com/cdo/configuration/smtpserverport\" ):Value := nPort\n:Item( \"http://schemas.microsoft.com/cdo/configuration/sendusing\" ):Value := 2\n:Item( \"http://schemas.microsoft.com/cdo/configuration/smtpauthenticate\" ):Value := lAut\n:Item( \"http://schemas.microsoft.com/cdo/configuration/smtpusessl\" ):Value := lSSL\n:Item( \"http://schemas.microsoft.com/cdo/configuration/sendusername\" ):Value := cUser\n:Item( \"http://schemas.microsoft.com/cdo/configuration/sendpassword\" ):Value := cPass\n:Update()\nEND WITH\nlRet := .t.\nCATCH oError\nMsgInfo( \"Não Foi possível Enviar o e-Mail!\" +CRLF+ ;\n\"Error: \" + Transform(oError:GenCode, nil) + \";\" +CRLF+ ;\n\"SubC: \" + Transform(oError:SubCode, nil) + \";\" +CRLF+ ;\n\"OSCode: \" + Transform(oError:OsCode, nil) + \";\" +CRLF+ ;\n\"SubSystem: \" + Transform(oError:SubSystem, nil) + \";\" +CRLF+ ;\n\"Mensaje: \" + oError:Description, \"Atenção\" )\nEND\n\n////////////////////////\n\ncTo := Destinatarios( cTo ) //--> PARA\ncCC := Destinatarios( cCC ) //--> COM COPIA\ncBCC := Destinatarios( cBCC ) //--> COM COPIA OCULTA\n\nTRY\noMsg := CREATEOBJECT ( \"CDO.Message\" )\nWITH OBJECT oMsg\n:Configuration = oCfg\n:From = cFrom\n:To = cTo\n:CC = cCC\n:BCC = cBCC\n\n:Subject = cSubject\n:TextBody = cMsg\n For x := 1 To Len( cAttach )\n if cAttach[x] <> NIL\n\t :AddAttachment(cAttach[x])\n endif\n Next\n :Send()\n END WITH\n lRet := .t.\n CATCH\n // MsgInfo(\"Não foi possível enviar a mensagem\")\n \tlRet := .f.\n END",
"time": "17:21",
"topic": "CDO email",
"username": "Wanderson"
}
] |
CDO email
|
[
{
"date": "2015-06-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "use alltrim( -- values -- )\nfor each values you pass to cdo",
"time": "17:52",
"topic": "CDO email",
"username": "Silvio.Falconi"
}
] |
CDO email
|
[
{
"date": "2015-06-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Silvio.Falconi\":3mgf28fz]use alltrim( -- values -- )\nfor each values you pass to cdo[/quote:3mgf28fz]\n\nThanks Silvio I Will Try.",
"time": "18:50",
"topic": "CDO email",
"username": "Wanderson"
}
] |
CDO email
|
[
{
"date": "2017-12-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi,\n\nI use CDO to send emails, is possible send with a signature, in this case a jpg image?\n\nThanks in advance.",
"time": "18:36",
"topic": "CDO email with signature",
"username": "Wanderson"
}
] |
CDO email with signature
|
[
{
"date": "2017-12-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[code=fw:bw5jiuag]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /> <span style=\"color: #00C800;\">IF</span> IMAGEM = <span style=\"color: #ff0000;\">\"S\"</span> <span style=\"color: #B900B9;\">// Assinatura Digital no Email. Joao</span><br /><br /> <span style=\"color: #B900B9;\">// NO RODAPE DA MENSAGEM.. EU SOU PLORIDA,,, KKKKKKKKKKK</span><br /> oCfg:<span style=\"color: #000000;\">HTMLBody</span> = <span style=\"color: #ff0000;\">\"<p>\"</span>+ALLTRIM<span style=\"color: #000000;\">(</span> cMsg <span style=\"color: #000000;\">)</span>+<span style=\"color: #ff0000;\">\"</p>\"</span> + <span style=\"color: #ff0000;\">\"<p><img src='cid:id_imagen10'></p>\"</span><br /><br /> loBP := :<span style=\"color: #000000;\">AddRelatedBodyPart</span><span style=\"color: #000000;\">(</span> cDirPleno + <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\L</span>OGO.JPG\"</span>, <span style=\"color: #ff0000;\">\"id_imagen10\"</span>, <span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span><br /><br /> WITH OBJECT loBP:<span style=\"color: #000000;\">Fields</span> <span style=\"color: #B900B9;\">// Assinatura Digital no Corpo do Email</span><br /><br /> <span style=\"color: #B900B9;\">// oCfg:Item(\"urn:schemas:mailheader:Content-ID\") = \"id_imagen10\" // Asi, genera WARNINGS</span><br /> oCfg:<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"urn:schemas:mailheader:Content-ID\"</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span> := <span style=\"color: #ff0000;\">\"id_imagen10\"</span> <span style=\"color: #B900B9;\">// Asi, no.</span><br /><br /> oCfg:<span style=\"color: #0000ff;\">Update</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> END WITH<br /><br /> <span style=\"color: #00C800;\">ENDIF</span><br /> </div>[/code:bw5jiuag]",
"time": "18:48",
"topic": "CDO email with signature",
"username": "karinha"
}
] |
CDO email with signature
|
[
{
"date": "2017-12-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"karinha\":2jctdu2w][code=fw:2jctdu2w]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /> <span style=\"color: #00C800;\">IF</span> IMAGEM = <span style=\"color: #ff0000;\">\"S\"</span> <span style=\"color: #B900B9;\">// Assinatura Digital no Email. Joao</span><br /><br /> <span style=\"color: #B900B9;\">// NO RODAPE DA MENSAGEM.. EU SOU PLORIDA,,, KKKKKKKKKKK</span><br /> oCfg:<span style=\"color: #000000;\">HTMLBody</span> = <span style=\"color: #ff0000;\">\"<p>\"</span>+ALLTRIM<span style=\"color: #000000;\">(</span> cMsg <span style=\"color: #000000;\">)</span>+<span style=\"color: #ff0000;\">\"</p>\"</span> + <span style=\"color: #ff0000;\">\"<p><img src='cid:id_imagen10'></p>\"</span><br /><br /> loBP := :<span style=\"color: #000000;\">AddRelatedBodyPart</span><span style=\"color: #000000;\">(</span> cDirPleno + <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\L</span>OGO.JPG\"</span>, <span style=\"color: #ff0000;\">\"id_imagen10\"</span>, <span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span><br /><br /> WITH OBJECT loBP:<span style=\"color: #000000;\">Fields</span> <span style=\"color: #B900B9;\">// Assinatura Digital no Corpo do Email</span><br /><br /> <span style=\"color: #B900B9;\">// oCfg:Item(\"urn:schemas:mailheader:Content-ID\") = \"id_imagen10\" // Asi, genera WARNINGS</span><br /> oCfg:<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"urn:schemas:mailheader:Content-ID\"</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span> := <span style=\"color: #ff0000;\">\"id_imagen10\"</span> <span style=\"color: #B900B9;\">// Asi, no.</span><br /><br /> oCfg:<span style=\"color: #0000ff;\">Update</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> END WITH<br /><br /> <span style=\"color: #00C800;\">ENDIF</span><br /> </div>[/code:2jctdu2w][/quote:2jctdu2w]\n\nIt's work, thank you!",
"time": "17:19",
"topic": "CDO email with signature",
"username": "Wanderson"
}
] |
CDO email with signature
|
[
{
"date": "2021-07-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "You have configured this?\n[code=fw:mih3e43j]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oEmail := CREATEOBJECT<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"CDO.Configuration\"</span> <span style=\"color: #000000;\">)</span><br />.../...<br /> </div>[/code:mih3e43j]\nand \n[code=fw:mih3e43j]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oEmailMsg := CREATEOBJECT <span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"CDO.Message\"</span> <span style=\"color: #000000;\">)</span><br /> WITH OBJECT oEmailMsg<br /> :<span style=\"color: #000000;\">Configuration</span> := oEmail<br />.../...<br /> </div>[/code:mih3e43j]",
"time": "11:16",
"topic": "CDO.Message (method Send)",
"username": "cnavarro"
}
] |
CDO.Message (method Send)
|
[
{
"date": "2021-07-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "All this is done and worked well before. A strange mistake",
"time": "12:43",
"topic": "CDO.Message (method Send)",
"username": "Natter"
}
] |
CDO.Message (method Send)
|
[
{
"date": "2021-07-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "What is the provider? Did you change the door? Changed Password? Changed from http to https? Check this out.\n\nRegards, saludos.",
"time": "15:31",
"topic": "CDO.Message (method Send)",
"username": "karinha"
}
] |
CDO.Message (method Send)
|
[
{
"date": "2021-07-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi,\n\nI wanted to use my old (2013) program to send messages to mailboxes to clients.\n\n oEmlMsg := CREATEOBJECT ( \"CDO.Message\" )\n\n WITH OBJECT oEmlMsg\n ..................................\n END WITH\n\n oEmlMsg:Send()\n\nHowever, I get an error:\n\n[b:3izrpky3]Error description: Error CDO.Message/3 DISP_E_MEMBERNOTFOUND: SEND[/b:3izrpky3]\n\nIn other words, there is no Send() method in the object. What could it be ?",
"time": "07:41",
"topic": "CDO.Message (method Send)",
"username": "Natter"
}
] |
CDO.Message (method Send)
|
[
{
"date": "2016-12-05",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi, all !\n\nFor several years, from time to time, used the program sending messages using CDO. Now needed to make the list, but get the error:\n Error CDO.Message/3 DISP_E_MEMBERNOTFOUND: SEND \nWhat could be the reason ?",
"time": "11:25",
"topic": "CDO.Message method Send()",
"username": "Natter"
}
] |
CDO.Message method Send()
|
[
{
"date": "2016-12-05",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Please review this thread:\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?p=173383#p173383\">viewtopic.php?p=173383#p173383</a><!-- l -->",
"time": "11:49",
"topic": "CDO.Message method Send()",
"username": "Antonio Linares"
}
] |
CDO.Message method Send()
|
[
{
"date": "2016-12-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio, thanks for your answer !\nI made a double authentication for Google account and received the password of the application. How should I use this password from your program ?",
"time": "07:45",
"topic": "CDO.Message method Send()",
"username": "Natter"
}
] |
CDO.Message method Send()
|
[
{
"date": "2016-12-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Could you provide a small self contained example PRG of what you are testing ? thanks",
"time": "10:23",
"topic": "CDO.Message method Send()",
"username": "Antonio Linares"
}
] |
CDO.Message method Send()
|
[
{
"date": "2016-12-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[code=fw:1rbyq571]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">procedure GMAdr<span style=\"color: #000000;\">(</span>m_nam, pss, s_nam, adr, sbj, fil<span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">local</span> st, zz, cBcc:=<span style=\"color: #ff0000;\">\"\"</span><br /><span style=\"color: #00C800;\">local</span> oEmlCfg := CREATEOBJECT<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"CDO.Configuration\"</span> <span style=\"color: #000000;\">)</span><br />** m_nam - Inbox<br />** pss - password<br />** s_nam - sending<br />** adr - address list<br />** sbj - <span style=\"color: #000000;\">{</span>Titul, Msg <span style=\"color: #0000ff;\">Text</span><span style=\"color: #000000;\">}</span><br /><br /> WITH OBJECT oEmlCfg:<span style=\"color: #000000;\">Fields</span><br /> :<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"http://schemas.microsoft.com/cdo/configuration/smtpserver\"</span> <span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span> := <span style=\"color: #ff0000;\">\"smtp.gmail.com\"</span><br /> :<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"http://schemas.microsoft.com/cdo/configuration/smtpserverport\"</span> <span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span> := <span style=\"color: #000000;\">465</span><br /> :<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"http://schemas.microsoft.com/cdo/configuration/sendusing\"</span> <span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span> := <span style=\"color: #000000;\">2</span> <span style=\"color: #B900B9;\">// Remote SMTP = 2, local = 1</span><br /> :<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"http://schemas.microsoft.com/cdo/configuration/smtpauthenticate\"</span> <span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span> := .T.<br /> :<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"http://schemas.microsoft.com/cdo/configuration/smtpusessl\"</span> <span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span> := .T.<br /> :<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"http://schemas.microsoft.com/cdo/configuration/sendusername\"</span> <span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span> := m_nam <span style=\"color: #B900B9;\">// Gmail A/c ID</span><br /> :<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"http://schemas.microsoft.com/cdo/configuration/sendpassword\"</span> <span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span> := pss <span style=\"color: #B900B9;\">// Password</span><br /> :<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout\"</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span> := <span style=\"color: #000000;\">30</span><br /><br /> :<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"http://schemas.microsoft.com/cdo/configuration/languagecode\"</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span>:= <span style=\"color: #000000;\">1049</span><br /> :<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"http://schemas.microsoft.com/cdo/configuration/usemessageresponsetext\"</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span>:= .T.<br /><br /> :<span style=\"color: #0000ff;\">Update</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> END WITH<br /><br /> oEmlMsg := CREATEOBJECT <span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"CDO.Message\"</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">for</span> st=<span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> len<span style=\"color: #000000;\">(</span>adr<span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// address list</span><br /> <br /> WITH OBJECT oEmlMsg<br /> :<span style=\"color: #000000;\">Configuration</span> = oEmlCfg<br />* :<span style=\"color: #000000;\">BodyPart</span>:<span style=\"color: #000000;\">CharSet</span> = <span style=\"color: #ff0000;\">\"windows_1251\"</span> <span style=\"color: #B900B9;\">// language</span><br /><br /> :<span style=\"color: #0000ff;\">From</span> = chr<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">34</span><span style=\"color: #000000;\">)</span>+<span style=\"color: #ff0000;\">\" \"</span>+s_nam+<span style=\"color: #ff0000;\">\" \"</span>+chr<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">34</span><span style=\"color: #000000;\">)</span>+<span style=\"color: #ff0000;\">\"<\"</span>+m_nam+<span style=\"color: #ff0000;\">\">\"</span> <span style=\"color: #B900B9;\">// This will be displayed as From address</span><br /> :<span style=\"color: #0000ff;\">To</span> = adr<span style=\"color: #000000;\">[</span>st<span style=\"color: #000000;\">]</span> <span style=\"color: #B900B9;\">// To Email ID</span><br /> :<span style=\"color: #000000;\">BCC</span> = cBcc <span style=\"color: #B900B9;\">// BCC Id ????? ? ?®???</span><br /> :<span style=\"color: #0000ff;\">Subject</span> = sbj<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span> <span style=\"color: #B900B9;\">// Titul</span><br /> :<span style=\"color: #000000;\">TextBody</span> = sbj<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">]</span> <span style=\"color: #B900B9;\">// Msg Text</span><br /> <span style=\"color: #00C800;\">for</span> zz=<span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> len<span style=\"color: #000000;\">(</span>fil<span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">AddAttachment</span><span style=\"color: #000000;\">(</span>fil<span style=\"color: #000000;\">[</span>zz<span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// attached files</span><br /> <span style=\"color: #00C800;\">next</span><br /> :<span style=\"color: #000000;\">Fields</span>:<span style=\"color: #0000ff;\">update</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> END WITH<br /> oEmlMsg:<span style=\"color: #000000;\">Send</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> sysrefresh<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> inkey<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">0.1</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">next</span><br /> inkey<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">0.1</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">Return</span></div>[/code:1rbyq571]",
"time": "11:25",
"topic": "CDO.Message method Send()",
"username": "Natter"
}
] |
CDO.Message method Send()
|
[
{
"date": "2016-12-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Natter\n\nThe gmail account has to be configured to sign-in with 'less secure apps' .. see link\n\nRick Lipkin\n\n<!-- m --><a class=\"postlink\" href=\"https://myaccount.google.com/intro/security\">https://myaccount.google.com/intro/security</a><!-- m -->",
"time": "16:13",
"topic": "CDO.Message method Send()",
"username": "Rick Lipkin"
}
] |
CDO.Message method Send()
|
[
{
"date": "2016-12-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks, Rick ! All work fine !!!",
"time": "17:14",
"topic": "CDO.Message method Send()",
"username": "Natter"
}
] |
CDO.Message method Send()
|
[
{
"date": "2017-05-30",
"forum": "FiveWin for Harbour/xHarbour",
"text": "hi\nI'm trying this code:\n[code=fw:3tcrblpp]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /> oEmailCfg := CREATEOBJECT<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"CDO.Configuration\"</span> <span style=\"color: #000000;\">)</span><br /> WITH OBJECT oEmailCfg:<span style=\"color: #000000;\">Fields</span><br /> :<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"http://schemas.microsoft.com/cdo/configuration/smtpserver\"</span> <span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span> := <span style=\"color: #ff0000;\">\"smtp.gmail.com\"</span><br /> :<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"http://schemas.microsoft.com/cdo/configuration/smtpserverport\"</span> <span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span> := <span style=\"color: #000000;\">465</span><br /> :<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"http://schemas.microsoft.com/cdo/configuration/sendusing\"</span> <span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span> := <span style=\"color: #000000;\">2</span> <br /> :<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"http://schemas.microsoft.com/cdo/configuration/smtpauthenticate\"</span> <span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span> := .t.<br /> :<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"http://schemas.microsoft.com/cdo/configuration/smtpusessl\"</span> <span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span> := .T.<br /> :<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"http://schemas.microsoft.com/cdo/configuration/sendusername\"</span> <span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span> := <span style=\"color: #ff0000;\">\"myemail@gmail.com\"</span><br /> :<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"http://schemas.microsoft.com/cdo/configuration/sendpassword\"</span> <span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span> := <span style=\"color: #ff0000;\">\"mypsw\"</span><br /> :<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout\"</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span> := <span style=\"color: #000000;\">30</span><br /> :<span style=\"color: #0000ff;\">Update</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> END WITH<br /><br /><br /> oEmailMsg := CREATEOBJECT <span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"CDO.Message\"</span> <span style=\"color: #000000;\">)</span><br /> WITH OBJECT oEmailMsg<br /> :<span style=\"color: #000000;\">Configuration</span> := oEmailCfg<br /> :<span style=\"color: #0000ff;\">From</span> := <span style=\"color: #ff0000;\">\"myemail@gmail.com\"</span><br /> :<span style=\"color: #0000ff;\">To</span> := <span style=\"color: #ff0000;\">\"myfriendemail@tiscali.it\"</span><br /> :<span style=\"color: #0000ff;\">Subject</span> := <span style=\"color: #ff0000;\">\"Soggetto\"</span><br /> :<span style=\"color: #000000;\">TextBody</span> := <span style=\"color: #ff0000;\">\"Testo\"</span><br /> :<span style=\"color: #000000;\">BCC</span> := <span style=\"color: #ff0000;\">\"\"</span><br /> :<span style=\"color: #000000;\">Fields</span>:<span style=\"color: #0000ff;\">Update</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">Send</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> END WITH</div>[/code:3tcrblpp]\n\nbut I get always:\n Error description: Error CDO.Message/3 DISP_E_MEMBERNOTFOUND: SEND\n\nany help?",
"time": "15:49",
"topic": "CDO.Message method Send()",
"username": "damianodec"
}
] |
CDO.Message method Send()
|
[
{
"date": "2017-05-31",
"forum": "FiveWin for Harbour/xHarbour",
"text": "ok solved!",
"time": "07:27",
"topic": "CDO.Message method Send()",
"username": "damianodec"
}
] |
CDO.Message method Send()
|
[
{
"date": "2017-06-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Damiano\n\nPlease tell us how you solved it.\n\nJames",
"time": "08:07",
"topic": "CDO.Message method Send()",
"username": "James Bott"
}
] |
CDO.Message method Send()
|
[
{
"date": "2017-06-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "hi James\nI followed Rick Lipkin suggestion.\nin this link: [url:1k82f7bm]https://myaccount.google.com/intro/security[/url:1k82f7bm]",
"time": "16:08",
"topic": "CDO.Message method Send()",
"username": "damianodec"
}
] |
CDO.Message method Send()
|
[
{
"date": "2013-07-11",
"forum": "FiveWin para Pocket PC",
"text": "Hola\n\nEstoy intentando usar CDX de una aplicacion HB (ultimo build de svn), pero no se, si algo algo mal o no son compatibles\npodrian alguien confirmar, cualquiera de las 2 opciones\n\ny si son compatibles, como los debo usar\n\n\nSaludos,\nMauricio",
"time": "18:07",
"topic": "CDX Compatibles en FWPPC & Harbour 3.2",
"username": "Mauricio"
}
] |
CDX Compatibles en FWPPC & Harbour 3.2
|
[
{
"date": "2013-07-11",
"forum": "FiveWin para Pocket PC",
"text": "Mauricio,\n\nTe aparece algún error ? Debieran ser compatibles.",
"time": "19:58",
"topic": "CDX Compatibles en FWPPC & Harbour 3.2",
"username": "Antonio Linares"
}
] |
CDX Compatibles en FWPPC & Harbour 3.2
|
[
{
"date": "2013-07-12",
"forum": "FiveWin para Pocket PC",
"text": "Antonio,\n\nno, no me aparece ningun error, pero las busquedas siempre regresa FALSE, usando las mismas KEYS que en HB, creado diario del GIT\n\nprobare crear una tabla desde FWPPC y despues buscar en HB, no utilizo GUI, es HB en modo consola\n\nSaludos,\nMauricio",
"time": "00:22",
"topic": "CDX Compatibles en FWPPC & Harbour 3.2",
"username": "Mauricio"
}
] |
CDX Compatibles en FWPPC & Harbour 3.2
|
[
{
"date": "2006-03-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Me ocurre algo extraño y se lo otorgo al uso de dbfcdx.\nTengo duplicación de registros idénticos y correlativos en una base de datos, la chequeo en forma externa al programa así elimino el problema de los índices. El código no tiene forma de duplicar el registro ya que no tengo pérdida de datos y si duplicación. Ahora también me ocurre este otro caso, cuando intento abrir una base de datos, ctactev.dbf la cual fue creada con dbfntx tengo este error:\n\n**********************************************************\nApplication\n===========\n Path and name: C:\\DATASOL\\Datasol.Exe (32 bits)\n Size: 2,131,456 bytes\n Time from start: 0 hours 0 mins 6 secs \n Error occurred at: 26/03/2006, 17:10:32\n Error description: Error DBFNTX/1001 Open error: E:\\PROGRAMA\\DATASOL\\XHARBOUR\\ACTDBF\\CTACTEV.fpt\n************************************************************\n\nDesde xHarbour no he podido hacer la conversión de cdx a ntx, siempre obtengo bases de datos con formato dbfcdx, o sea nunca veo los archivos de memo dbt y si me sigue creando los fpt.\nEl mismo código lo hice con clipper y me funcionó de maravillas.\nEstoy usando esto dentro de la aplicación de xharbour\n\n*************CODIGO***********************\n\nANNOUNCE RDDSYS\nINIT PROCEDURE INICIO\n***********************\nREQUEST DBFNTX\nREQUEST DBFCDX\nREQUEST DBFFPT\nRDDSETDEFAULT(\"DBFCDX\")\nRETURN\n\n************FIN DE CODIGO**********************\n\nPero pretendo dejarla a DBFNTX por la duplicación de registros.\n\n****************CODIGO****************************\n\n Local cPath:=\"\\\"+CURDIR()+\"\\\",I\n Local aBases:=directory(cPath+\"DBF\\*.dbf\"),x,aEst\n\n For x:=1 to len(aBases)\n use (cPath+\"DBF\\\"+aBases[x,1]) alias vieja \n aEst:=Dbstruct()\n\n //Aquí no me respeta el \"DBFNTX\" con xharbour y si con clipper\n Dbcreate(cPath+\"ACTDBF\\\"+aBases[x,1],aEst,\"DBFNTX\")\n\n use (cPath+\"ACTDBF\\\"+aBases[x,1]) via \"DBFNTX\" alias nueva new\n\n DO WHILE VIEJA->( ! EOF () )\n\n NUEVA->( DBAPPEND () )\n\n FOR i := 1 TO VIEJA->( FCOUNT () )\n NUEVA->( FIELDPUT ( i, VIEJA->( FIELDGET ( i ) ) ) )\n NEXT i\n\n VIEJA->( DBSKIP () )\n ENDDO\n vieja->(dbclosearea())\n nueva->(dbcloseara())\n\n Next\n*******************FIN DE CODIGO*************************\n\nLes agradecería su ayuda porque estoy bastante ciego a esta altura y creo que le estoy pasando por arriba al error.\nGracias.\n\nRicardo.-",
"time": "21:22",
"topic": "CDX TO NTX y duplicación de registros",
"username": "riesrovi"
}
] |
CDX TO NTX y duplicación de registros
|
[
{
"date": "2006-03-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Me faltó anexar que noté que la duplicación se me hizo luego de hacer un pack, por lo que estoy haciendo una función propia de pack en donde copio a otra base de datos auxiliar todos los registros que no estan marcados para borra y después hago un zap a la base, luego le importo los campos de la base de datos auxiliar.",
"time": "21:36",
"topic": "CDX TO NTX y duplicación de registros",
"username": "riesrovi"
}
] |
CDX TO NTX y duplicación de registros
|
[
{
"date": "2013-05-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I have an archive of 61819 Records\n\nI must index it on seven indexes\n\nWhen Imade (cdbf)->(OrdSetFocus(n)) and refresh() the xbrowse it is too slow \n\nHow I can resolve this problem \n\nI'm using a portable Pc with 8GBRam Winseven",
"time": "21:10",
"topic": "CDX TOO SLOW",
"username": "Silvio.Falconi"
}
] |
CDX TOO SLOW
|
[
{
"date": "2013-05-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Sivio...\n\nDBF/CDX originally work base in physical platform.\nthe problem has came to me long time ago. from the time that, i migration to Oracle database.\n\nJust a good idea. maybe you have to cast about to use other database like SQL Server, Oracle, DB2 etc.... <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->\n\n\nMulyadi",
"time": "03:18",
"topic": "CDX TOO SLOW",
"username": "Mulyadi"
}
] |
CDX TOO SLOW
|
[
{
"date": "2013-05-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Do you have a filter or scope set?",
"time": "15:23",
"topic": "CDX TOO SLOW",
"username": "Gale FORd"
}
] |
CDX TOO SLOW
|
[
{
"date": "2013-05-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I use cdx to index the dbf then I use dbsetfilter but the filter is activate then when the user made a search not when I open the file \nI'm afraid it not run ok or run slowly because perhaps xbrowse not run ok\nOn old app 16 bit I used lbx( wbrowse) no problem",
"time": "16:54",
"topic": "CDX TOO SLOW",
"username": "Silvio.Falconi"
}
] |
CDX TOO SLOW
|
[
{
"date": "2013-05-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Silvo\n\nSet Scope to... is much faster than dbSetFilter.\nRick Lipkin\n\n[code=fw:3cmpehr8]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#Include</span> <span style=\"color: #ff0000;\">\"Ord.ch\"</span><br /><br />cStockno := <span style=\"color: #ff0000;\">\"12345\"</span><br /><br /><span style=\"color: #0000ff;\">Select</span> Invoice<br />Set Order <span style=\"color: #0000ff;\">to</span> Tag Stockno<br /><br />Set Scope <span style=\"color: #0000ff;\">to</span> cStockno<br />Seek cStockno<br /><br /><span style=\"color: #0000ff;\">xbrowse</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> </div>[/code:3cmpehr8]",
"time": "17:18",
"topic": "CDX TOO SLOW",
"username": "Rick Lipkin"
}
] |
CDX TOO SLOW
|
[
{
"date": "2013-05-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "If the filter is active while the browse is updating it might be the reason it is slow. \nIf you use a filter just for the search then why use a filter at all, a locate would be better?\nAnother issue that comes up is the number of deleted records that may have to be skipped during the browse painting.",
"time": "18:09",
"topic": "CDX TOO SLOW",
"username": "Gale FORd"
}
] |
CDX TOO SLOW
|
[
{
"date": "2013-05-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Is this related to the incremental search question in another thread. \nIf so the the problem is trying to use wildseek() in a filter. It does not allow any optimization against the indexes. \nWhen the browse does a go top and then tries to paint the rows it has to compare every record to match filter instead of using the indexes to solve filter logic.",
"time": "18:17",
"topic": "CDX TOO SLOW",
"username": "Gale FORd"
}
] |
CDX TOO SLOW
|
[
{
"date": "2013-05-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "the problem I have seven Get control and I wish filter on these get on dbf and I not Know how make it",
"time": "10:15",
"topic": "CDX TOO SLOW",
"username": "Silvio.Falconi"
}
] |
CDX TOO SLOW
|
[
{
"date": "2013-05-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "did you try\n\nindex on DESTATOF to \"TEMP\" FOR (DESTATOF = \"ARRIVATA\" .OR. DESTATOF = \"IN LAVORAZIONE\" ) MEMORY\n\nI had the same problem with xbrowse (30 pc in the network and for now 15000 records, use dbf and ntx) and it's ok. In fact I can set up filters and indexes in a free way and prg responds quickly.\n\nStefano",
"time": "20:54",
"topic": "CDX TOO SLOW",
"username": "stefano"
}
] |
CDX TOO SLOW
|
[
{
"date": "2013-11-26",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Buenos días, compañeros:\n\nTengo el caso de un aplicativo DBF-CDX en RED LOCAL cuyo [b:34qkhp2u][color=#FF0000:34qkhp2u]\"ARTI.DBF\"[/color:34qkhp2u][/b:34qkhp2u] contiene más de 3000 referencias. Para agilizar la búsqueda por palabras de estas referencias sustituí el típico [b:34qkhp2u]dbsetfilter(&bfiltr,cfiltr)[/b:34qkhp2u] por indices CDX Temporary. Así:\n\n[code=fw:34qkhp2u]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">index</span> <span style=\"color: #0000ff;\">on</span> descrip tag tempor <span style=\"color: #0000ff;\">to</span> tempor temporary <span style=\"color: #00C800;\">for</span> upper<span style=\"color: #000000;\">(</span>alltrim<span style=\"color: #000000;\">(</span>nomcl<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> $ upper<span style=\"color: #000000;\">(</span>descrip<span style=\"color: #000000;\">)</span></div>[/code:34qkhp2u]\n\nDe esta manera las búsquedas son INSTANTANEAS, pero aleatoriamente (NO SIEMPRE) genera un error del tipo [b:34qkhp2u]Error DBFCDX/1201 Workarea not indexed[/b:34qkhp2u] porque automáticamente \"desparece\" el resto de índices asociados a esta DBF. ¿Cómo es posible?\n\n¿Habeis utilizado esta forma para búsquedas? ¿Como compatibilizar este índice temporal con el resto de índices?\n\nMil gracias.\nUn saludo.\nLORENZO\ndesde Cádiz, España.",
"time": "10:07",
"topic": "CDX Temporary",
"username": "Loren"
}
] |
CDX Temporary
|
[
{
"date": "2013-11-26",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Después de usar el indice TEMPORARY haga asi:\n\nSET INDEX TO\n\nSELECT SUDBF \n\nSalu2",
"time": "12:08",
"topic": "CDX Temporary",
"username": "karinha"
}
] |
CDX Temporary
|
[
{
"date": "2013-11-26",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Loren,\n\nAñade la cláusula ADDITIVE al índice para que se añada a los que ya tienes.",
"time": "14:48",
"topic": "CDX Temporary",
"username": "lucasdebeltran"
}
] |
CDX Temporary
|
[
{
"date": "2013-11-27",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Gracias a ambos por contestar.\n\nLucasdeBeltran, añadí la clausula ADDITIVE y aparentemente funciona correcto, pero al salir del programa y volver a entrar me genera un error justo al abrrir las DBF, del tipo:\n\n[b:25njax6u]Unrecoverable error 9104: hb_cdxIndexFree: index file still locked.[/b:25njax6u]\n\nARTI.DBF tiene asociado siempre los siguientes CDX:\n[color=#0000BF:25njax6u] 2: => ARTI RddName: DBFCDX\n___________________________________________________\n\n RecNo RecCount BOF EOF\n 1478 1477 .T. .T.\n\nIndices en Uso: TagName\n TRAN(CODIGOA,'######') CODARTI\n DESCRIP DESCRIP\n TRAN(FAMILIA,'########') CODFAMI\n TRAN(CBARRA_U,'##################')CODBARU\n TRAN(CBARRA_C,'##################')CODBARC[/color:25njax6u]\n\n.. y al hacer la búsqueda por descripción se hace así:\n[code=fw:25njax6u]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> <span style=\"color: #0000ff;\">index</span> <span style=\"color: #0000ff;\">on</span> descrip tag tempor <span style=\"color: #0000ff;\">to</span> arti temporary ADDITIVE <span style=\"color: #00C800;\">for</span> upper<span style=\"color: #000000;\">(</span>alltrim<span style=\"color: #000000;\">(</span>nomcl<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> $ upper<span style=\"color: #000000;\">(</span>descrip<span style=\"color: #000000;\">)</span></div>[/code:25njax6u]\n\nHe observado que cuando inicia el programa ARTI.DBF tiene asociado un índices más\n\n[color=#0000BF:25njax6u] 2: => ARTI RddName: DBFCDX\n___________________________________________________\n\n RecNo RecCount BOF EOF\n 1478 1477 .T. .T.\n\nIndices en Uso: TagName\n TRAN(CODIGOA,'######') CODARTI\n DESCRIP DESCRIP\n TRAN(FAMILIA,'########') CODFAMI\n TRAN(CBARRA_U,'##################')CODBARU\n TRAN(CBARRA_C,'##################')CODBARC\n [b:25njax6u]=> descrip TEMPOR[/b:25njax6u][/color:25njax6u]\n\n¿Sabeis la solución al problema? Estoy dandole vuelta y haciendo pruebas pero no logro resolverlo. <!-- s:cry: --><img src=\"{SMILIES_PATH}/icon_cry.gif\" alt=\":cry:\" title=\"Crying or Very sad\" /><!-- s:cry: --> \n\nMil gracias. Un saludo.\nLORENZO, desde Cádiz, España.",
"time": "12:23",
"topic": "CDX Temporary",
"username": "Loren"
}
] |
CDX Temporary
|
[
{
"date": "2013-11-28",
"forum": "FiveWin para Harbour/xHarbour",
"text": "¿...?",
"time": "09:32",
"topic": "CDX Temporary",
"username": "Loren"
}
] |
CDX Temporary
|
[
{
"date": "2013-11-29",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Prueba con Set autopen off\n\nY antes de quit, ¿pones dbcloseall()?.",
"time": "18:49",
"topic": "CDX Temporary",
"username": "lucasdebeltran"
}
] |
CDX Temporary
|
[
{
"date": "2013-12-03",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Lucasdebeltran\n\nFuncionó con Set autopen off y poniendo antes del quit \"dbcloseall()\"\n\nGracias. Un saludo.\nLOREN",
"time": "08:51",
"topic": "CDX Temporary",
"username": "Loren"
}
] |
CDX Temporary
|
[
{
"date": "2015-08-28",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Compañeros, buenas:\n\nTengo una aplicación circulando en red local. Un EXE en cada terminal y todos acceden a una carpeta compartida donde se encuentran los DBF. Todo \"ok\", pero la empresa usuarias, tras una prueba de 1 mes, me reportan un informe donde me dicen que:\n\n- En las búsquedas por descripción parcial de artículos, cuando varios usuarios buscan simultáneamente, los resultados se mezclan. Es decir, un usuario busca por \"agua\" en el campo descripción de artículo y desde otro terminal, se busca \"cola\" y los resultados se mezclan en ambos equipos.\n\nEn el código fuente evito hacer un dbsetfilter, porque son muy lentos, y hago un indice temporary, que son superrapidos, tal cual así:\n\n[code=fw:kx0qlcae]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">index</span> <span style=\"color: #0000ff;\">on</span> descrip tag tempor <span style=\"color: #0000ff;\">to</span> tempor additive <span style=\"color: #00C800;\">for</span> upper<span style=\"color: #000000;\">(</span>alltrim<span style=\"color: #000000;\">(</span>ctextoTecleado<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> $ upper<span style=\"color: #000000;\">(</span>descripcion<span style=\"color: #000000;\">)</span></div>[/code:kx0qlcae]\n\nMi pregunta es: \n¿Qué falla?\n¿Hay que guardar el temporary en el terminal que solicita la busqueda y NO en la carpeta compartida donde se encuentran los DBF?\n\nGracias. \nUn saludo.\nLORENZO.\nDesde Cádiz, España.",
"time": "08:49",
"topic": "CDX con indices temporales",
"username": "Loren"
}
] |
CDX con indices temporales
|
[
{
"date": "2015-08-28",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Compañeros,\n\nPara el que quiera seguir este hilo, la solución pasaba por crear el INDICE en cada equipo y no en la carpeta compartida, así NO se comparte el INDICE.\n\nAsí:\n[code=fw:3l8oc6q9]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">index</span> <span style=\"color: #0000ff;\">on</span> descrip tag &<span style=\"color: #000000;\">(</span>cRutaEqupo+tempor<span style=\"color: #000000;\">)</span> <span style=\"color: #0000ff;\">to</span> &<span style=\"color: #000000;\">(</span>cRutaEqupo+tempor<span style=\"color: #000000;\">)</span> additive <span style=\"color: #00C800;\">for</span> upper<span style=\"color: #000000;\">(</span>alltrim<span style=\"color: #000000;\">(</span>ctextoTecleado<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> $ upper<span style=\"color: #000000;\">(</span>descripcion<span style=\"color: #000000;\">)</span></div>[/code:3l8oc6q9]\n\nUn saludo.",
"time": "12:45",
"topic": "CDX con indices temporales",
"username": "Loren"
}
] |
CDX con indices temporales
|
[
{
"date": "2015-08-28",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Loren,\nTe agregaría el siguiente comentario...\nNo te olvides de borrar el índice una vez que termines de usarlo.\nYa que dejarías archivos dando vueltas innecesariamente.\nSaludos,",
"time": "13:07",
"topic": "CDX con indices temporales",
"username": "jrestojeda"
}
] |
CDX con indices temporales
|
[
{
"date": "2015-08-29",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hola .\n\nEn lo personal lo hago asi.\n\n index on descrip tag &(cRutaEqupo+tempor) to &(cRutaEqupo+tempor) for upper(alltrim(ctextoTecleado)) $ upper(descripcion) TEMPORARY",
"time": "15:40",
"topic": "CDX con indices temporales",
"username": "ruben Dario"
}
] |
CDX con indices temporales
|
[
{
"date": "2015-08-30",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Revisa please\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=31054&p=179579&hilit=mem%3A#p179579\">viewtopic.php?f=3&t=31054&p=179579&hilit=mem%3A#p179579</a><!-- l -->\n\nAhí tienes ejemplos de como crear un indice en memoria.\n\nSaludos Cordiales",
"time": "21:05",
"topic": "CDX con indices temporales",
"username": "thefull"
}
] |
CDX con indices temporales
|
[
{
"date": "2009-01-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I can’t find out the function which returns the value “how many ordkey’s” a cdx file has.\nTest.dbf\n index on field->datum tag u_datum\n index on dtos(field->datum)+str(field->renr) tag u_datrg \n index on dtos(field->datum) + Upper(field->artnum) tag u_datart \n\nThe function should return for this example 3.\n\nThanks in advance\nOtto",
"time": "10:15",
"topic": "CDX ordKey question",
"username": "Otto"
}
] |
CDX ordKey question
|
[
{
"date": "2009-01-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Sir,\n\n<cAlias>->( OrdKeyCount() ) will do.\n\n\nRegards,",
"time": "10:24",
"topic": "CDX ordKey question",
"username": "fraxzi"
}
] |
CDX ordKey question
|
[
{
"date": "2009-01-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello fraxzi,\n\nOrdKeyCount() I think gives back the items within an key.\nI need the number of key which are compound in on index file.\n\nFor example:\nTest.dbf\nTest.cdx has following tags:\ntag u_datum\ntag u_datrg \ntag u_datart\n\nI would need as anwer 3 in this example.\nordKeyCount() gives me back 2945, which are the records matching tag u_datum.\n\nAs a workaround I do:\n\nfor Itest := 1 to 20\nif len(Alltrim(ordkey()))=0\nmsginfo(Itest)\nendif\nnext\n\nDo you know if there exists a function for that.\n\nThanks in advance\nOtto",
"time": "11:10",
"topic": "CDX ordKey question",
"username": "Otto"
}
] |
CDX ordKey question
|
[
{
"date": "2009-01-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Otto,\n\nOrdKeyCount() returns the number of matching records in an order.\n\nIn xharbour there is the function OrdCount(cBag) to get the no. of indexes in an order.",
"time": "11:31",
"topic": "CDX ordKey question",
"username": "StefanHaupt"
}
] |
CDX ordKey question
|
[
{
"date": "2009-01-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Stefan, \n\nThank you. This function is what I was looking for.\nIf I remember well you are a CAD expert. \nSome years ago I saw and tested an AUTOCAD clone written in FIVEWIN.\nDo you know if this program is still available?\n\nI would need a CAD program like “AutoCAD lite” for my personal use.\n\nBest regards,\nOtto",
"time": "11:43",
"topic": "CDX ordKey question",
"username": "Otto"
}
] |
CDX ordKey question
|
[
{
"date": "2009-01-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Otto,\n\nthis AutoCAD clone had been written by Arturo Tamayo Daza, on his website [url:r1l31bgi]http://www.quark-costos.com/index.php[/url:r1l31bgi] you can get more informations.\n\nFor personal use there is open source project called CADEMIA, that offers a free CAD software. Look at [url:r1l31bgi]http://www.cademia.org[/url:r1l31bgi]\n\nIf you need more informations about CAD please contact me directly: <!-- e --><a href=\"mailto:sthaupt@uni-kassel.de\">sthaupt@uni-kassel.de</a><!-- e -->. I can give you some advices.",
"time": "13:55",
"topic": "CDX ordKey question",
"username": "StefanHaupt"
}
] |
CDX ordKey question
|
[
{
"date": "2009-01-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Otto,\n\nTry this :\n aindex:=getordnames()\n msginfo(len(aindex))\n\n\nregards,\n\nKok Joek Hoa",
"time": "14:59",
"topic": "CDX ordKey question",
"username": "kok joek hoa"
}
] |
CDX ordKey question
|
[
{
"date": "2011-03-11",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hola a todos,\nTengo un archivo MIDB.DBF con un campo memo asociado.\nel caso es que al abrirlo me busca el correspondiente MIDB.FTP pero el que realmente existe es un MIDB.DBT .\n¿Como puedo forzar a que abra con el segundo en vez de con el primero?\nYa lo he intentado con USE midb NEW VIA \"DBFNTX\" pero no funciona...\n\ngracias anticipadas <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: -->",
"time": "09:14",
"topic": "CDX y campo MEMO",
"username": "José Vicente Beltrán"
}
] |
CDX y campo MEMO
|
[
{
"date": "2011-03-11",
"forum": "FiveWin para Harbour/xHarbour",
"text": "[code=fw:177ts55r]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />ANNOUNCE RDDSYS<br /><br />REQUEST DBFCDX, DBFFPT<br /><br /><span style=\"color: #00C800;\">FUNCTION</span> Main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> RDDSETDEFAULT<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"DBFCDX\"</span> <span style=\"color: #000000;\">)</span><br /><br /> ...<br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /> </div>[/code:177ts55r]\n\nLibs:\n\n\\xHarbour\\lib\\dbfntx.lib\n\\xHarbour\\lib\\dbfcdx.lib\n\\xHarbour\\lib\\dbffpt.lib\n\u001a",
"time": "13:05",
"topic": "CDX y campo MEMO",
"username": "karinha"
}
] |
CDX y campo MEMO
|
[
{
"date": "2011-03-11",
"forum": "FiveWin para Harbour/xHarbour",
"text": "José, antes de abrir la tabla seteale el RDD por default\n\nRDDSETDEFAULT(\"DBFNTX\")\nDBUSEAREA( [<lAreaNueva>], , <cNombre>, , [<lCompartido>])\n\nTe conviene meter esto dentro de una función y que el RDD sea otro parámetro más.",
"time": "13:22",
"topic": "CDX y campo MEMO",
"username": "leondefrancia"
}
] |
CDX y campo MEMO
|
[
{
"date": "2011-03-11",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Gracias a ambos por contestar,\nYa habia probado casi todo lo que comentais, y al final lo he solucionado cambiando el primer bit de cabecera del DBF para obligarle a abrir un DBT en vez del FPT que el se empeña en abrir, funciona muy bien y asunto resuelto.\n\ngracias de nuevo <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: -->",
"time": "16:51",
"topic": "CDX y campo MEMO",
"username": "José Vicente Beltrán"
}
] |
CDX y campo MEMO
|
[
{
"date": "2011-11-08",
"forum": "FiveWin for Pocket PC",
"text": "Hello,\n\nBy any chance, does anyone have a working example of how to transfer files from a Win CE5 (MC3090) unit to URL using HTTP or FTP? I need to be able to store XML files on unit until a WiFi connection is available to transfer files. Thank you in advance for your assistance.\n\nSincerely,",
"time": "22:53",
"topic": "CE 5 File Transfer",
"username": "cdmmaui"
}
] |
CE 5 File Transfer
|
[
{
"date": "2018-05-10",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Amigos hay algunos celulares que vienen con windows, es posible ponerle un sistema con fivewin y mysql\nSaludos",
"time": "14:25",
"topic": "CELULARES CON WINDOWS",
"username": "jbrita"
}
] |
CELULARES CON WINDOWS
|
[
{
"date": "2018-05-11",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Estimado \nHe trabajado varias versiones de telefonos con windows 8 y 10 y no te tenido problemas de ningun tipo.\nSAludes.",
"time": "00:01",
"topic": "CELULARES CON WINDOWS",
"username": "Busmatic_wpb"
}
] |
CELULARES CON WINDOWS
|
[
{
"date": "2008-01-02",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Antonio, quando centralizo uma dialog com o codigo abaixo:\n\n[code:3gg6clzh] Activate Dialog oDlgOS CENTER[/code:3gg6clzh]\n\nO Dialog não centraliza corretamente quando o SideBar do windows vista está ativo!!",
"time": "12:46",
"topic": "CENTER do Dialog não considera SideBar do Windows Vista",
"username": "Anderson.OL"
}
] |
CENTER do Dialog não considera SideBar do Windows Vista
|
[
{
"date": "2015-11-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Consider this\n\nDEFINE WINDOW oWnd\n...\nACTIVATE WINDOW oWnd\n\n\nDEFINE DIALOG oDlg OF oWnd\n...\nACTIVATE DIALOG oDlg CENTERED\n\n\nDEFINE DIALOG oDlgA OF oDlg\n...\nACTIVATE DIALOG oDlgA CENTERED\n\nShould oDlg open centered on oWnd, and oDlgA open centered on oDlg ?\n\nIf I open the window, then move it to the side of the display, when oDlg is opened, it is centered on the main display. If I move it over to center it on oWnd, then open oDlgA, it is centered on the screen.\n\nSince OF makes each a subscreen of the previous dialog, I would think CENTERED would make it relative to the previous screen, but it doesn't work that way.\n\nWhat do you think ?",
"time": "00:31",
"topic": "CENTERED dialogs",
"username": "TimStone"
}
] |
CENTERED dialogs
|
[
{
"date": "2015-11-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Try\n\nACTIVATE DIALOG .... CENTERED IN PARENT",
"time": "00:38",
"topic": "CENTERED dialogs",
"username": "cnavarro"
}
] |
CENTERED dialogs
|
[
{
"date": "2015-11-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks ... that works. \n\nIt's just not in the documentation, even online.",
"time": "01:22",
"topic": "CENTERED dialogs",
"username": "TimStone"
}
] |
CENTERED dialogs
|
[
{
"date": "2015-11-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Tim,\n\nYou are right, my apologies.\n\nAnyhow it is inside dialog.ch:\n\n[code=fw:20uroolu]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">#xcommand <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> <oDlg> ;<br /> <span style=\"color: #000000;\">[</span> <center: <span style=\"color: #0000ff;\">CENTER</span>, CENTERED> <span style=\"color: #000000;\">[</span> <inwnd: <span style=\"color: #000000;\">IN</span> PARENT> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">]</span> ;<br /> <span style=\"color: #000000;\">[</span> <NonModal: <span style=\"color: #0000ff;\">NOWAIT</span>, NOMODAL> <span style=\"color: #000000;\">]</span> ;<br /> <span style=\"color: #000000;\">[</span> <span style=\"color: #0000ff;\">WHEN</span> <uWhen> <span style=\"color: #000000;\">]</span> ;<br /> <span style=\"color: #000000;\">[</span> <span style=\"color: #0000ff;\">VALID</span> <uValid> <span style=\"color: #000000;\">]</span> ;<br /> <span style=\"color: #000000;\">[</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #000000;\">[</span> <span style=\"color: #0000ff;\">LEFT</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">CLICK</span> <uClick> <span style=\"color: #000000;\">]</span> ;<br /> <span style=\"color: #000000;\">[</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <uInit> <span style=\"color: #000000;\">]</span> ;<br /> <span style=\"color: #000000;\">[</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">MOVE</span> <uMoved> <span style=\"color: #000000;\">]</span> ;<br /> <span style=\"color: #000000;\">[</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">PAINT</span> <uPaint> <span style=\"color: #000000;\">]</span> ;<br /> <span style=\"color: #000000;\">[</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">RIGHT</span> <span style=\"color: #0000ff;\">CLICK</span> <uRClicked> <span style=\"color: #000000;\">]</span> ;<br /> <span style=\"color: #000000;\">[</span> <Resize16: <span style=\"color: #000000;\">RESIZE16</span>> <span style=\"color: #000000;\">]</span> ;</div>[/code:20uroolu]",
"time": "10:17",
"topic": "CENTERED dialogs",
"username": "Antonio Linares"
}
] |
CENTERED dialogs
|
[
{
"date": "2015-11-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I know people don't like to write documentation if they are programmers. I hear that no one reads them, etc. I started a manual 33 years ago when I started creating a major application, and for the past few weeks I've once again been updating it to make it solid for my clients. It is a lot of work, and yet, for those of us who are happy to research answers rather than always asking questions, it is very helpful.\n\nThe online manual is pretty good, so it would be nice if the major changes in FWH could be added to that documentation.",
"time": "18:18",
"topic": "CENTERED dialogs",
"username": "TimStone"
}
] |
CENTERED dialogs
|
[
{
"date": "2015-11-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Tim,\n\nIt seems as it was already documented:\n\n[url:1nlzsrz3]http://wiki.fivetechsoft.com/doku.php?id=fivewin_commands_dialogs[/url:1nlzsrz3]",
"time": "22:40",
"topic": "CENTERED dialogs",
"username": "Antonio Linares"
}
] |
CENTERED dialogs
|
[
{
"date": "2015-11-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "And that is exactly where I looked before asking the question. I think I need a glass of wine and an easy chair. \n\nOf course I would have to remember just where they are before I could use them .... getting too old !",
"time": "23:00",
"topic": "CENTERED dialogs",
"username": "TimStone"
}
] |
CENTERED dialogs
|
[
{
"date": "2015-11-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Tim,\n\nI also forgot that it was updated <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nTime runs for all of us <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "23:27",
"topic": "CENTERED dialogs",
"username": "Antonio Linares"
}
] |
CENTERED dialogs
|
[
{
"date": "2015-11-04",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Neither of you guys missed anything. I updated the wiki after I read this thread yesterday <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->",
"time": "03:03",
"topic": "CENTERED dialogs",
"username": "hua"
}
] |
CENTERED dialogs
|
[
{
"date": "2015-11-04",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hua,\n\nMany thanks! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "08:58",
"topic": "CENTERED dialogs",
"username": "Antonio Linares"
}
] |
CENTERED dialogs
|
[
{
"date": "2015-11-04",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks for explaining. As the years go by, it gets harder to be on top of everything, but I do try.",
"time": "17:18",
"topic": "CENTERED dialogs",
"username": "TimStone"
}
] |
CENTERED dialogs
|
[
{
"date": "2020-08-30",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hola amigos.\nAlguien sabe como hacer para alinear las cabeceras y los totales de las columnas de un treport ?\nLas cabeceras las alinea siempre segun el alineamiento de la columna correspondiente, como hago para cambiarlo y ponerlas todas centradas por ejemplo?\nHe probado con oHeader (ej:oRpt:oHeader:aPad[1] := RPT_CENTER etc,etc y nada funciona\nLos totales de las columnas numericas salen centrados y quisiera alinearlos a la derecha !\nSaludos a todos",
"time": "17:10",
"topic": "CENTRADO DE CABECERAS EN TREPORT",
"username": "rterraz"
}
] |
CENTRADO DE CABECERAS EN TREPORT
|
[
{
"date": "2020-08-30",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Rterraz:\n\nA ver si esto es lo que buscas:\n\nEn encabezados del reporte hay dos grupos, HEADER propiamente y TITLE, en cada uno puede\nhaber uno o mas renglones contenidos en arrays, entonces:\n\n[code=fw:1ccpjcaa]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /> oReporte:<span style=\"color: #000000;\">oHeader</span>:<span style=\"color: #000000;\">aPad</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span> := RPT_LEFT <span style=\"color: #B900B9;\">// aPad[1] se refiere al primer renglón de encabezados</span><br /> oReporte:<span style=\"color: #000000;\">oTitle</span>:<span style=\"color: #000000;\">aPad</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">]</span> := RPT_RIGHT <span style=\"color: #B900B9;\">// aPad[2] se refiere al segundo renglón de títulos</span><br /> </div>[/code:1ccpjcaa]\n\nAhora para alinear los renglones de detalle:\n\n[code=fw:1ccpjcaa]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /> COLUMN <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Nombre\"</span> <span style=\"color: #00C800;\">DATA</span> ALLTRIM<span style=\"color: #000000;\">(</span>oRsCli:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"CLI_NOM\"</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span><span style=\"color: #000000;\">)</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">55</span> <span style=\"color: #0000ff;\">LEFT</span> <span style=\"color: #B900B9;\">// Observa la clausula de alineación</span><br /> COLUMN <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"RFC\"</span> <span style=\"color: #00C800;\">DATA</span> ALLTRIM<span style=\"color: #000000;\">(</span>oRsCli:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"CLI_RFC\"</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span><span style=\"color: #000000;\">)</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">14</span> <span style=\"color: #0000ff;\">LEFT</span><br /> COLUMN <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Número\"</span> <span style=\"color: #00C800;\">DATA</span> oRsCli:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"CLI_CLI\"</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">6</span> <span style=\"color: #0000ff;\">RIGHT</span> <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@Z 99999\"</span><br /> </div>[/code:1ccpjcaa]\n\nFinalmente para alinear los renglones de totales\n\n[code=fw:1ccpjcaa]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oReporte:<span style=\"color: #0000ff;\">SAY</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">2</span>,TRANSFORM<span style=\"color: #000000;\">(</span>nTotGui,<span style=\"color: #ff0000;\">\"99,999\"</span><span style=\"color: #000000;\">)</span>,,RPT_RIGHT<span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// Observa las contantes con nombre RPT_RIGHT</span><br />oReporte:<span style=\"color: #0000ff;\">SAY</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">3</span>,<span style=\"color: #ff0000;\">\"Guías\"</span>,,RPT_LEFT<span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// RPT_LEFT y también existe RPT_CENTER</span><br /> </div>[/code:1ccpjcaa]\n\nSaludos",
"time": "17:24",
"topic": "CENTRADO DE CABECERAS EN TREPORT",
"username": "Armando"
}
] |
CENTRADO DE CABECERAS EN TREPORT
|
[
{
"date": "2020-08-30",
"forum": "FiveWin para Harbour/xHarbour",
"text": "hola Armando, te agradezco tu respuesta\nla linea de totales funciona perfecto\nlos header me ignoran, lo justifica siempre como justifica la data de la columna, sera porque tengo 2 lineas en cada header ?",
"time": "21:05",
"topic": "CENTRADO DE CABECERAS EN TREPORT",
"username": "rterraz"
}
] |
CENTRADO DE CABECERAS EN TREPORT
|
[
{
"date": "2020-08-30",
"forum": "FiveWin para Harbour/xHarbour",
"text": "RTerraz:\n\nVa un ejemplo más completo\n\n[code=fw:3gjra1z9]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />REPORT oReporte CAPTION <span style=\"color: #ff0000;\">\"Ventas del mes por cliente\"</span> PREVIEW;<br /> HEADER ALLTRIM<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">(</span>cEmpresa<span style=\"color: #000000;\">)</span>->EMP_RAZ<span style=\"color: #000000;\">)</span>,;<br /> aMes<span style=\"color: #000000;\">[</span>nMes<span style=\"color: #000000;\">]</span>+<span style=\"color: #ff0000;\">\"/\"</span>+STR<span style=\"color: #000000;\">(</span>nAmo,<span style=\"color: #000000;\">4</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span>,;<br /> <span style=\"color: #ff0000;\">\"Ventas del mes por cliente\"</span>,;<br /> <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #0000ff;\">CENTER</span>;<br /> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Fecha: \"</span>+Date2Txt<span style=\"color: #000000;\">(</span>DATE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>,,,,,,<span style=\"color: #000000;\">)</span>,;<br /> <span style=\"color: #ff0000;\">\"Hoja No:\"</span>+STR<span style=\"color: #000000;\">(</span>oReporte:<span style=\"color: #000000;\">nPage</span>,<span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #0000ff;\">FONT</span> aFnt<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span>,aFnt<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">]</span>,aFnt<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">]</span>;<br /> PEN aPen<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span>,aPen<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">]</span><br /><br /> COLUMN <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Guia\"</span> <span style=\"color: #00C800;\">DATA</span> <span style=\"color: #000000;\">(</span>cDetHDev<span style=\"color: #000000;\">)</span>->DET_NDG <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">6</span> <span style=\"color: #0000ff;\">RIGHT</span><br /> COLUMN <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Destino\"</span> <span style=\"color: #00C800;\">DATA</span> <span style=\"color: #000000;\">(</span>cCiudades<span style=\"color: #000000;\">)</span>->CIU_NOM <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">35</span> <span style=\"color: #0000ff;\">LEFT</span><br /> COLUMN <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Undd\"</span> <span style=\"color: #00C800;\">DATA</span> <span style=\"color: #000000;\">(</span>cFacturas<span style=\"color: #000000;\">)</span>->FAC_CAM <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #0000ff;\">RIGHT</span><br /> COLUMN <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Operador\"</span> <span style=\"color: #00C800;\">DATA</span> <span style=\"color: #000000;\">(</span>cFacturas<span style=\"color: #000000;\">)</span>->FAC_CVE <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #0000ff;\">LEFT</span><br /> COLUMN <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Importe\"</span> <span style=\"color: #00C800;\">DATA</span> <span style=\"color: #000000;\">(</span>cDetHDev<span style=\"color: #000000;\">)</span>->DET_IDG <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">9</span> <span style=\"color: #0000ff;\">RIGHT</span> TOTAL <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"99,999,999.99\"</span><br /> COLUMN <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Seguro\"</span> <span style=\"color: #00C800;\">DATA</span> <span style=\"color: #000000;\">(</span>cFacturas<span style=\"color: #000000;\">)</span>->FAC_SEG <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">9</span> <span style=\"color: #0000ff;\">RIGHT</span> TOTAL <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"99,999,999.99\"</span><br /><br /> GROUP gCliente <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #000000;\">(</span>cDetHDev<span style=\"color: #000000;\">)</span>->DET_CLI;<br /> FOOTER <span style=\"color: #ff0000;\">\"Totales: \"</span> + cDetCli + SPACE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">)</span> + ALLTRIM<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">(</span>cClientes<span style=\"color: #000000;\">)</span>->CLI_NOM<span style=\"color: #000000;\">)</span> ;<br /> + SPACE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">)</span> + STR<span style=\"color: #000000;\">(</span>oReporte:<span style=\"color: #000000;\">aGroups</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">nCounter</span><span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\" Guias\"</span> <span style=\"color: #0000ff;\">FONT</span> <span style=\"color: #000000;\">2</span><br /><br /> gCliente:<span style=\"color: #000000;\">bHeader</span> := <span style=\"color: #000000;\">{</span>|| <span style=\"color: #ff0000;\">\"** \"</span>+<span style=\"color: #000000;\">(</span>cDetHDev<span style=\"color: #000000;\">)</span>->DET_CLI<span style=\"color: #000000;\">}</span><br /><br /> END REPORT<br /><br /> <span style=\"color: #00C800;\">IF</span> oReporte:<span style=\"color: #000000;\">lCreated</span><br /> oReporte:<span style=\"color: #000000;\">cGrandTotal</span> := <span style=\"color: #ff0000;\">\"GRAN TOTAL\"</span><br /> oReporte:<span style=\"color: #000000;\">oHeader</span>:<span style=\"color: #000000;\">aFont</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span> := <span style=\"color: #000000;\">{</span>||<span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">}</span><br /> oReporte:<span style=\"color: #000000;\">oHeader</span>:<span style=\"color: #000000;\">aFont</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">]</span> := <span style=\"color: #000000;\">{</span>||<span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">}</span><br /> oReporte:<span style=\"color: #000000;\">SetTxtColor</span><span style=\"color: #000000;\">(</span>CLR_BLACK,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// Color del texto de la hoja default NEGRO</span><br /> oReporte:<span style=\"color: #000000;\">SetTxtColor</span><span style=\"color: #000000;\">(</span>CLR_HRED,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// Color de encabezado y totales del grupo</span><br /> oReporte:<span style=\"color: #000000;\">SetTxtColor</span><span style=\"color: #000000;\">(</span>CLR_HRED,<span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// Color para el primer titulo del encabezado</span><br /> oReporte:<span style=\"color: #000000;\">SetPenColor</span><span style=\"color: #000000;\">(</span>CLR_HBLUE<span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// Color para las líneas</span><br /> oReporte:<span style=\"color: #000000;\">SetShdColor</span><span style=\"color: #000000;\">(</span>CLR_YELLOW<span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// Color para el sombreado</span><br /><br /> oReporte:<span style=\"color: #000000;\">oHeader</span>:<span style=\"color: #000000;\">aPad</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">]</span> := RPT_RIGHT<br /><br /> oReporte:<span style=\"color: #000000;\">oTitle</span>:<span style=\"color: #000000;\">aPad</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span> := RPT_LEFT<br /> oReporte:<span style=\"color: #000000;\">oTitle</span>:<span style=\"color: #000000;\">aPad</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">]</span> := RPT_RIGHT<br /> oReporte:<span style=\"color: #000000;\">nDnMargin</span> := <span style=\"color: #000000;\">300</span><br /> oReporte:<span style=\"color: #000000;\">lPageTotal</span> := <span style=\"color: #000000;\">(</span>.F.<span style=\"color: #000000;\">)</span><br /> oReporte:<span style=\"color: #000000;\">bPostEnd</span> := <span style=\"color: #000000;\">{</span> || Totales<span style=\"color: #000000;\">(</span>oReporte,nTotGui<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /><br /> <span style=\"color: #0000ff;\">ACTIVATE</span> REPORT oReporte <span style=\"color: #00C800;\">FOR</span> <span style=\"color: #000000;\">(</span>cCartera<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span>DBSEEK<span style=\"color: #000000;\">(</span>STR<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">(</span>cDetHDev<span style=\"color: #000000;\">)</span>->DET_NDG,<span style=\"color: #000000;\">6</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">WHILE</span> ! <span style=\"color: #000000;\">(</span>cDetHDev<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span>EOF<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #0000ff;\">ON</span> STARTPAGE <span style=\"color: #000000;\">(</span>Alinea<span style=\"color: #000000;\">(</span>oReporte,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #0000ff;\">ON</span> STARTGROUP <span style=\"color: #000000;\">(</span>cDetCli := <span style=\"color: #000000;\">(</span>cDetHDev<span style=\"color: #000000;\">)</span>->DET_CLI,oReporte:<span style=\"color: #000000;\">EndLine</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>,;<br /> <span style=\"color: #000000;\">(</span>cClientes<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span>DBSEEK<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">(</span>cFacturas<span style=\"color: #000000;\">)</span>->FAC_CLI<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #0000ff;\">ON</span> ENDGROUP nTotGui += oReporte:<span style=\"color: #000000;\">aGroups</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">nCounter</span><br /> Cierra<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> </div>[/code:3gjra1z9]\n\nSaludos",
"time": "21:27",
"topic": "CENTRADO DE CABECERAS EN TREPORT",
"username": "Armando"
}
] |
CENTRADO DE CABECERAS EN TREPORT
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.