Hi,

I customized a document library to list UserControls that developers add to
the site. I'd like to take advantage of the 'New Document' functionality to
open up a template in Visual Studio. I didn't find enough document online;
the only thing I could find says create a dll that will load the correct
control. I really need some insight in this regards on how to do this task.

My 2nd question: is there a way to restrict the types of files that can be
uploaded? In the above example, I'd like to restrict my library to .ascx
files.

And the last question: how can I customize the menu that displays when you
click on the down arrow for an upload file? I'd like to remove irrelevant
items such as "Submit to portal area", "Add to my links" etc.

Thanks!

--
I do it for a living, but you live with what I do.

Re: Create 'new document' in Visual Studio in document library by Ian

Ian
Fri Sep 24 16:08:23 CDT 2004

This function uses an activex control which is documented here...
http://msdn.microsoft.com/library/en-us/spptsdk/html/tscliOpenDocuments.asp?frame=true
You would have to write your own activex control to launce VS and pass in
the file name to open.

Regards,
Ian
http://www.wssdemo.com

"al-baghdadi" <a.d.@nospam.nospam> wrote in message
news:E676671B-60D5-480A-B0C5-C3D5A8AE4125@microsoft.com...
> Hi,
>
> I customized a document library to list UserControls that developers add
> to
> the site. I'd like to take advantage of the 'New Document' functionality
> to
> open up a template in Visual Studio. I didn't find enough document online;
> the only thing I could find says create a dll that will load the correct
> control. I really need some insight in this regards on how to do this
> task.
>
> My 2nd question: is there a way to restrict the types of files that can be
> uploaded? In the above example, I'd like to restrict my library to .ascx
> files.
>
> And the last question: how can I customize the menu that displays when you
> click on the down arrow for an upload file? I'd like to remove irrelevant
> items such as "Submit to portal area", "Add to my links" etc.
>
> Thanks!
>
> --
> I do it for a living, but you live with what I do.



RE: Create 'new document' in Visual Studio in document library by v-wdxu

v-wdxu
Fri Sep 24 21:25:06 CDT 2004

------=_NextPart_0001_00CF5863
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi,

For your first question, Ian has provided the answer.

For the 2nd question, the "Blocked File Type" feature of SPS/wSS will help
you to restrice the file type uploaded. You can browse the SPS/WSS central
administration page. From Control Panel->Administrative Tools->Sharepoint
Central Administration. You will find the link "Manage blocked file types".
From here, you can input the blocked file extension. Then when you are
uploading this kind of file into the doclib, it will fail.

For the 3rd question, so far as I know, there is no public doc released by
Microsoft regarding the customization of this menu. It is not recommend by
Microsoft for you to modify this menu which is the built-in style of doclib
item.

Please feel free to let me know if you have any question.

Best Regards,
Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
------=_NextPart_0001_00CF5863
Content-Type: text/x-rtf
Content-Transfer-Encoding: 7bit

{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\lang2052\f0\fs16 Hi,
\par
\par For your first question, Ian has provided the answer.
\par
\par For the 2nd question, the "Blocked File Type" feature of SPS/wSS will help you to restrice the file type uploaded. You can browse the SPS/WSS central administration page. From Control Panel->Administrative Tools->Sharepoint Central Administration. You will find the link "Manage blocked file types". From here, you can input the blocked file extension. Then when you are uploading this kind of file into the doclib, it will fail.
\par
\par For the 3rd question, so far as I know, there is no public doc released by Microsoft regarding the customization of this menu. It is not recommend by Microsoft for you to modify this menu which is the built-in style of doclib item.
\par
\par Please feel free to let me know if you have any question.
\par
\par Best Regards,
\par Wei-Dong Xu
\par Microsoft Product Support Services
\par Get Secure! - www.microsoft.com/security
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par
\par }
------=_NextPart_0001_00CF5863--


RE: Create 'new document' in Visual Studio in document library by a

a
Sat Sep 25 00:07:03 CDT 2004

Wei-Dong,

I'd like to block other file extensions for that specific document library;
so in my UserControls library, I'd like to prevent users from uploading
anything but a .ascx file. As I understand from your reply, any restrictions
will be applied to ALL document libraries.

I would appreciate any further help you can offer.


"Wei-Dong XU [MSFT]" wrote:

> Hi,
>
> For your first question, Ian has provided the answer.
>
> For the 2nd question, the "Blocked File Type" feature of SPS/wSS will help
> you to restrice the file type uploaded. You can browse the SPS/WSS central
> administration page. From Control Panel->Administrative Tools->Sharepoint
> Central Administration. You will find the link "Manage blocked file types".
> From here, you can input the blocked file extension. Then when you are
> uploading this kind of file into the doclib, it will fail.
>
> For the 3rd question, so far as I know, there is no public doc released by
> Microsoft regarding the customization of this menu. It is not recommend by
> Microsoft for you to modify this menu which is the built-in style of doclib
> item.
>
> Please feel free to let me know if you have any question.
>
> Best Regards,
> Wei-Dong Xu
> Microsoft Product Support Services
> Get Secure! - www.microsoft.com/security
> This posting is provided "AS IS" with no warranties, and confers no rights

