-
July 18th, 2021, 03:47 AM
#1
[RESOLVED] How to set excel column width?
I have searched and used some formula: ClientToScreen,.. to find CPoint.
My result:
Code:
CPoint cp1 ;x-y (314;448)
CPoint cp2 ;x-y (802;448)
from this, Can I draw the CPoint on the screen to check these point correctly?
If I want to change columnwidth in excel, can I use this code?
Code:
RangePtr rng;
rng.Setcolumnwidth(cp1.x-xp2.x);
Thanks you!
Last edited by Dang.D.Khanh; July 18th, 2021 at 03:49 AM.
-
July 18th, 2021, 06:05 AM
#2
Re: How to set excel column width?
Hi,
I'm missing the pixel factor. problem solved
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|