Git Product home page Git Product logo

Comments (4)

chelh avatar chelh commented on May 24, 2024

I'll consider it, but it may take quite a lot of time to get everything up to “library-grade” standards!

from vbasync.

BaronBodissey avatar BaronBodissey commented on May 24, 2024

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.

BaronBodissey avatar BaronBodissey commented on May 24, 2024

But indeed doing that I noticed some bugs/limitations:

  • PictureAlignment = PropMask.HasPictureAlignment ? r.ReadPictureAlignment() : PictureAlignment.TopLeft;
    the specification define default as The 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.

chelh avatar chelh commented on May 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.