SHARE
TWEET

Untitled

a guest Apr 23rd, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sub png_test2
  2. dim oDoc, sUrl
  3. rem get access to the document
  4. odoc   = ThisComponent
  5. sUrl = "file:///C:/Users/halifax/test2.png"
  6.  
  7.  
  8. rem ----------------------------------------------------------------------
  9. dim args1(3) as new com.sun.star.beans.PropertyValue
  10. args1(0).Name = "URL"
  11. args1(0).Value = sUrl
  12. args1(1).Name = "FilterName"
  13. args1(1).Value = "calc_png_Export"
  14. args1(2).Name = "FilterData"
  15. args1(2).Value = Array(Array("PixelWidth",1,1123,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("PixelHeight",0,794,com.sun.star.beans.PropertyState.DIRECT_VALUE))
  16. args1(3).Name = "SelectionOnly"
  17. args1(3).Value = True
  18.  
  19. oDoc.storeToURL(sUrl, args1)
  20.  
  21. end sub
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top