on 03-15-2007 8:48 AM
Hello,
I think it's a long shot but I thought I will give it a try.
I am creating an excel file from an xml String using the Web Dynpro Binary cache.
The problem is that when columns with numbers are involved an extra #agg column is being added by the excel "flattener" which is in charge of rendering the excel file from the xml String.
The only way to override this excel feature is to supply your own XSLT and reference it from the XML. Now, since I am not using an actual filesystem but the Web Dynpro Binary cache, is it possible to use this cache in order to store there the xslt and refer it later from an XML?
Roy
Hallo Roy,
what's the exact problem. Like you already store the Excel xml file within the Web Dynpro Binary Cache you can also store an additional xslt file therein. You can calculate the URL for this xslt file and reference it within the xml file. Have you tried this out yet?
Regards, Bertram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Bertram,
I have just finished implementing this and it doesn't work.
When I open the excel it can't find the location of the xslt file in the binary chache
which is this:
../../local/MappingReportsProject/MappingReportsApp/~wcl key220 1174044701663/parser.xsl
So, I have just tried it and it doesn't work
Hi,
WDWebResource.getWebResource(bytes,mime type).getAbsoluteUrl()..
you can get the bytes from server and pass it here..
oops .. havent you been doin this all the while.. reading content from server and getting the url out of it..
and by http , you are sayin thru a webserver.. ? rather complicated for a simple solution Isn't it ?
I would prefer going for the API implementation.. It offers you an amazing array of options to color your cells,change fonts etc.,
I just tried it: Set the xsl on my IIS and refered it from there and it worked, I assume it will work on the App server as well... I am just afraid it is not secured enough.
Bharathwaj: I am using the createWebResource method since getWebResource is deprecated and there I don't have the getAbsoluteUrl method...
Roy
Hi,
Just found out this.. See if you can make use of it..
getPublicCachedWebResource(byte[] webResource, WDWebResourceType resourceType, WDScopeType scopeType, WDDeployableObjectPart deployableObjectpart, String key)
<i> returns a IWDCachedWebResource, <b>which is saved directly to the WDDeployableObject directory.</b></i>
you can make WDDeployableObject as your component and point the reference to the component folder.. Since you are specifying a scope type.. it shoukd be deleted after the scope defined...
Lemme know if this works..:)
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.