Go Back   Access World Forums > Microsoft Access Discussion > Reports

 
Reply
 
Thread Tools Rate Thread Display Modes
Old 09-05-2019, 04:25 AM   #16
isladogs
Part time moderator
 
isladogs's Avatar
 
Join Date: Jan 2017
Location: Somerset, UK
Posts: 10,107
Thanks: 110
Thanked 2,749 Times in 2,508 Posts
isladogs is a splendid one to behold isladogs is a splendid one to behold isladogs is a splendid one to behold isladogs is a splendid one to behold isladogs is a splendid one to behold isladogs is a splendid one to behold
Re: Access Rich-/HTML-Textbox does indents bulleted lists with wrapped text incorrect

Quote:
Originally Posted by sonic8 View Post
That is the right approach, but it is the wrong way round. I have fixed bounds (the width of the textbox) and want to know what part of my string will fit in there.

Yes, I could start with a reasonable assumption and then use TwipsFromFont in a loop to fine tune that to the actual measurement. - That would be a workaround, but not as elegant as I hoped for.
Yes I realise that you actually want 'FontFromTwips' but I don't think thw workround is likely to be too complex

If you haven't yet done so, have a look at the 2 Wizhook links in my website article. The 2nd link is a PDF which won't allow me to quote from it but here's an extract as a screenshot:



The extract also contains two functions

I have the A2000 Developers Handbook but haven't looked at that chapter recently. If you don't have the book, let me know & I'll look whether there is any additional code that may be useful to you
Attached Images
File Type: png Capture.PNG (80.7 KB, 25 views)

__________________
If this answer has helped, please click the Thanks button and/or click the 'reputation scales' symbol on the left.

Website links:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


Colin
Access 2010 32-bit, Access 2016 32-bit & 64-bit, SQL Server Express 2014, Windows 10,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
isladogs is offline   Reply With Quote
Old 09-05-2019, 06:59 AM   #17
CJ_London
Super Moderator
 
Join Date: Feb 2013
Location: UK
Posts: 11,149
Thanks: 40
Thanked 3,617 Times in 3,491 Posts
CJ_London is a glorious beacon of light CJ_London is a glorious beacon of light CJ_London is a glorious beacon of light CJ_London is a glorious beacon of light CJ_London is a glorious beacon of light
Re: Access Rich-/HTML-Textbox does indents bulleted lists with wrapped text incorrect

Quote:
This assumption is exactly the point I'm struggling with. I rather want to calculate the length of the actual string instead of hard-coding this.
I realise that, just offering it as a suggestion.

the wizhook approach would mean this constant would be replaced with some sort of wizhook function

__________________
CJ_London
_______________________
A little thanks goes a long way. If you have found this post useful, please tick the thanks button
CJ_London is offline   Reply With Quote
Reply

Tags
bulleted lists , html , wrapped text

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add HTML tags to your rich text Webbarr Code Repository 6 07-27-2019 12:57 PM
Retaining formatted hyperlinks in a rich text textbox (AC2013) AOB General 13 04-20-2018 12:45 PM
insert rich text (html format) from acces to word 2013 nikolaus.hofer Modules & VBA 1 07-24-2014 08:13 AM
rich text formatting on form's textbox Lifeseeker Forms 1 04-14-2011 11:57 AM
want a rich text textbox for my form selahlynch Forms 3 05-20-2010 10:01 PM




All times are GMT -8. The time now is 09:02 PM.


Microsoft Access Help
General
Tables
Queries
Forms
Reports
Macros
Modules & VBA
Theory & Practice
Access FAQs
Code Repository
Sample Databases
Video Tutorials

Featured Forum post


Sponsored Links


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
(c) copyright 2017 Access World