Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm Controls / February 2007

Tip: Looking for answers? Try searching our database.

RichTextBox.Rtf - doesn't show if images in the rtf - Vista only

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David Thielen - 15 Feb 2007 05:50 GMT
Hi;

We have a C# program (a Word AddIn) that works fine on Windows XP. But when
running on Vista (and Word 2007) if we call RichTextBox.Rtf = "...rtf
file..."; and the rtf file has a bitmap in it - then the control shows
nothing.

It's not that the bitmap is missing and the rest is there - nothing is
there. Is this a known bug in .NET on Vista?

Signature

thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm

Linda Liu [MSFT] - 15 Feb 2007 10:01 GMT
Hi Dave,

The Rtf string of a rtf file which has bitmaps in it constains some binary
information. I don't know how you get the Rtf string of the rtf file, but
it seems that the Rtf string you are using may not correct.

Since you're going to show the content of a rtf file in a RichTextBox
control, why not use the LoadFile method of the RichTextBox to do it? I
have performed a test on the LoadFile method and confirms it works.

I suggest that you use the LoadFile method of the RichTextBox to see if the
problem still exists.

Hope this helps.
If you have any question, please feel free to let me know.

Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
David Thielen - 15 Feb 2007 17:55 GMT
Hi;

I can't use the LoadFile because the rtf does not exist on disk. Our code
works fine on WindowsXP/Word 2003 (and earlier versions). It's just
Vista/Word 2007 that is a problem. And only if there is a bitmap.

The bitmap is uuencoded so the entire string is ascii - there is no binary
characters.

Signature

thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm

> Hi Dave,
>
[quoted text clipped - 35 lines]
>  
> This posting is provided "AS IS" with no warranties, and confers no rights.
Jeffrey Tan[MSFT] - 19 Feb 2007 06:50 GMT
Hi Dave,

Thanks for your feedback.

Since Linda is on vacation this week, I will continue to work with you.

Is it  possible for you to create a little sample project with detailed
steps to help me reproduce this problem? This would be helpful to improve
our understanding to your problem.

Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
David Thielen - 21 Feb 2007 03:37 GMT
This is one of those "wonderful" bugs.

When we use our Word AddIn (AutoTag) to display a rtf file in a form, it
works for all cases on WinXP/Word 2000/2002/2003. But on Vista/Word 2007 it
does not work for complex rtf files.

So I wrote a little test app that just has a richTextBox to display the same
rtf file. And on Vista - it works. It's the exact same rtf file.

So I don't think I can give you a sample. Our AutoTag program is way too big
to use. Someone else will find this bug with a simple sample soon and report
it.

Can I ask that if you see something about this problem - and a work around,
that you post a reply here then?

Signature

thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm

> Hi Dave,
>
[quoted text clipped - 29 lines]
> ==================================================
> This posting is provided "AS IS" with no warranties, and confers no rights.
Jeffrey Tan[MSFT] - 22 Feb 2007 06:49 GMT
Hi Dave,

Yes, I understand your concern.

However, this is mainly a Word Addin issue, my specialist mainly focuses on
.Net Winform, so I do not have much experience to share when the problem is
not reproduced out.

In this scenario, I recommend you post this question in
microsoft.public.office.developer.automation for better help. There will be
more experience people there. Thanks for your understanding.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.