Comments (4)
I'll consider it, but it may take quite a lot of time to get everything up to “library-grade” standards!
from vbasync.
Hey,
That's not so big a job. For example I just try to use the code.
So I referenced VBASync.Exe, replaced internals with publics and that's it:
`
Dim frxBytes1 As Byte() = File.ReadAllBytes(".\Designations.frx")
Using frxCfStream1 As New MemoryStream(frxBytes1, 24, frxBytes1.Length - 24, False)
Using cf1 As New CompoundFile(frxCfStream1)
Dim cfstream As CFStream = cf1.RootStorage.GetStream("f")
Dim designationsFrx As New Model.FrxObjects.FormControl(cfstream.GetData())
End Using
End Using
`
from vbasync.
But indeed doing that I noticed some bugs/limitations:
-
PictureAlignment = PropMask.HasPictureAlignment ? r.ReadPictureAlignment() : PictureAlignment.TopLeft;
the specification define default asThe file format default is 0x02, fmPictureAlignmentCenter.
-
Zoom = PropMask.HasZoom ? r.ReadUInt32() : 0;
MUST be greater than or equal to 10 (10 percent of actual size) and less than or equal to 400 (four times or 400 percent of actual size). The file format default is 100, or actual size.
Or Maybe you could use nullable/null/nothing/none (whatever form indicating not set/defined)...nope default would be better has we have the HasZoom
flag
from vbasync.
Yes, in the larger context the issue is that I didn’t write this to completely decompose the FRX data; I only read enough of it to compare two FRX files. Like on FormControl
there’s a certain point where I just stop parsing because the rest of the stream can be handled byte-by-byte.
Also, be careful using any of my emitted members, even public
ones, as the code is going to be overhauled when I try to change to UI to WinForms, and again when the library version of the parsing code, OpenMSOVBA
, is done.
from vbasync.
Related Issues (20)
- Allow drag and drop of folder and file HOT 4
- Recent files are ignore if spécifier as relative path HOT 1
- Recent files are ignored if specified as relative path HOT 5
- When you load a session, if file or folder doesn't exist, alert user and disable some functions HOT 1
- Prevent publishing code to worksheets that don't exist HOT 2
- Option: ignore worksheets and modules with no VBA Code
- Language selected on first launch not taken into account HOT 2
- GistThat integration HOT 7
- Support subdirectories HOT 11
- Differentiate extract/publish Office document HOT 4
- FRX extraction isn't repeatable if Office jumbles the site order HOT 12
- Input string was not in a correct format HOT 5
- OLE error at "next" extraction HOT 1
- Paths in VBASync UI with national characters are restored incorrectly on session auto-restore HOT 4
- "Error reading 'o' stream in .frx data" after the first export HOT 5
- New maintainers and new versions of VBA Sync HOT 9
- Issue while extracting from Office file
- Chinese garbled HOT 1
- debug is error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vbasync.