PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, October 5, 2022

[FIXED] What units should the height and width be for a PHPExcel_Worksheet_Drawing_Object?

 October 05, 2022     php, phpexcel     No comments   

Issue

I'm generating an Excel file in PHP using the PHPExcel library. I am placing an image in the worksheet.

$objDrawing->setWidthAndHeight(100,100);

What are the dimenions of the height and width of the drawing object (is it %, pixels, mm, cm)?

Appreciate the help.


Solution

Without checking, I believe that it's pixels, with an assumption of 72dpi when converting to Excel's rather quirky internal units.



Answered By - Mark Baker
Answer Checked By - Katrina (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing