The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Creating notes sheet in OriginC?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
jdf726 Posted - 02/14/2018 : 09:01:24 AM
Origin Ver. and Service Release (Select Help-->About Origin):
Operating System:

I have discovered that 'free-standing' notes windows don't show up in any of the doc -ef W {} type loops I often use to pick up data from within a folder by name.

When I googled this I found this
https://www.originlab.com/forum/topic.asp?TOPIC_ID=9443

which taught me that you can add a notes sheet to a workbook (manually with a right click menu) and this DOES show up in the doc -ef loop (because the note is then a sheet).

How do you programmatically (in origin C or in labtalk) make a note sheet?

(This is with the aim of dumping some text in it, to be retrieved later programmatically)


4   L A T E S T    R E P L I E S    (Newest First)
jdf726 Posted - 02/14/2018 : 11:18:47 AM
After some messing about with range notation I think I can get the text this way (it was not initially apparent to me that the 'note sheet' was actually had a cell structure, and you can add cells below the first notes).

range aa = [XXX0AD19info]XXX0AD19title!A;
aa[1]$=
jdf726 Posted - 02/14/2018 : 10:59:33 AM
Thanks!

I've successfully added this to my originC, so now there is a copy of the data in a "note sheet".

The reason I am doing it this way is that while I can get a note my name, sometimes I merge projects and there could be two notes windows with the same name. The doc -ef loop makes sure that you only pull the local (in this folder) copy of the 'note' window.

The trouble I have now is retrieving the text from the note sheet now that I know its "range notation" (I know it is called "title", say, and I know that it is part of a workbook called "D0AD24_info", so its path is something like [D0AD24_info]title! or something.

I used an originc function to retrieve the note by name before, but this assumed the name of the note, with no knowledge of which workbook or folder it was part of.

Given the information I know, what is the correct way of setting a label with that text data?




Castiel Posted - 02/14/2018 : 09:39:12 AM
quote:
Originally posted by jdf726

Origin Ver. and Service Release (Select Help-->About Origin):
Operating System:

I have discovered that 'free-standing' notes windows don't show up in any of the doc -ef W {} type loops I often use to pick up data from within a folder by name.

When I googled this I found this
https://www.originlab.com/forum/topic.asp?TOPIC_ID=9443

which taught me that you can add a notes sheet to a workbook (manually with a right click menu) and this DOES show up in the doc -ef loop (because the note is then a sheet).

How do you programmatically (in origin C or in labtalk) make a note sheet?

(This is with the aim of dumping some text in it, to be retrieved later programmatically)






https://www.originlab.com/doc/OriginC/ref/Worksheet-EmbedNote


     #####
    #### _\_  ________
    ##=-[.].]| \      
    #(    _\ |  |------|
     #   __| |  ||||||||
      \  _/  |  ||||||||
   .--'--'-. |  | ____ |
  / __      `|__|[o__o]|
_(____nm_______ /____\____ 
jdf726 Posted - 02/14/2018 : 09:08:58 AM
(for anyone who has never done this before... the feature is described here, but with no further documentation that I could find
https://www.originlab.com/doc/ReleaseNotes/Add-Graph-and-Notes-as-Sheet)

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000