?
Solved

RTF document + Picture Placing + asp

Posted on 2003-03-03
9
Medium Priority
?
430 Views
Last Modified: 2006-11-17
Hello all,

   I am developing a page that generates a RTF document in the client browser.

   I was successful in aligning, indenting, color changing etc... but i was not able to put images.

   If you would help me it would be very greatful for you.


  Thanks in advance,

  Srini
0
Comment
Question by:srinivassmns
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 10

Expert Comment

by:apollois
ID: 8058943
INSERTING AN IMAGE IN RTF FILE

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnrtfspec/html/rtfspec_16.asp

After you load this page, do a browser FIND for the string "picture"

Pictures
An RTF file can include pictures created with other applications. These pictures can be in hexadecimal (the default) or binary format. Pictures are destinations, and begin with the \pict control word. The \pict keyword is preceded by \*\shppict destination control keyword as described in the following example.

Best Regards,
>apollois<
0
 

Author Comment

by:srinivassmns
ID: 8062679
Hi appollois,

  Thanks for your prompt answer.

  Can you give me the exact syntax to use it..

  Thanks in advance...

  Srini
0
 
LVL 10

Expert Comment

by:apollois
ID: 8066278
Sorry, all the info I have is in the link I posted.

One way you can understand this is to insert a picture in a simple Word document.  Then SAVE AS RTF.  Then open this file with a text editor, and examine the code.

>apollois<
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:srinivassmns
ID: 8070049
Hi applolis,

  Thanks for your answer..

  My task is to generate RTF file from some static/images & dynamic text/images. I am successfull in generating the RTF files using the tags... but i have stuck at the \pict tag to insert picture in it...

  What could be the possible solutions ....

  Thanks in advance

  Srini
0
 
LVL 10

Expert Comment

by:apollois
ID: 8070069
Sorry, I do not have any further information.

Have you studied the MSDN article I gave you?  It provides the complete detailed specification of how to include a picture (image) in a RTF file.

>apollois<
0
 
LVL 10

Accepted Solution

by:
apollois earned 400 total points
ID: 8208820
srinivassmns,

If you have not been able to develop the code yourself to insert an image into a RTF file, then you may want to consider the following third-party component:

myLittleWriter
http://www.mylittletools.net/scripts/en/mlw/default.asp
Price: $99.00

With myLittleWriter, you can manage :
        page formatting including page size, margins...
        font formatting including font name, size, color...
        multi header and footernew
        field insertion including page count, page number, date, file size, file name...
        table insertion
        image insertion JPG and PNG format are supported
        HTML-formatted text insertion a lot of tags like <B>, <I>, <BR>, are supported
        HTML file insertion
        list insertion, both numbered and bulleted new
        sectionsnew
        columnsnew
        and much more...


Best Regards,
>apollois<
0
 

Author Comment

by:srinivassmns
ID: 8211618
Hello Applolis,

  I have researched on that tool.. (mylittlewriter)..
 
  Its yet in the preliminary stage...

  It must contain a lot more...

  Example... here for reading a image.. he has done a trick which i have implemented in my personal tool...

  Read the file... use hex to bin function... that's it...

  concatenate the bin... data between the \pic tags...

  That's it...

  Any way thanks for you help....

   Bye

   Srini
0
 

Author Comment

by:srinivassmns
ID: 8211641
Any way i am giving you the 100 points... as you have given me better that any one...

   If you want to contact me directly user this mailid

   smns@ourwebstudio.com

Srini
0
 
LVL 10

Expert Comment

by:apollois
ID: 8212248
Srini,

I'd glad you were able to resolve your problem.  Thanks for the points.  Glad to help.

If you'd like to share, you can post your solution here.  I'm sure that a lot of people could use it as we get this question a lot.

Good luck with your project.

Best Regards,
>apollois<
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question