Showing posts with label textbox. Show all posts
Showing posts with label textbox. Show all posts

Wednesday, March 28, 2012

Images on a report

I am trying to put an image behind a textbox. It's one of those rounded rectangles and the effect I'm after is that the text looks like it is inside a nice rectangle graphic. It looks fine in preview mode, but when I deploy the report the text is below the image and not 'inside' it.
What am I doing wrong?
Thanks

dear,

What is the source of the image.

I mean from database,or web or Disk.

HTH

from

sufian

|||The image is embedded into the report - it resides on the disk of the server.
I've got round the problem to an extent by making a textbox, typing the text and then setting a background image that is exactly the same size as the textbox, but if you get the textbox slightly too big or small, it either cuts a bit off or repeats (I could switch off the repeat I s'pose).|||

Dear,

Set the backgroundrepeat option to norepeat.

HTH

from

sufian

Friday, March 23, 2012

Image on each pahe header

I can insert image in header from a database by using :
- in body a textbox (name = textbox33) with value:
=convert.toBase64String(first(fields!Image.value,"IMAGE"))
- in header an image with value:
=convert.fromBase64String(ReportItems!textbox33.value)
Image appears on first page only, after just a red X appears!!
Any ideas or a solution... Thanks.that's because textbox33 appears on 1st page only.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Ginnie" <Ginnie@.discussions.microsoft.com> wrote in message
news:38ABA450-786E-4A86-936A-F04C6EA6483A@.microsoft.com...
> I can insert image in header from a database by using :
> - in body a textbox (name = textbox33) with value:
> =convert.toBase64String(first(fields!Image.value,"IMAGE"))
> - in header an image with value:
> =convert.fromBase64String(ReportItems!textbox33.value)
> Image appears on first page only, after just a red X appears!!
> Any ideas or a solution... Thanks.
>
>|||my textbox33 is directly on body.
how can I make textbox33 appearing on each page?
Thanks
"Lev Semenets [MSFT]" wrote:
> that's because textbox33 appears on 1st page only.
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "Ginnie" <Ginnie@.discussions.microsoft.com> wrote in message
> news:38ABA450-786E-4A86-936A-F04C6EA6483A@.microsoft.com...
> > I can insert image in header from a database by using :
> > - in body a textbox (name = textbox33) with value:
> > =convert.toBase64String(first(fields!Image.value,"IMAGE"))
> > - in header an image with value:
> > =convert.fromBase64String(ReportItems!textbox33.value)
> >
> > Image appears on first page only, after just a red X appears!!
> >
> > Any ideas or a solution... Thanks.
> >
> >
> >
> >
>
>|||excuse me but how can i recup your sample report. I don't see it
"Lev Semenets [MSFT]" wrote:
> There is another approach: using parameter and calculated field.
> I'm attaching sample report.
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "Ginnie" <Ginnie@.discussions.microsoft.com> wrote in message
> news:BCCB848A-CFFD-47E7-A181-4E7BDC8A81CD@.microsoft.com...
> > my textbox33 is directly on body.
> > how can I make textbox33 appearing on each page?
> > Thanks
> >
> > "Lev Semenets [MSFT]" wrote:
> >
> > > that's because textbox33 appears on 1st page only.
> > >
> > > --
> > > This posting is provided "AS IS" with no warranties, and confers no
> rights.
> > >
> > >
> > > "Ginnie" <Ginnie@.discussions.microsoft.com> wrote in message
> > > news:38ABA450-786E-4A86-936A-F04C6EA6483A@.microsoft.com...
> > > > I can insert image in header from a database by using :
> > > > - in body a textbox (name = textbox33) with value:
> > > > =convert.toBase64String(first(fields!Image.value,"IMAGE"))
> > > > - in header an image with value:
> > > > =convert.fromBase64String(ReportItems!textbox33.value)
> > > >
> > > > Image appears on first page only, after just a red X appears!!
> > > >
> > > > Any ideas or a solution... Thanks.
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
>
>|||I'm sorry but how can i recup sample report? I don't see it !!
"Lev Semenets [MSFT]" wrote:
> There is another approach: using parameter and calculated field.
> I'm attaching sample report.
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "Ginnie" <Ginnie@.discussions.microsoft.com> wrote in message
> news:BCCB848A-CFFD-47E7-A181-4E7BDC8A81CD@.microsoft.com...
> > my textbox33 is directly on body.
> > how can I make textbox33 appearing on each page?
> > Thanks
> >
> > "Lev Semenets [MSFT]" wrote:
> >
> > > that's because textbox33 appears on 1st page only.
> > >
> > > --
> > > This posting is provided "AS IS" with no warranties, and confers no
> rights.
> > >
> > >
> > > "Ginnie" <Ginnie@.discussions.microsoft.com> wrote in message
> > > news:38ABA450-786E-4A86-936A-F04C6EA6483A@.microsoft.com...
> > > > I can insert image in header from a database by using :
> > > > - in body a textbox (name = textbox33) with value:
> > > > =convert.toBase64String(first(fields!Image.value,"IMAGE"))
> > > > - in header an image with value:
> > > > =convert.fromBase64String(ReportItems!textbox33.value)
> > > >
> > > > Image appears on first page only, after just a red X appears!!
> > > >
> > > > Any ideas or a solution... Thanks.
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
>
>|||send me e-mail and i'll send it to you.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Ginnie" <Ginnie@.discussions.microsoft.com> wrote in message
news:9B2FBA35-568F-4520-902E-964BF04D0CB2@.microsoft.com...
> I'm sorry but how can i recup sample report? I don't see it !!
> "Lev Semenets [MSFT]" wrote:
> > There is another approach: using parameter and calculated field.
> > I'm attaching sample report.
> >
> > --
> > This posting is provided "AS IS" with no warranties, and confers no
rights.
> >
> >
> > "Ginnie" <Ginnie@.discussions.microsoft.com> wrote in message
> > news:BCCB848A-CFFD-47E7-A181-4E7BDC8A81CD@.microsoft.com...
> > > my textbox33 is directly on body.
> > > how can I make textbox33 appearing on each page?
> > > Thanks
> > >
> > > "Lev Semenets [MSFT]" wrote:
> > >
> > > > that's because textbox33 appears on 1st page only.
> > > >
> > > > --
> > > > This posting is provided "AS IS" with no warranties, and confers no
> > rights.
> > > >
> > > >
> > > > "Ginnie" <Ginnie@.discussions.microsoft.com> wrote in message
> > > > news:38ABA450-786E-4A86-936A-F04C6EA6483A@.microsoft.com...
> > > > > I can insert image in header from a database by using :
> > > > > - in body a textbox (name = textbox33) with value:
> > > > > =convert.toBase64String(first(fields!Image.value,"IMAGE"))
> > > > > - in header an image with value:
> > > > > =convert.fromBase64String(ReportItems!textbox33.value)
> > > > >
> > > > > Image appears on first page only, after just a red X appears!!
> > > > >
> > > > > Any ideas or a solution... Thanks.
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> >
> >
> >

