attaching files

C

CC

The SP1 File Attachment control is very nice, but I can't seem to get
it to do what I want. I want to allow users to attach documents that
reside in Sharepoint. The control only seems to work with Sharepoint
if the user has already set up a 'My Network Places' connection to a
document library. Since we have a large number of Document Libraries
and a large number of users, this just isn't feasible to implement or
manage.

1- am I misunderstanding the abilities of the file attachment control?
2- Is it possible to attach a file programmatically? I am building
links to the files dynamically and could pass thru code
3- any better ideas for accomplishing this task?

Thanks very much.
 
B

Brian Teutsch [MSFT]

I had no problems attaching a document living in a SharePoint library, and
to be sure, I deleted relevant Network Places before doing so.

It is possible to attach a document programmatically. See this blog post:
http://blogs.msdn.com/infopath/archive/2004/03/18/92221.aspx

Also I replied to your earlier post. It's not possible to change the
directory shown to the user (I think).

Brian
 
C

CC

Thanks very much for your replies, Brian.

I looked over the blog you mentioned. Since I'm a newbie at this, I'm
a little intimidated by the steps (Convert.FromBase64String etc), but
will look a little more into this.

Can you please tell me how you navigated to the Sharepoint documents
if you didn't have an associated "My Network Place" on your system?
i.e. what did you put in the "File Name" field when the dialog box
opened? Did you use something like \\servername\ or did you use
something like http://servername/dir/. I tried a few different ways,
and was not able to 'get to' more than a few Sharepoint files (am
expecting to see a lot more).

Thanks,
Carol
 
B

Brian Teutsch [MSFT]

I was able to navigate to the SharePoint site simply by going there in IE,
then pasting the URL into my InfoPath Open/Save dialog. It fixed up the URL
a little (index.aspx or such), but nothing more.

Good luck with Base64.It's worth it to try this out, it's quite powerful.

Brian
 
R

Rogelio

Hi Brian,

I have a similar problem.

I want to attach several files into a Infopath form, but the form is growing
a lot.

Can you tell me how to attach files into form, but archiving the files in a
SharePoint Library with a virtual link since the form in an automated way?
i.e. oppening a explorer window to select the file with the attach button.

regards,
Rogelio Ventura
 
B

Brian Teutsch [MSFT]

Sorry, but what you want isn't directly possible. There is no ability to
open a browe dialog and let the user return a hyperlink. You can, of course,
ask the user to paste a hyperlink into a textbox, then use the hyperlink
control to make that link clickable.

The file attachment control always stores the file into the XML document.

Brian
 
R

Rogelio

Brian,

Thanks a lot.

Rogelio.

Brian Teutsch said:
Sorry, but what you want isn't directly possible. There is no ability to
open a browe dialog and let the user return a hyperlink. You can, of course,
ask the user to paste a hyperlink into a textbox, then use the hyperlink
control to make that link clickable.

The file attachment control always stores the file into the XML document.

Brian
 
Top