Search results

  1. W

    Question How to send CTRL-V to a .NET control

    Hi everybody, OE12.6, Win10 I want to send CTRL-V to a RichTextBox, using this code: DEF VAR m AS System.Windows.Forms.Message NO-UNDO. m = NEW System.Windows.Forms.Message(). RichTextBox:ProcessCmdKey(m, CAST(Progress.Util.EnumHelper:Or(System.Windows.Forms.Keys:Control...
  2. W

    Resolved writing memorystream to file

    Hi everybody, OE12.6, Win 8/10 I have a MemoryStream and want to save it to an external file. Found some progress-examples (Knowledebase, ProgressTalk), but none of them works. Example 1 – using 'FileStream'. This gives 2 errors (at line "oFileStream:Write(oMemStream:GetBuffer(),": 984 -...
  3. W

    Answered Creating Thumbnail for Word-document using 'EnhMetaFileBits'

    Hi everybody, Win8, 10, OE11.7 & 12.5 Found a small piece of code which I try to translate from C# to ABL. var doc = new Microsoft.Office.Interop.Word.Application().Documents.Open(FileName: docxPath, Visible: false, ReadOnly: true); byte[] bytes = doc.Range().EnhMetaFileBits; Image page =...
  4. W

    Resolved Validation error in WebService

    Hi everybody ! OE12.5, Win10 I try to login to a WebService and get a validation-error, which I don't understand: "Invalid content was found starting with element tid....". My value for "tid" is "1000103u3032", which should be ok reguarding...
  5. W

    Question ACTIVE-FORM:ProWinHandle

    Hi everybody, OE12.5, Win 8 &10 I have a problem with the ACTIVE-FORM system reference. It has a property "ProWinHandle", which i thought might return the handle of the embedded ABL-Window. But I get an error when I try to reference the TITLE-attribut of this window, telling me "TITLE is not a...
  6. W

    Resolved EventHandler for ListView

    Hi everybody, OE12.5, Win 8 & 10 I have to implement drag & drop on a ListView-Control and found the following C#-example: listView1.AllowDrop = true; listView1.DragDrop += new DragEventHandler(listView1_DragDrop); listView1.DragEnter += new DragEventHandler(listView1_DragEnter); How would...
  7. W

    Answered WINDOW-RESIZED-Trigger executes on program-start

    Hi everybody, OE12.5, Win 8,10 I have an ABL-Window which I embed into a .Net-Form. After making the ABL-Window visible, the Window-Resized-Event executes, although the size of the ABL-Window has not changed. I attached a small example to show the behaviour. This is very strange and corrupts...
  8. W

    Resolved Apply the right mouse button

    Hi everybody, OE12.5 64bit, Win 8, 10 since years I use the small program: Apply the right mouse button | The OpenEdge Hive to center the mouse-cursor on a specific widget, e.g. to open a popup-menu programatically. Now we have to move our application to OE12 64bit and this code throws error...
  9. W

    Resolved How to find a .NET Form

    Hy everybody, I have a very simple program, that works since years and lists all Progress-Windows: DEFINE VARIABLE phand AS HANDLE. phand = SESSION:FIRST-CHILD. DO WHILE VALID-HANDLE(phand): IF phand:TYPE = "WINDOW" THEN MESSAGE phand:TITLE VIEW-AS ALERT-BOX. phand = phand:NEXT-SIBLING...
  10. W

    Question C# to ABL again

    Hi everybody, I have again a bit of C#-code that I should translate to ABL, but I can't really figure out how. here is the C'-code: public static FileDownloadResult DownloadDocumentContent(this Document document) { if (document.FileDownloadRelationLink == null) document =...
  11. W

    Answered Security-Policy AES-CBC-256-encryption

    Hi everybody, I have a very simple test-program for AES-CBC-256-encryption, which I attached. My result is completely different than the result I get on Online Tool for AES Encryption and Decryption (see 2nd attachment). Can anybody please tell me what I'm doing wrong ? TIA, Wolf
  12. W

    Question How to return an error-message in a webservice

    Hi everybody, we have an old webservice, and the guy who wrote it 20 years back returned error messages like this: RETURN ERROR "this is an error". my questions are: 1. is this text ever sent back to the web-client ? 2. if yes, how does the web-client retrieve this message ? 3. is there a...
  13. W

    Question Save mails produced by smtpmail.p

    Hi everybody, This question is a follow-up to Resolved - sending outlook mail with graphics I not only succeeded to send embedded graphics with Outlook, but I also successfully implemented smtpmail - as Tom proposed - because for bulk-mails its a far better solution than Outlook. The problem...
  14. W

    Answered TAB-Problems mixing NET-controls AND ABL-widgets

    Hi everybody, Found a simple demo-program here (Question - Using Ocx Microsoft richtextbox) that uses richtextbox together with some ABL-buttons in one frame. My problem is: when the program starts, richtextbox has focus and one can't TAB-out of it. as soon as you have pressed one of the...
  15. W

    Resolved sending outlook mail with graphics

    Hi everybody, Found the Openedge-Knowledgebase-article Progress KB - How to add graphical or HTML content to the email body using Outlook COM object - How to add graphical or HTML content to the email body using Outlook COM object. It works partly. The outlook mail shows the picture, when I...
  16. W

    Answered using System.Windows.Forms.ClipBoard

    Hi everybody, I try to transform these 2 lines of code to ABL, but have problems with the "DataFormats". Can anybody please help ? Clipboard.SetData(DataFormats.Rtf, rtfString); lcHTML = Clipboard.GetData(DataFormats.Html); TIA, Wolf
  17. W

    Answered C# to ABL

    Hi everybody, I have the following code that I should translate to ABL. The first 2 lines are easy, but i'm stuggeling with the last 2 lines. int length = base64String.Length; while (length > 0 && base64String[length - 1] == '=') --length; char[] chArray = new char[length + 1]...
  18. W

    "continue reading"-links

    Hi all, every "continue reading" link that points to Progress community is dead. How do i "continue reading" ? TIA, Wolf
  19. W

    Answered CTRL-Mouse-Click

    Hi everybody OE 11.7, Windows Can somebody please tell me how to find out, if the CTRL (or ALT / or SHIFT) key is pressed while a mouse-click happens ? I'm looking for a funktion like: ON CTRL-MOUSE-SELECT-CLICK OF <button> TIA, Wolf
  20. W

    Question Type-II-database again

    Hi everybody, OE11.7, Windows 8, 10 We have a Type-I-database that has only one table - it is used as an document-archive. So there are only creates, no updates at all and very few deletes. Every document is written in chunks of 16K, so if a document has e.g. 100K it needs 6 records which are...
Top