473,790 Members | 2,734 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Render richtext - Problem with resolution

Hi,

Im trying for 2 days to solve a problem but now Im on a point where all
ideas exhausted. Im writing a software to print out some cards containing
richtext and images.

To print the richtext im using an windows api call (Sendmessage
EM_FORMATRANGE -
http://msdn.microsoft.com/library/de...chTextBox.asp).
Because I have to print background images, the richtext background should be
transparent. Ive found no way to do this directly, so I tried to create a
temporary bitmap, render the richtext into it, eliminate all the whity
pixels and copy it to output. Works great on display but sucks on printer.

It seems that the windows api renders always with 96dpi into my graphic
object. This is to less for text and the text looks terrible. When Im
rendering directly to the printer output, I get an absolutly clear output.
Changing the resolution of the bitmap has no effect...

So now I have to choose betwheen 96dpi font or a hole in the background
image and Im very unhappy about that :-(

Has someone any suggestions to fix that problem or (best way) to render
richtext directly with transparent background?

If someone wants to take a look, I uploaded the whole sourcesfiles to my
webserver.
http://www.thanei.net/druck.zip

Thanks for any help,
Lukas

(replies in german or italian are welcome)

Nov 16 '05 #1
0 1193

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4615
by: Du | last post by:
I like richtext textbox and its shortcut, but I don't need the richtext format. How do I tell the richtext text box to strips all the format and convert everything to plain text? Thanks
5
1612
by: Do | last post by:
Hi, I have the IE web Control .dll files in my bin project for my web app on //localhost. They don't seem to render in my Internet Explorer browser. Do
4
1744
by: JC - home | last post by:
Hello.. I've been having some problems for a little while with this which I was sure I would beat...hmmm. Anyway, I have a form with two rich textboxes. One at the top which is to display a concatenated summary, and one at the botton for making a new entry. When items are added in from the bottom box, I do this via a class
3
2042
by: rigamonk | last post by:
Is there a way to save richtext from a richtextbox into an access DB using vb.net? thanks patrick
3
1893
by: tlyczko | last post by:
I have Stephen Lebans' RichText control on a subform, which is bound to a memo field. The only editable control on this subform is the rich text control for the memo field. When the main form opens, the first record of the subform cannot be typed into. The only way to fix this is to page to the next record, then page back to the first record, then one can type into the rich text control to
0
1166
by: giddy | last post by:
hi , i made a little RtfEncapsulator. Its a class thats called RichText , it has an RtfElementCollection which takes any class that exposes the IRtfElement interface. I managed to make an RtfTextElement which works really well. So to add text this has to be done: Code:
5
3504
by: Jon | last post by:
If I add text to a rich text box, when there's too much to display, the vertical scroll bar stays at the top. I'd like it to be at the bottom, so I can see the last item of text added. How do I do this?
4
2468
by: Ken Fine | last post by:
I've been living with a frustrating issue with VS.NET for some months now and I need to figure out what the problem is. Hopefully someone has run into the same issue and can suggest a fix. I suspect some permissions problem. I'm running VS.NET 2008 in Vista. Symptoms and observations: * ASP.NET's native ImageMap and Image controls work just fine and provide a design-time preview of images that are referenced via the ImageUrl property *...
2
5569
by: AliR \(VC++ MVP\) | last post by:
I'm trying to write a RTF render code in C#. I have the code in C++/MFC and it works fine, but I have run into a problem with the C# code. I think the C# code is from Microsoft, and I added scaling to it. The C# code is working fine on my desktop PC but it cuts off some of the text when I run it on my laptop. The MFC code works fine both on the laptop and the PC. I have looked at all the numbers used in the MFC and the C# code and they...
0
9666
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9512
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10145
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9021
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7530
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6769
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4094
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2909
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.