RE: Create 'new document' in Visual Studio in document library by v-wdxu

v-wdxu
Sat Sep 25 03:27:47 CDT 2004

------=_NextPart_0001_021B8F04
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi,

For one specific document library blocing the file extension, you will
need to create your own uploadcontrol to substitude the one available from
Office 2003 installation. You will need to provide some methods the same to
the uploadctl. Please see the page:
http://msdn.microsoft.com/library/en-us/spptsdk/html/tscliUploadMultDocs.asp

Please feel free to let me know if you have any question.

Best Regards,
Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
------=_NextPart_0001_021B8F04
Content-Type: text/x-rtf
Content-Transfer-Encoding: 7bit

{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\lang2052\f0\fs16 Hi,
\par
\par For one specific document library blocing the file extension, you will need to create your own uploadcontrol to substitude the one available from Office 2003 installation. You will need to provide some methods the same to the uploadctl. Please see the page:
\par http://msdn.microsoft.com/library/en-us/spptsdk/html/tscliUploadMultDocs.asp
\par
\par Please feel free to let me know if you have any question.
\par
\par Best Regards,
\par Wei-Dong Xu
\par Microsoft Product Support Services
\par Get Secure! - www.microsoft.com/security
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par
\par }
------=_NextPart_0001_021B8F04--


RE: Create 'new document' in Visual Studio in document library by yhhuang

yhhuang
Wed Sep 29 04:23:33 CDT 2004

------=_NextPart_0001_16E82476
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hello,

I was reviewing this issue thread. Do you still have any more concerns on
it? If there is any unclear, please feel free to post here and we will
follow up.

Thanks very much for participating the community.

Best regards,
Yanhong Huang
Microsoft Community Support

Get Secure! ¨C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
-http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.as
p&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
------=_NextPart_0001_16E82476
Content-Type: text/x-rtf
Content-Transfer-Encoding: 7bit

{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}{\f1\fmodern\fprq6\fcharset134 \'cb\'ce\'cc\'e5;}}
\viewkind4\uc1\pard\lang2052\f0\fs20 Hello,
\par
\par I was reviewing this issue thread. Do you still have any more concerns on it? If there is any unclear, please feel free to post here and we will follow up.
\par
\par Thanks very much for participating the community.
\par
\par Best regards,
\par Yanhong Huang
\par Microsoft Community Support
\par
\par Get Secure! \f1\endash\f0 www.microsoft.com/security
\par Register to Access MSDN Managed Newsgroups!
\par -http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp&SD=msdn
\par
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par }
------=_NextPart_0001_16E82476--


RE: Create 'new document' in Visual Studio in document library by a

a
Wed Sep 29 10:19:01 CDT 2004

Hi Yan-Hong,

I never developed ActiveX controls before, and reading the content Microsoft
provided in the link Wei-Dong gave me, I am still not sure how to go about it.

For some reason, that article makes the emphasis on "uploading multiple
files", so I am not sure what other methods I need to provide beside those in
the article.

I would appreciate it if you can provide further help.

Thanks.

RE: Create 'new document' in Visual Studio in document library by v-wdxu

v-wdxu
Thu Sep 30 01:47:44 CDT 2004

------=_NextPart_0001_1B7E0789
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi,

If you want to restrict the file type in the client side, it will be very
helpful to develop one activex control.

For the development of ActiveX, the article below introduces this:
MFC ActiveX Controls
http://msdn.microsoft.com/library/en-us/vccore/html/_core_ActiveX_Control_To
pics.asp

For the internet file uploading, this article from CodeProject.com will
provide one wonderful sample for you.
CHttpClient - A helper class using WinInet
http://www.codeproject.com/library/lyoulhttpclient.asp

Please feel free to let me know if you have any question.

Best Regards,
Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
------=_NextPart_0001_1B7E0789
Content-Type: text/x-rtf
Content-Transfer-Encoding: 7bit

{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\lang2052\f0\fs16 Hi,
\par
\par If you want to restrict the file type in the client side, it will be very helpful to develop one activex control.
\par
\par For the development of ActiveX, the article below introduces this:
\par MFC ActiveX Controls
\par http://msdn.microsoft.com/library/en-us/vccore/html/_core_ActiveX_Control_Topics.asp
\par
\par For the internet file uploading, this article from CodeProject.com will provide one wonderful sample for you.
\par CHttpClient - A helper class using WinInet
\par http://www.codeproject.com/library/lyoulhttpclient.asp
\par
\par Please feel free to let me know if you have any question.
\par
\par Best Regards,
\par Wei-Dong Xu
\par Microsoft Product Support Services
\par Get Secure! - www.microsoft.com/security
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par
\par }
------=_NextPart_0001_1B7E0789--