Ask a questionAsk a question
 

QuestionInfoPath Form Server RichText field (RTF) with picture

  • Thursday, November 05, 2009 6:15 AMcissharp Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi all experts,
     Can I assign the picture source of in RTF as the attachment in the same form. I think it is possible but don't know how to handle this programmatically. I attached the picture in IP form. Then I try to download that picture. There, I copied the web address of picture.
     The web address was like this
     (http://boss:527/_layouts/FormServerAttachments.aspx?dl=no&event=8%3B0%3B93e3ce9e-f160-4dd9-917f-11a5ed992c39%3BI%3A425d976f-4e6b-4956-9517-f9256a003a16%3A7c17cd8f-703e-416a-b593-3510507589dd%3A633906226100000000%3B0%3B%252FRichTextIP%252FTest.xml%3B%3Bhttp%253A%252F%252Fboss%253A527%252FRichTextIP%252FForms%252Ftemplate.xsn%3B%3Bhttp%253A%252F%252Fboss%253A527%3B%3B0%3B1%3B0%3B0%3B0%3B633909002896094000%3B%3BmGiy0JwFRzG5J3tl9hzcZR%2BYlPalAgSe4E1o9l1P6yujWf%2BBd9jsfrB%2B9NyJxguCKStd%2B3uF%2FFWZ2q8WmFMSQw%3D%3D%7C633909002895937500 &ctrl=V1_I1_R2_I1_FAC1_FAI1_F1).
     Then in RTF I used same address as Image Source, it works perfectly. Isn't there any way to get that web address of attached picture programmatically? Please help me on this.
    A person who never made a mistake never tried anything new.

All Replies

  • Friday, November 06, 2009 4:40 PMSrinivas Varukala Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Pradip,

    What is the requirement you are trying to achieve? If you can provide those details may be we can propose a better solution.

    If the goal is to just show the picture then you can just insert an image.

    if you have to show the uploaded image then to my knowledge there is no easy way to do it on web enabled form. You may have to extract the attachment and then upload to a pic. library and set the path to the image on the infopath form.
    Srinivas Varukala http://sharenotes.wordpress.com
  • Monday, November 09, 2009 4:29 AMcissharp Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thank you svrukala,
    I want the second option that you give. It is difficult. But still can anyone give me any suggestion or hint please.
    A person who never made a mistake never tried anything new.