Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Linking files embedded within a Microsoft Office file
New Posts  All Forums:Forum Nav:

Linking files embedded within a Microsoft Office file

post #1 of 2
Thread Starter 
This is entirely a link formatting problem, hence the post here.

Within a OneNote Notebook, you are able to embed independent copies of files. I have a shared OneNote notebook I'm building for my office to use, but I have hit a snag and need to figure this out.

Once you embed a file in OneNote, it saves a new copy of the file, into the OneNote file (it's an *.ONE file extension). This ONE file is actually an XML container that contains text files, formatting info and complete copies of the files I've embedded. I'd like to be able to embed files into the OneNote notebook file (So I can modify files to better suit the notebook, and so if the notebook is moved they travel with it), and then link to the embedded files in multiple locations throughout the notebook.

I am able to link to the location of the icon, but then you have to double-click the file, and you lose your place elsewhere in the notebook. Those links look like:
Code:
onenote:#Common%20Docs&section-id={2AB80C09-BF32-4F53-B2B7-43CAB77AA399}&page-id={3C95A2D5-E464-47F4-B0A6-BD7167F4FF8E}&object-id={D8ABAE1E-50F1-43EE-9BC7-3C3A8A0483C9}&32&base-path=WS0111\DataFS2$\WS-ENG\PI%20Data\Programs\RRT\documents\RRT%20Recap\References.one

In that link you can see the path location to the References.one notebook that the file is embedded in, and it has a special call out for linking within itself; so theorhetically what I want to do should be possible, I just can't quite get the syntax down. Breaking down that link:
Quote:
"onenote:" - callout that it's looking within itself
"#Common%20Docs" - the name of the section of the notebook the file is located on
then their are some id's for location, etc
"base-path=WS0111\DateFS2....." - the file location of the OneNote Notebook

I'm open to trying any suggestions you may have - I don't want to post the things I've tried yet to avoid biasing the results. Let's see if somebody can crack the internal coding of a microsoft application.
Edited by CTRLurself - 4/15/14 at 10:05am
Maximum Dwarf
(15 items)
 
Density!
(12 items)
 
 
CPUMotherboardGraphicsRAM
i5-3570k ASUS MAXIMUS IV GENE HD7970 Gen 1 Ripjaws Z 2x8GB 2133MHz 
Hard DriveHard DriveOptical DriveCooling
1TB RE4 2x3TB WD Red LG 10x BD-R Corsair H80i w/push pull 
OSMonitorKeyboardPower
Win 7 Ultimate 3x 1920x1080 LG IPS displays. Razer Mass Effect 3 Blackwidow Ultimate Cooler Master Silent Pro M850 
CaseMouseMouse Pad
Silverstone TJ08B-E R.A.T. 7 An ergonomic one 
CPUMotherboardRAMHard Drive
i7 3770k Gigabyte Sniper M3 1155 mATX CORSAIR Vengeance 8GB (2 x 4GB) 1600MHz 1TB WD RE4 
Hard DriveHard DriveHard DriveHard Drive
2TB WD Red 2TB WD Red 4TB WD Red 4TB WD Red 
PowerCaseAudioOther
750W Seasonic Gold Fractal Node 804 5.1 Definitive Def Tech PERC 5i RAID card w/ BBU (LSI Firmware) 
  hide details  
Reply
Maximum Dwarf
(15 items)
 
Density!
(12 items)
 
 
CPUMotherboardGraphicsRAM
i5-3570k ASUS MAXIMUS IV GENE HD7970 Gen 1 Ripjaws Z 2x8GB 2133MHz 
Hard DriveHard DriveOptical DriveCooling
1TB RE4 2x3TB WD Red LG 10x BD-R Corsair H80i w/push pull 
OSMonitorKeyboardPower
Win 7 Ultimate 3x 1920x1080 LG IPS displays. Razer Mass Effect 3 Blackwidow Ultimate Cooler Master Silent Pro M850 
CaseMouseMouse Pad
Silverstone TJ08B-E R.A.T. 7 An ergonomic one 
CPUMotherboardRAMHard Drive
i7 3770k Gigabyte Sniper M3 1155 mATX CORSAIR Vengeance 8GB (2 x 4GB) 1600MHz 1TB WD RE4 
Hard DriveHard DriveHard DriveHard Drive
2TB WD Red 2TB WD Red 4TB WD Red 4TB WD Red 
PowerCaseAudioOther
750W Seasonic Gold Fractal Node 804 5.1 Definitive Def Tech PERC 5i RAID card w/ BBU (LSI Firmware) 
  hide details  
Reply
post #2 of 2
Thread Starter 
Bump for some help - somebody has to find this challenge interesting.

I've found that there are programming libraries for .NET to auto-interrogate OneNote files for their contents, but wasn't able to find how they are structured, or what kind of data is returned by the interrogation of the file. Since I can't get Visual Studio installed on my work PC (and I'm not doing this at home on my own time) I can't just run the interrogation and dump the response into a text file to just read through.
Maximum Dwarf
(15 items)
 
Density!
(12 items)
 
 
CPUMotherboardGraphicsRAM
i5-3570k ASUS MAXIMUS IV GENE HD7970 Gen 1 Ripjaws Z 2x8GB 2133MHz 
Hard DriveHard DriveOptical DriveCooling
1TB RE4 2x3TB WD Red LG 10x BD-R Corsair H80i w/push pull 
OSMonitorKeyboardPower
Win 7 Ultimate 3x 1920x1080 LG IPS displays. Razer Mass Effect 3 Blackwidow Ultimate Cooler Master Silent Pro M850 
CaseMouseMouse Pad
Silverstone TJ08B-E R.A.T. 7 An ergonomic one 
CPUMotherboardRAMHard Drive
i7 3770k Gigabyte Sniper M3 1155 mATX CORSAIR Vengeance 8GB (2 x 4GB) 1600MHz 1TB WD RE4 
Hard DriveHard DriveHard DriveHard Drive
2TB WD Red 2TB WD Red 4TB WD Red 4TB WD Red 
PowerCaseAudioOther
750W Seasonic Gold Fractal Node 804 5.1 Definitive Def Tech PERC 5i RAID card w/ BBU (LSI Firmware) 
  hide details  
Reply
Maximum Dwarf
(15 items)
 
Density!
(12 items)
 
 
CPUMotherboardGraphicsRAM
i5-3570k ASUS MAXIMUS IV GENE HD7970 Gen 1 Ripjaws Z 2x8GB 2133MHz 
Hard DriveHard DriveOptical DriveCooling
1TB RE4 2x3TB WD Red LG 10x BD-R Corsair H80i w/push pull 
OSMonitorKeyboardPower
Win 7 Ultimate 3x 1920x1080 LG IPS displays. Razer Mass Effect 3 Blackwidow Ultimate Cooler Master Silent Pro M850 
CaseMouseMouse Pad
Silverstone TJ08B-E R.A.T. 7 An ergonomic one 
CPUMotherboardRAMHard Drive
i7 3770k Gigabyte Sniper M3 1155 mATX CORSAIR Vengeance 8GB (2 x 4GB) 1600MHz 1TB WD RE4 
Hard DriveHard DriveHard DriveHard Drive
2TB WD Red 2TB WD Red 4TB WD Red 4TB WD Red 
PowerCaseAudioOther
750W Seasonic Gold Fractal Node 804 5.1 Definitive Def Tech PERC 5i RAID card w/ BBU (LSI Firmware) 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Linking files embedded within a Microsoft Office file