Code Monkey home page Code Monkey logo

Comments (8)

PrzemyslawKlys avatar PrzemyslawKlys commented on June 24, 2024 1

Ye, I'll try to release it tonight. I've not updated the library for a bit. Also keep in mind that when you switch between different Wraps (Inline vs Anchor) it looses certain prroperties. Inline has minimal set properties because it's kind of bound to paragraph, and the rest is basically anchored, so you would need to play with positioning after doing changes like that.

from officeimo.

PrzemyslawKlys avatar PrzemyslawKlys commented on June 24, 2024 1

I've released new version - you can try it out.

from officeimo.

PrzemyslawKlys avatar PrzemyslawKlys commented on June 24, 2024 1

The error above is not really an error. Once you install module with certain certificate it's there to protect you a bit from changes or dropping non-signed versions. However when my 3 year certificate expired and it changes - that is the cert warning you get. I wish it was easier, but you can either delete the old versions and do install-module without skippublishercheck, or use skippublishercheck. Otherwise that's the warning you get.

In theory maybe if the whole issuer/subject name would be the same it could work, but DigiCert gave me new data so it's a mismatch.

from officeimo.

PrzemyslawKlys avatar PrzemyslawKlys commented on June 24, 2024

Hi,

I need to update PSWriteOffice to newest library version, because we already support those layouts in newest one

var pargraphWithImage = paragraph.AddImage(file, 100, 100, WrapTextImage.InLineWithText, "Przemek and Kulek on an image");

In PowerShell it will be like

$pargraphWithImage = $paragraph.AddImage(file, 100, 100, [WrapTextImage]::InLineWithText, "Przemek and Kulek on an image");

Probably the WrapTextImage will need a full type or using to work. New version also allows switching between TextWrappings

image

So as soon as the image is added you can also change it on the fly. I'm neglegtic powershell version a bit, but OfficeIMO alone is hard to manage ;)

from officeimo.

stefanstranger avatar stefanstranger commented on June 24, 2024

Hi Przemysław,

Thanks for your fast response. Do I understand I need to wait for you to update the PowerShell module to use the latest library?

When I try to do it using the existing library I get the following error:

$Paragraph.Image.WrapText = 'BehindText'
SetValueInvocationException: Exception setting "WrapText": "This needs to be implemented properly!"

Regards,
Stefan Stranger

from officeimo.

stefanstranger avatar stefanstranger commented on June 24, 2024

@PrzemyslawKlys

I tried to update the PSWriteOffice module via the PowerShell gallery but got this error message:
Install-Package: Authenticode issuer 'CN=Przemysław Kłys EVOTEC, O=Przemysław Kłys EVOTEC, L=Mikołów, C=PL' of
the new module 'PSWriteOffice' with version '0.2.0' from root certificate authority
'CN=DigiCert Trusted Root G4, OU=www.digicert.com, O=DigiCert Inc, C=US' is not matching with
the authenticode issuer 'CN=Przemysław Kłys EVOTEC, O=Przemysław Kłys EVOTEC, L=Katowice,
S=Śląskie, C=PL' of the previously-installed module 'PSWriteOffice' with version '0.1.0' from
root certificate authority 'CN=DigiCert Assured ID Root CA, OU=www.digicert.com, O=DigiCert
Inc, C=US'. If you still want to install or update, use -SkipPublisherCheck parameter.

from officeimo.

PrzemyslawKlys avatar PrzemyslawKlys commented on June 24, 2024

Install-Module PSWriteOffice -Force -Verbose -SkipPublisherCheck

I changed certificate some time ago, as my last one expired and there's no other way around it.

from officeimo.

stefanstranger avatar stefanstranger commented on June 24, 2024

Ok I did the use the -skippublishercheck option to resolve this.

Should I ask internally on how above error can be fixed?

Stefan Stranger
[MSFT]

from officeimo.

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.