Navision Clipboad Stream

NavStudent
NavStudent Member Posts: 399
Has anybody looked at Navision Clipboard stream?
I'm trying to decipher the stream in my application.
This is the stream converted to byte array

dȤ
d¬|dddV`µ!LEinheit	Unit of Measure
Unidad medidaUnit‚ de mesureGRÑHRÑüX0‰h0-

Code@
µ!4
Code	
Code
	C¢digo	Code  	<
Description@
µ!HBeschreibung	Description
Descripci¢nDescription,A&#130;dpddddddËfÌfÍf'[¸A<(ef ØfÌfÌ&#135;,f

Rec4f


xRec

CurrFieldNo
è
UnitOfMeasureTranslationTdf	dÌfdf,&#137;

Codetfëÿÿÿ&#137;føÿÿÿ
SETRANGE

Code
DELETEALLàÿÿÿÿÀeEePe
eeÿÿÿÿeee
eee{e4&#152;oeOnDeleteeeWeeTeeVeete);eWeete;eH

Code
DescriptionÿBOXBoxÿBOX2Box2
Most of the boxes cannot be shown here.
Basically it's Unit of measure table coppied to clipboad. Here is the text
Code	Description
BOX	Box
BOX2	Box2
my 2 cents

Comments

  • wakestar
    wakestar Member Posts: 207
    in c#? what is your goal? Do you need the plaintext copied to the clipboard?
  • NavStudent
    NavStudent Member Posts: 399
    I can see the system.string fine. My goal is to manipulate the
    "Microsoft Dynamics NAV Record" Stream so that I mix a Navision clipboard with Excel clipboard.

    Navision allows copying from Navision to Navision through this Stream.
    I am trying to modify the stream and put excel data in there.

    The goal is to allow data copied from excel to be pasted into Navision.


    The problem is the stream has obfuscated structure.
    ](*,)

    It looks like they are sending the table object with code and validation in the stream.
    my 2 cents
  • NavStudent
    NavStudent Member Posts: 399
    It's one of the reason why copy and paste accross citrix or RDP for table for navision doesn't work.

    They are doing some checksum.
    my 2 cents
  • wakestar
    wakestar Member Posts: 207
    interesting idea but it looks like a "mission impossible" .... imho.

    I would probably write a com-registred DLL which exposes the method "GetNavDataFromClipboard" which gets all records from the clipboard in plain text and an event "ModifiedRecord" with a Text 1024 variable for sending back each modified record to navision to loop over all fields and modify the record with C/AL code. Just an idea.
  • NavStudent
    NavStudent Member Posts: 399
    I'm doing it with a stand alone .NET application. It's an external application.
    my 2 cents