Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / August 2005

Tip: Looking for answers? Try searching our database.

Images are not exported to MHT correctly when set to read only

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ben walters - 18 Aug 2005 00:50 GMT
Hey Guys,
I'm developing an infopath form, this form has a bunch of fields etc plus
logo in the top left hand corner. This is an image control that is locked out
from the user as we dont' want them to be able to change it. However when I
export to MHT this image is not included in the export. If I set the image to
be updateable it comes through in the export fine.
Personally to me this looks like a bug with infopath, is there a way around
this so that I can still lock the user out attaching a new image but still
have it display in the mht export???
Patrick Halstead [InfoPath MVP] - 18 Aug 2005 01:16 GMT
Hi Ben,
Cool bug! I don't remember this bug (and I was dev lead for the feature!).
It's possible you have found a new bug. Anyway, one way to work around is to
use a rich text control instead of the picture control. This has some
drawbacks (sizing of image) but rich text controls do support images and it
looks like this bug doesn't exist for them. In other words, have people
insert the image into the rich text control and then set the control to
read-only for those users who are only viewing. They can export to Web and
they will see the image. It might also be possible to spelunker the XSL to
find out exactly what nastiness is causing the Export to Web to fail and
work around it. But, if rich text control works, that might be a suitable
solution for now.
Good luck!
Patrick Halstead
http://www.autonomysystems.com/

> Hey Guys,
> I'm developing an infopath form, this form has a bunch of fields etc plus
[quoted text clipped - 5 lines]
> this so that I can still lock the user out attaching a new image but still
> have it display in the mht export???
Ben walters - 18 Aug 2005 01:51 GMT
Hey Patrick,
Nice to know I'm keeping you on your toes (guess thats the plus of being a
tester before being a developer) anyway I did try the text box approach
however after setting a default image for the text box it didn't seem to
display when the form was loaded. I have since found a work around and that
is to use an image control, tick the check box that says "Allow users to
insert pictures" then set the image control to be disabled via conditional
formatting. i.e. if Image1 is not blank then disable control. upon intial
testing of this it all seems to work pretty well.

thanks for your response though I have to admit I didn't expect to get such
speedy feedback

Cheers
Ben

> Hi Ben,
> Cool bug! I don't remember this bug (and I was dev lead for the feature!).
[quoted text clipped - 25 lines]
> > this so that I can still lock the user out attaching a new image but still
> > have it display in the mht export???
Patrick Halstead [InfoPath MVP] - 18 Aug 2005 18:55 GMT
Hi Ben,
Neat workaround. I didn't realize you were setting a default image. We
should post your trick in a Tips and Tricks repository. In fact, I think I
will start a forum category on Tips and Tricks on our website and make yours
the inaugural post.... :) Do you mind?
Regards,
Patrick
http://www.infopathdev.com/forums

> Hey Patrick,
> Nice to know I'm keeping you on your toes (guess thats the plus of being a
[quoted text clipped - 41 lines]
> > > this so that I can still lock the user out attaching a new image but still
> > > have it display in the mht export???
Ben walters - 25 Aug 2005 05:11 GMT
Hey Patrick
Sounds good to me :o)

> Hi Ben,
> Neat workaround. I didn't realize you were setting a default image. We
[quoted text clipped - 63 lines]
> still
> > > > have it display in the mht export???
 
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.