Hello.
This is a general design question about reports.
Is there a way to change the layout of a few report together?
I have 20 reports and i want to add a logo to all of them, can i do it
in a simple way or should I open them one after the other and add the
logo to each report individually?
And if afterwards I want to change the logo? How can i do it with out
open each report and change it again?
(I'm using rs2005 with Visual studio 2005).
Thanks,
Roy.What you can do is that you can create a template with logo and keep in the
report folder and when ever you are creating a new report you can use it. so
it will be consistent. Otherwise you can't replace with logo in all the
existing report automatically. Need to do it manually.
Amarnath
"nicknack" wrote:
> Hello.
> This is a general design question about reports.
> Is there a way to change the layout of a few report together?
> I have 20 reports and i want to add a logo to all of them, can i do it
> in a simple way or should I open them one after the other and add the
> logo to each report individually?
> And if afterwards I want to change the logo? How can i do it with out
> open each report and change it again?
> (I'm using rs2005 with Visual studio 2005).
> Thanks,
> Roy.
>|||Thanks.
Sad to hear it but thanks for the reply...
:)
Amarnath =D7=9B=D7=AA=D7=91:
> What you can do is that you can create a template with logo and keep in t=he
> report folder and when ever you are creating a new report you can use it.= so
> it will be consistent. Otherwise you can't replace with logo in all the
> existing report automatically. Need to do it manually.
> Amarnath
> "nicknack" wrote:
> > Hello.
> > This is a general design question about reports.
> >
> > Is there a way to change the layout of a few report together?
> > I have 20 reports and i want to add a logo to all of them, can i do it
> > in a simple way or should I open them one after the other and add the
> > logo to each report individually?
> > And if afterwards I want to change the logo? How can i do it with out
> > open each report and change it again?
> >
> > (I'm using rs2005 with Visual studio 2005).
> > > > Thanks,
> > Roy.
> > > >|||Changing an element that is already in a report is easier than to add
something new.
If you add the logo, you could do a Find and replace on all the code files,
replacing "logo.jpg" with "newlogo.jpg".
To replace the logo
Right click on a report file, and click View Code.
Start the Find / Replace control by typing ctrl+H
In the "Look in" list, select "Current Project".
Type in the name of the current logo in the "Find what" textbox, and type
the name of the new logo in the "Replace with" textbox.
Click Replace if you want to control what is changed, and Replace all if you
just want it to go through it all.
This usually opens up all the files that are changed. Remember to save them
all before testing or deploying them.
You might try to do a more expanded version of this to add a header control
as well.
In one report you add the page header and whatever you want to put there.
Make sure that the name of the textbox is very probably unique, to make sure
that no textboxes in any of your reports are called the same. Copy the code
for the whole header and all controls in it to notepad. Format your code so
that everything is on the same line. (Turn off Word Wrap before you start.)
You should end up with something like this:
<PageHeader> <ReportItems> <Textbox Name="textbox4">
<rd:DefaultName>textbox4</rd:DefaultName> <Width>6.25cm</Width>
<Style> <PaddingLeft>2pt</PaddingLeft>
<PaddingBottom>2pt</PaddingBottom> <PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop> </Style> <CanGrow>true</CanGrow>
<Height>0.63492cm</Height> <Value>=Globals!PageNumber</Value>
</Textbox> </ReportItems> <Height>0.75cm</Height>
<PrintOnLastPage>true</PrintOnLastPage>
<PrintOnFirstPage>true</PrintOnFirstPage> </PageHeader>
Now, replace </Body> with
</Body> <PageHeader> <ReportItems> <Textbox Name="textbox4">
<rd:DefaultName>textbox4</rd:DefaultName> <Width>6.25cm</Width>
<Style> <PaddingLeft>2pt</PaddingLeft>
<PaddingBottom>2pt</PaddingBottom> <PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop> </Style> <CanGrow>true</CanGrow>
<Height>0.63492cm</Height> <Value>=Globals!PageNumber</Value>
</Textbox> </ReportItems> <Height>0.75cm</Height>
<PrintOnLastPage>true</PrintOnLastPage>
<PrintOnFirstPage>true</PrintOnFirstPage> </PageHeader>
in all your reports.
Kaisa M. Lindahl Lervik
"nicknack" <roezohar@.gmail.com> wrote in message
news:1162707523.683103.312020@.f16g2000cwb.googlegroups.com...
> Hello.
> This is a general design question about reports.
> Is there a way to change the layout of a few report together?
> I have 20 reports and i want to add a logo to all of them, can i do it
> in a simple way or should I open them one after the other and add the
> logo to each report individually?
> And if afterwards I want to change the logo? How can i do it with out
> open each report and change it again?
> (I'm using rs2005 with Visual studio 2005).
> Thanks,
> Roy.
>|||You can also leave the logo file name the same - "logo.jpg" just change
the jpg :)
(Maybe thats just too obvious)
Kaisa M. Lindahl Lervik wrote:
> Changing an element that is already in a report is easier than to add
> something new.
> If you add the logo, you could do a Find and replace on all the code files,
> replacing "logo.jpg" with "newlogo.jpg".
> To replace the logo
> Right click on a report file, and click View Code.
> Start the Find / Replace control by typing ctrl+H
> In the "Look in" list, select "Current Project".
> Type in the name of the current logo in the "Find what" textbox, and type
> the name of the new logo in the "Replace with" textbox.
> Click Replace if you want to control what is changed, and Replace all if you
> just want it to go through it all.
> This usually opens up all the files that are changed. Remember to save them
> all before testing or deploying them.
> You might try to do a more expanded version of this to add a header control
> as well.
> In one report you add the page header and whatever you want to put there.
> Make sure that the name of the textbox is very probably unique, to make sure
> that no textboxes in any of your reports are called the same. Copy the code
> for the whole header and all controls in it to notepad. Format your code so
> that everything is on the same line. (Turn off Word Wrap before you start.)
> You should end up with something like this:
> <PageHeader> <ReportItems> <Textbox Name="textbox4">
> <rd:DefaultName>textbox4</rd:DefaultName> <Width>6.25cm</Width>
> <Style> <PaddingLeft>2pt</PaddingLeft>
> <PaddingBottom>2pt</PaddingBottom> <PaddingRight>2pt</PaddingRight>
> <PaddingTop>2pt</PaddingTop> </Style> <CanGrow>true</CanGrow>
> <Height>0.63492cm</Height> <Value>=Globals!PageNumber</Value>
> </Textbox> </ReportItems> <Height>0.75cm</Height>
> <PrintOnLastPage>true</PrintOnLastPage>
> <PrintOnFirstPage>true</PrintOnFirstPage> </PageHeader>
> Now, replace </Body> with
> </Body> <PageHeader> <ReportItems> <Textbox Name="textbox4">
> <rd:DefaultName>textbox4</rd:DefaultName> <Width>6.25cm</Width>
> <Style> <PaddingLeft>2pt</PaddingLeft>
> <PaddingBottom>2pt</PaddingBottom> <PaddingRight>2pt</PaddingRight>
> <PaddingTop>2pt</PaddingTop> </Style> <CanGrow>true</CanGrow>
> <Height>0.63492cm</Height> <Value>=Globals!PageNumber</Value>
> </Textbox> </ReportItems> <Height>0.75cm</Height>
> <PrintOnLastPage>true</PrintOnLastPage>
> <PrintOnFirstPage>true</PrintOnFirstPage> </PageHeader>
> in all your reports.
> Kaisa M. Lindahl Lervik
>
> "nicknack" <roezohar@.gmail.com> wrote in message
> news:1162707523.683103.312020@.f16g2000cwb.googlegroups.com...
> > Hello.
> > This is a general design question about reports.
> >
> > Is there a way to change the layout of a few report together?
> > I have 20 reports and i want to add a logo to all of them, can i do it
> > in a simple way or should I open them one after the other and add the
> > logo to each report individually?
> > And if afterwards I want to change the logo? How can i do it with out
> > open each report and change it again?
> >
> > (I'm using rs2005 with Visual studio 2005).
> >
> > Thanks,
> > Roy.
> >
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment