Skip to main content



      Home
Home » Archived » BIRT » tempDir
tempDir [message #118500] Fri, 27 January 2006 05:32 Go to next message
Eclipse UserFriend
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 #120400 is a reply to message #118500] Mon, 30 January 2006 13:24 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: tempDir [message #120655 is a reply to message #120400] Tue, 31 January 2006 01:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jan.tanis.coas.com

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.
>
>
>
Re: tempDir [message #121626 is a reply to message #120655] Tue, 31 January 2006 07:29 Go to previous messageGo to next message
Eclipse UserFriend
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 );
task.setContext( contextMap );

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.
>>
>>
Re: tempDir [message #122402 is a reply to message #121626] Wed, 01 February 2006 01:24 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Creating report off an XML schema only
Next Topic:BIRT reports 1.1 and 2.0 mismatch
Goto Forum:
  


Current Time: Sat May 10 05:17:23 EDT 2025

Powered by FUDForum. Page generated in 0.04311 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top