Monday, March 19, 2012

Image

Hi All,
I need to have an image in my table. I dragged an image and dropped it on a
textbox. I set the datasource as Database MIMEType = jpeg and the value as
the databse column (this column is the path to the jpg image).
When I preview the report the image field contains a red X.
I really, really need help getting this to work.
RoyIf I understand correctly, you have a filepath in your database field (i.e.
'c:\images\someimage.jpg' ). The simplest way to do this is to store your
image a binary field inside your database (in a varbinary type field). Then
the report will display the contents of that field automatically.
Alain Quesnel
alainsansspam@.logiquel.com
www.logiquel.com
"RAF" <RAF@.discussions.microsoft.com> wrote in message
news:2BCEB9D0-F773-4A07-94C2-FE9207A3F979@.microsoft.com...
> Hi All,
> I need to have an image in my table. I dragged an image and dropped it on
> a
> textbox. I set the datasource as Database MIMEType = jpeg and the value as
> the databse column (this column is the path to the jpg image).
> When I preview the report the image field contains a red X.
> I really, really need help getting this to work.
> Roy|||I always understood that storing images was not a good idea. Is it not
possible to use a path to render the image?
Thanks,
Roy
"Alain Quesnel" wrote:
> If I understand correctly, you have a filepath in your database field (i.e.
> 'c:\images\someimage.jpg' ). The simplest way to do this is to store your
> image a binary field inside your database (in a varbinary type field). Then
> the report will display the contents of that field automatically.
>
> Alain Quesnel
> alainsansspam@.logiquel.com
> www.logiquel.com
>
> "RAF" <RAF@.discussions.microsoft.com> wrote in message
> news:2BCEB9D0-F773-4A07-94C2-FE9207A3F979@.microsoft.com...
> > Hi All,
> >
> > I need to have an image in my table. I dragged an image and dropped it on
> > a
> > textbox. I set the datasource as Database MIMEType = jpeg and the value as
> > the databse column (this column is the path to the jpg image).
> >
> > When I preview the report the image field contains a red X.
> >
> > I really, really need help getting this to work.
> >
> > Roy
>|||You can do that through an expression that returns the image file's path on
your webserver (i.e. ="http://www.yourdomain.com/images/" &
Fields!FILE_PATH.Value ). This will be the "Value" property of your report's
image component. The "Source" property will be external. You can leave the
MIMEType blank.
Why do you think storing images is not a good idea?
Alain Quesnel
alainsansspam@.logiquel.com
www.logiquel.com
"RAF" <RAF@.discussions.microsoft.com> wrote in message
news:DDBD584A-4F67-451A-8600-D84BAA08C133@.microsoft.com...
>I always understood that storing images was not a good idea. Is it not
> possible to use a path to render the image?
> Thanks,
> Roy
> "Alain Quesnel" wrote:
>> If I understand correctly, you have a filepath in your database field
>> (i.e.
>> 'c:\images\someimage.jpg' ). The simplest way to do this is to store your
>> image a binary field inside your database (in a varbinary type field).
>> Then
>> the report will display the contents of that field automatically.
>>
>> Alain Quesnel
>> alainsansspam@.logiquel.com
>> www.logiquel.com
>>
>> "RAF" <RAF@.discussions.microsoft.com> wrote in message
>> news:2BCEB9D0-F773-4A07-94C2-FE9207A3F979@.microsoft.com...
>> > Hi All,
>> >
>> > I need to have an image in my table. I dragged an image and dropped it
>> > on
>> > a
>> > textbox. I set the datasource as Database MIMEType = jpeg and the value
>> > as
>> > the databse column (this column is the path to the jpg image).
>> >
>> > When I preview the report the image field contains a red X.
>> >
>> > I really, really need help getting this to work.
>> >
>> > Roy
>>|||Make that ="http://www.yourdomain.com/images/" & Fields!FILE_NAME.Value ,
assuming you have the image's file name in a field called FILE_NAME.
Alain Quesnel
alainsansspam@.logiquel.com
www.logiquel.com
"Alain Quesnel" <alainsansspam@.logiquel.com> wrote in message
news:eQwg09fYIHA.4828@.TK2MSFTNGP05.phx.gbl...
> You can do that through an expression that returns the image file's path
> on your webserver (i.e. ="http://www.yourdomain.com/images/" &
> Fields!FILE_PATH.Value ). This will be the "Value" property of your
> report's image component. The "Source" property will be external. You can
> leave the MIMEType blank.
> Why do you think storing images is not a good idea?
>
> Alain Quesnel
> alainsansspam@.logiquel.com
> www.logiquel.com
>
> "RAF" <RAF@.discussions.microsoft.com> wrote in message
> news:DDBD584A-4F67-451A-8600-D84BAA08C133@.microsoft.com...
>>I always understood that storing images was not a good idea. Is it not
>> possible to use a path to render the image?
>> Thanks,
>> Roy
>> "Alain Quesnel" wrote:
>> If I understand correctly, you have a filepath in your database field
>> (i.e.
>> 'c:\images\someimage.jpg' ). The simplest way to do this is to store
>> your
>> image a binary field inside your database (in a varbinary type field).
>> Then
>> the report will display the contents of that field automatically.
>>
>> Alain Quesnel
>> alainsansspam@.logiquel.com
>> www.logiquel.com
>>
>> "RAF" <RAF@.discussions.microsoft.com> wrote in message
>> news:2BCEB9D0-F773-4A07-94C2-FE9207A3F979@.microsoft.com...
>> > Hi All,
>> >
>> > I need to have an image in my table. I dragged an image and dropped it
>> > on
>> > a
>> > textbox. I set the datasource as Database MIMEType = jpeg and the
>> > value as
>> > the databse column (this column is the path to the jpg image).
>> >
>> > When I preview the report the image field contains a red X.
>> >
>> > I really, really need help getting this to work.
>> >
>> > Roy
>>
>