Home » Archived » BIRT » tempDir
tempDir [message #118500] |
Fri, 27 January 2006 05:32  |
Eclipse User |
|
|
|
Originally posted by: jan.tanis.coas.com
Hi,
I'm using config.setTempDir(tempDir); to set the dir for the images, but
it still puts them in C:'documents and settings..... Any clue on this?
Regards, Jan.
|
|
| | | |
Re: tempDir [message #122402 is a reply to message #121626] |
Wed, 01 February 2006 01:24   |
Eclipse User |
|
|
|
Originally posted by: jan.tanis.coas.com
Hi,
What is wrong with my package?
Jason Weathersby wrote:
> Jan,
>
> If you are running this with the API and
> you have setup a IRunAndRenderTask task.
> then it is just
>
> HTMLRenderContext renderContext = new HTMLRenderContext();
> renderContext.setImageDirectory("image");
> HashMap contextMap = new HashMap();
> contextMap.put( HTMLRenderContext.CONTEXT_NAME, renderContext );
HTMLRenderContext.CONTEXT_NAME is not available
> task.setContext( contextMap );
Can't do this, Eclipse says that this is not in the API
>
> Jason
>
> "Jan Tanis" <jan.tanis@coas.com> wrote in message
> news:drmvgs$vua$1@utils.eclipse.org...
>
>>Jason,
>>
>>How do I append the HTMLRenderContext to the emitter? I assume that that
>>is not done automatically.
>>
>>Regards, Jan.
>>
>>Jason Weathersby wrote:
>>
>>>Jan,
>>>
>>>Use
>>>HTMLRenderContext rc = HTMLRenderContext();
>>>
>>>rc.setImageDirectory("yourlocation");
>>>To handle the images
>>>
>>>Jason
>>>
>>>
>>>"Jan Tanis" <jan.tanis@coas.com> wrote in message
>>>news:drcsre$56e$1@utils.eclipse.org...
>>>
>>>
>>>>Hi,
>>>>
>>>>I'm using config.setTempDir(tempDir); to set the dir for the images, but
>>>>it still puts them in C:'documents and settings..... Any clue on this?
>>>>
>>>>Regards, Jan.
>>>
>>>
>
Regards, Jan.
|
|
|
Re: tempDir [message #122755 is a reply to message #122402] |
Wed, 01 February 2006 07:43   |
Eclipse User |
|
|
|
Did you add the Jars from the Report Engine folder to your project?
Jason
"Jan Tanis" <jan.tanis@coas.com> wrote in message
news:drpk6o$g8f$1@utils.eclipse.org...
> Hi,
>
> What is wrong with my package?
>
> Jason Weathersby wrote:
>> Jan,
>>
>> If you are running this with the API and
>> you have setup a IRunAndRenderTask task.
>> then it is just
>>
>> HTMLRenderContext renderContext = new HTMLRenderContext();
>> renderContext.setImageDirectory("image");
>> HashMap contextMap = new HashMap();
>> contextMap.put( HTMLRenderContext.CONTEXT_NAME, renderContext );
> HTMLRenderContext.CONTEXT_NAME is not available
>
>> task.setContext( contextMap );
>
> Can't do this, Eclipse says that this is not in the API
>
>>
>> Jason
>>
>> "Jan Tanis" <jan.tanis@coas.com> wrote in message
>> news:drmvgs$vua$1@utils.eclipse.org...
>>
>>>Jason,
>>>
>>>How do I append the HTMLRenderContext to the emitter? I assume that that
>>>is not done automatically.
>>>
>>>Regards, Jan.
>>>
>>>Jason Weathersby wrote:
>>>
>>>>Jan,
>>>>
>>>>Use
>>>>HTMLRenderContext rc = HTMLRenderContext();
>>>>
>>>>rc.setImageDirectory("yourlocation");
>>>>To handle the images
>>>>
>>>>Jason
>>>>
>>>>
>>>>"Jan Tanis" <jan.tanis@coas.com> wrote in message
>>>>news:drcsre$56e$1@utils.eclipse.org...
>>>>
>>>>
>>>>>Hi,
>>>>>
>>>>>I'm using config.setTempDir(tempDir); to set the dir for the images,
>>>>>but it still puts them in C:'documents and settings..... Any clue on
>>>>>this?
>>>>>
>>>>>Regards, Jan.
>>>>
>>>>
>>
>
> Regards, Jan.
|
|
|
Re: tempDir [message #122947 is a reply to message #122755] |
Thu, 02 February 2006 01:03   |
Eclipse User |
|
|
|
Originally posted by: jan.tanis.coas.com
Hi Jason,
Yes, I did. It can find the needed classes. But the classes don't have
the functions you show.
Regards, Jan.
Jason Weathersby wrote:
> Did you add the Jars from the Report Engine folder to your project?
>
> Jason
>
> "Jan Tanis" <jan.tanis@coas.com> wrote in message
> news:drpk6o$g8f$1@utils.eclipse.org...
>
>>Hi,
>>
>>What is wrong with my package?
>>
>>Jason Weathersby wrote:
>>
>>>Jan,
>>>
>>>If you are running this with the API and
>>>you have setup a IRunAndRenderTask task.
>>>then it is just
>>>
>>> HTMLRenderContext renderContext = new HTMLRenderContext();
>>> renderContext.setImageDirectory("image");
>>> HashMap contextMap = new HashMap();
>>> contextMap.put( HTMLRenderContext.CONTEXT_NAME, renderContext );
>>
>>HTMLRenderContext.CONTEXT_NAME is not available
>>
>>
>>> task.setContext( contextMap );
>>
>>Can't do this, Eclipse says that this is not in the API
>>
>>
>>>Jason
>>>
>>>"Jan Tanis" <jan.tanis@coas.com> wrote in message
>>>news:drmvgs$vua$1@utils.eclipse.org...
>>>
>>>
>>>>Jason,
>>>>
>>>>How do I append the HTMLRenderContext to the emitter? I assume that that
>>>>is not done automatically.
>>>>
>>>>Regards, Jan.
>>>>
>>>>Jason Weathersby wrote:
>>>>
>>>>
>>>>>Jan,
>>>>>
>>>>>Use
>>>>>HTMLRenderContext rc = HTMLRenderContext();
>>>>>
>>>>>rc.setImageDirectory("yourlocation");
>>>>>To handle the images
>>>>>
>>>>>Jason
>>>>>
>>>>>
>>>>>"Jan Tanis" <jan.tanis@coas.com> wrote in message
>>>>>news:drcsre$56e$1@utils.eclipse.org...
>>>>>
>>>>>
>>>>>
>>>>>>Hi,
>>>>>>
>>>>>>I'm using config.setTempDir(tempDir); to set the dir for the images,
>>>>>>but it still puts them in C:'documents and settings..... Any clue on
>>>>>>this?
>>>>>>
>>>>>>Regards, Jan.
>>>>>
>>>>>
>>Regards, Jan.
>
>
>
|
|
|
Re: tempDir [message #122959 is a reply to message #122402] |
Thu, 02 February 2006 04:00  |
Eclipse User |
|
|
|
Hi,
If you are using BIRT 2.0M2 or older version then
use following code:
HashMap contextMap = new HashMap();
contextMap.put( HTMLRenderContext.CONTEXT_NAME, renderContext );
task.setContext(contextMap);
For BIRT 2.0M3 and newer versions use following code:
HashMap appContext = new HashMap( );
appContext.put( EngineConstants.APPCONTEXT_HTML_RENDER_CONTEXT,
renderContext );
task.setAppContext( appContext );
Thanks,
Bharat
|
|
|
Goto Forum:
Current Time: Sat May 10 05:17:23 EDT 2025
Powered by FUDForum. Page generated in 0.04311 seconds
|