|
|
||||||
|
#1
|
|
|
|
|
I have created an application with which you can convert
an image file (gif, dwg etc) to a jpg file. Now I want the same thing should be done on a web part. I have almost everything the same as the application but it doesn't work. It has to create the registry settings needed for the components to function. It also has to write a file to the local disk of the server. But it just doesn't work. This is some of the code: Dim exeDocObject As New RxDocCom.RxDoc Dim exeRimObject As New RxDocCom.RxEngine Dim regkey As New RxDocCom.RX_REGISTRY_KEY Dim exeConvertObject As New RxConvertCom.RxConverter 'Creates a connection with a document in a Document Library objWeb = mySiteCollection.OpenWeb() objList = objWeb.Lists(_DocLibName) _myItem = objList.Items.GetItemById(CType(_DocID, Integer)) 'sets the url to the document in the document library _URL = "http://localhost" + _myItem.File.ServerRelativeUrl 'the location where to save the converted file Dim url As String url = "file:///d:/test.jpg" exeRimObject.Start(regkey, "SOFTWARE\Rasterex\RxFilters") exeDocObject.Open(_URL) 'method to convert the file exeConvertObject.RasterFileFit(url, exeDocObject, "JPEG File Interchange Format", 300, 300, 24, &HFFFFFF, 96) Now it will timeout on the "exeRimObject.Start (regkey, "SOFTWARE\Rasterex\RxFilters")". It also throws an exception when exeConvertObject.RasterFileFit will be called. Does someone knows how to access the registry and how to write files to a local disk? Many thanks! |
|
|
|
#2
|
|
|
|
|
There are a lot of security issues involved in writing webparts...
especially in their access to resources like filesystem, registry and the sharepoint object model. There is a good article available on the MS website on this topic: http://msdn.microsoft.com/library/?u...sssecurity.asp Have fun! |
|
|
| Similar Threads | |
| How to acces a local web service from a local site? Hi! I have Win2003 Server with IIS6 installed on with ASP.NET 2. I have a web site and a web service on this machine. I can access the web service from a rempte... |
|
| DCOM Server Configuration and Remote Acces - Part 2 I have already asked this question, and fixed a few problems since then and now I am ready to formulate the question more clear and hope for some more help. I have a COM... |
|
| Web Part development pops up a logon screen and gives no acces to I am developing a webpart rendering data from the rootweb and down. When I am working on the development server (Virtual Server Win2k3 and SPS2k3Sp1) adding the web part it... |
|
| Acces part of MS Officw Pro 2003 How mush trouble will I be looking at by moving my db from works 4.5a to Access? Any suggestions? |
|
| Anonymous Acces to only part of Site? I'd like to have a site where an anonymous user can access most of the site but not a few of the lists. I've turned on Anonymous access (in IIS and in SP) and have set... |
|
|
All times are GMT. The time now is 11:16 AM. | Privacy Policy
|