Recent content by Wolfgang Schölmberger

  1. W

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

    Unfortunately not. it gives compile-error "Parameter 1 for METHOD is not type compatible with its definition. (12905)"
  2. 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...
  3. W

    Resolved writing memorystream to file

    Found the solution: DO iLoop = 1 TO oMemStream:length: PUT-BYTE(mptr, iLoop) = oMemStream:ReadByte(). END. COPY-LOB mptr TO FILE SESSION:TEMP-DIR + "something.txt".
  4. 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 -...
  5. W

    Treeview OCX - Set Focus

    oTreeView:Focus().
  6. W

    Answered Creating Thumbnail for Word-document using 'EnhMetaFileBits'

    Thanks Stefan, works like a charm !!! Using ImageMagick I can convert and resize the EMF-file to .PNG or whatever !
  7. W

    Problems with converting a piece of .net code to progress - MemoryStream

    Hi Den, I was asked by my boss to implement exactly the same: copy an Outlook-attachment by drag&drop to an ABL-window. Searching the web I found this thread and now I wonder, if you ever found a solution for this problem and managed to implement this feature. Wolf
  8. W

    Answered Creating Thumbnail for Word-document using 'EnhMetaFileBits'

    Thanks for your input, Rob ! It's not a real important thing for us, we do use some thumbnails, but if there are none, it's ok as well. Just stumbled over this piece of code and thought it looks small and easy and I'll give it a try. OK, it's not so easy.... Wolf
  9. 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 =...
  10. W

    Resolved Validation error in WebService

    Thanks Cecil ! I will have a look at the SAX-WRITE
  11. 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...
  12. 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...
  13. W

    Resolved EventHandler for ListView

    Osborne, works perfect, THANKS !!! Wolf
  14. W

    Resolved EventHandler for ListView

    one problem is solved, the next one arrives.... how would one translate this line of code to ABL ? ListViewItem draggedItem = (ListViewItem)e.Data.GetData(typeof(ListViewItem)) I tried DEF VAR hListViewItem AS System.Windows.Forms.ListViewItem NO-UNDO. hListViewItem =...
  15. W

    Resolved EventHandler for ListView

    Thanks Osborne, works perfect ! this c# and .Net-notation ist still a pain for me as pure ABL-programmer :)
Top