Showing posts with label company. Show all posts
Showing posts with label company. Show all posts

Thursday, March 29, 2012

Embedding picture in local report header

Okay. Simple request. I have a local report in my VS2005 project. I want to embed my company logo in the header. How do I do this? When I put an image item on the page it wants me to put something in the value for this? I've tried sending through a dataset but SSRS can't load data set information into the header! Why is this so complicated? I don't want to embed a dynamic database image, just a static image that will be embedded in my program. Any help on this would be appreciated.

Thanks,

Jon

Drag and drop an image control to the page header. Select embedded image. Click New image. Select the image that you want to embed. Then click finish. Build and deploy the report. Voila!

|||

This works fine for .rdl files. For me, the image wizard does not come up for .rdlc files. Does anyone know why this is?

|||

I've noticed this too. That's what prompted my original question. So basically, here is what I've figured out.

1. Click on Reports > Embedded Images.

2. Add your new image, remember what you named it.

3. Add an image to your report.

4. Click on the image.

5. Change the Source property to 'Embedded'

6. Change the value property to the name of your embedded image.

That's it! I'm still not sure why the wizard doesn't work.

embedded images in the report

We have company logo stored as an "embedded image" in the rdl file. When the
report is deployed to the production server, the logo is not displayed in
the Report Manager.
What all steps are required to deploy reports with embedded images?
pls. help.
ThanksHi newmem,
I have had the same problem. I have found out that my IE 6.0 causes the
error in my case. After switching the IE options "check for newer version of
stored html pages" from "automatically" to "every visit to the page"
everything works fine...
your way: IE -> Internet Options > Settings
I identified the IE because every output format displays the company logo
correctly (PDF...) and only the default and html format was wrong...
Regards
Wolfgang Himmelsbach
"newmem" wrote:
> We have company logo stored as an "embedded image" in the rdl file. When the
> report is deployed to the production server, the logo is not displayed in
> the Report Manager.
> What all steps are required to deploy reports with embedded images?
> pls. help.
> Thanks
>
>sql

Tuesday, March 27, 2012

Embedded Database or runtime solution

Hello,
Im doing research for my company for a project we are about to start, but the more I find, the more Im confusing myself. Maybe someone would be so nice to help me a little.

We need a database solution, either licensing (ISV) or i think maybe an embedded database. if its licensing, its not a problem, but after research, im thinking licensing would be a waste of time or too much and theire not enough information to go by just that.

Problem: Need to develop software for a client where there will be around 300 users using the system (not all at once neccisarrily). We are creating this software for them and they want to re-sell it after completion, but they do not want to make their customers purchase a database for the purchase of their software. (because of all types of licensing). We need the database RUNTIME to run on the customers machine to make the software work.

Is there a RUNTIME license for Independant-Software-Vendor(IVS) for redistribution? or would it make sense to embed a database ( for example, the free edition of sql server;embeeded feature :), or maybe firebird embedded database?) We are developing in Visual Studio 2005.

This might sound confusing, thats where im at. For those of you with more experience, hopefully you understand what im talking about.

Thank you. I have 2 days to find a solution. Ill continue looking and post in thread if i find anything new or clearify my problem.You've probably already had to turn your assignment in, but you've got a bunch of choices. The problem is that licensing is like playing pickup sticks with eels. They're slippery, they often move on their own, and they're tough to stack at the best of times.

-PatP

Thursday, March 22, 2012

Email Trigger in SQL 2005

I am new to developing as will be evident from this post. Your help will be greatly appreciated.

I am developing an intranet for our company using ASP.NET with a SQL backend. I am currently working on a suggestion box form.

I would like to have an email sent to specific persons when a new entry is made in the suggestion table. I have been able to configure the trigger and generate the email (This was easy). Formatting the email has proven more difficult to resolve.

The format I would like is somewhat as follows:

F_NAME L_NAME submitted the following suggestion:

IDEA

BENEFIT

APPROVE | DECLINE

The items in RED are columns in the table and the Blue Underlines are hyperlinks to change the Status column in the table.

How can I generate the email to contain the data from the inserted record and in the above format.

Being new at this I only now how to send a static email advising that the entry has been made.

Any help creating the dynamic email form for this trigger will be greatly appreciated.

Lastly, what books are most helpful for SQL, ASP.NET, and VBScript referencing and examples?

Thanks

In SQL 2k I was not a fan of triggering the email via a trigger becasue if the mail server was down there was a problem ,that the transaction could lock up all the other processes that were supposed to use the table, but as Service Broker was introduced to send mails, that is another thing for me, lets try this suggestion here to see if it works:

DROP TABLE ProposedNames

CREATE TABLE ProposedNames

(

ProposedNameId INT IDENTITY(1,1) PRIMARY KEY,

Firstname VARCHAR(100),

Lastname VARCHAR(100),

Accepted BIT

)

CREATE TRIGGER INS_ProposedNames

ON ProposedNames

FOR INSERT

AS

BEGIN

SET NOCOUNT ON

DECLARE @.SomeHTMLText NVARCHAR(MAX)

DECLARE @.RowCount INT

DECLARE @.COUNTER INT

SET @.Counter = 1

CREATE TABLE #Names

(

Counted INT IDENTITY(1,1),

ProposedNameId INT,

Firstname VARCHAR(100),

Lastname VARCHAR(100),

)

INSERT INTO #Names

(

ProposedNameId ,

Firstname,

Lastname

)

SELECT

ProposedNameId ,

Firstname,

Lastname

FROM INSERTED

SET @.ROWCOUNT = @.@.ROWCOUNT

WHILE @.ROWCOUNT >= @.Counter

BEGIN

SEt @.SomeHTMLText = ''

SELECT @.SomeHTMLText = '<HTML><BODY>' +

'The following names were proposed<br><br>' +

@.SomeHTMLText +

'FirstName: ' + Firstname + '<br><br>' +

'LastName: ' + Lastname + '<br><br>' +

'<a href="http://www.someserver.com/Page.aspx?Action=Accept&ID=' + CAST(ProposedNameId AS VARCHAR(10)) + '"> I Accept</a> | ' +

'<a href="http://www.someserver.com/Page.aspx?Action=Decline&ID=' + CAST(ProposedNameId AS VARCHAR(10)) + '"> I Decline</a>' +

'</BODY></HTML>'

FROM #Names

WHERE Counted = @.Counter

EXEC msdb..sp_send_dbmail

@.recipients= 'TheRecipient@.domain.com',

@.subject = 'Its up to you',

@.body = @.SomeHTMLText,

@.body_format = 'HTML'

SET @.Counter = @.Counter +1

END

DROP TABLE #Names

END

GO

--Try it:

INSERT INTO ProposedNames

(Firstname,LastName)

VALUES ('Jens', 'Sü?meyer')

HTH, Jens Suessmeyer.

http://www.sqlserver2005.de

|||

I wish to thank Jens Suessmeyer for the helpful infomraiton. Although the information provided did not fully resolve my issue the information provided me with enough knowledge to research and discover the solutions provided below.

I have created two triggers. The first trigger sends and e-mail message to the person in charge of reviewing the submission from the web form. The second trigger sends a confirmation e-mail to the person whom submitted the suggestion.

CREATE Trigger [triggername]

on [tablename]

for insert

as

declare @.text varchar(max)

declare @.name varchar(max)

declare @.idea varchar(max)

declare @.benefit varchar(max)

set @.text = ''

set @.name = ''

set @.idea = ''

set @.benefit = ''

select @.name = firstname + ' ' + lastname, @.idea = idea, @.benefit = benefit

from tablename

where id = ident_current('tablename')

set @.text = '<html><body>' + 'The following Bright Idea was submitted by ' +

@.name + ':

' + '<b>Idea: </b>' + @.idea + '

' + '<b>Benefit: </b>' +

@.benefit + '

' + 'Please reveiw this idea as soon as possible.' +

'</body></html>'

exec msdb.dbo.sp_send_dbmail

@.profile_name = 'profilename',

@.recipients = 'recipientemailaddress',

@.subject = 'New Bright Idea Submitted',

@.body = @.text,

@.body_format = 'HTML'

CREATE Trigger [triggername]

on [tablename]

for insert

as

declare @.text varchar(max)

declare @.name varchar(max)

declare @.idea varchar(max)

declare @.benefit varchar(max)

declare @.email varchar(max)

set @.text = ''

set @.name = ''

set @.idea = ''

set @.benefit = ''

set @.email = ''

select @.name = name, @.idea = idea, @.benefit = benefit, @.email = email

from tablename

where id = ident_current('tablename')

set @.text = '<html><body>' + @.name + ',

Thank you for submitting your idea ' +

'using our web based service. Your suggestion has been received and will be reveiwed ' +

'by our management staff in the next couple of weeks.

Below is a copy of the idea ' +

'we received from you:

' + '<b>Idea: </b>' + @.idea +

'

<b>Benefit: </b>' + @.benefit + '

Once again we would like to thank you for ' +

'submitting your idea.' +

'</body></html>'

exec msdb.dbo.sp_send_dbmail

@.profile_name = 'profilename',

@.recipients = @.email,

@.subject = 'New Bright Idea Submitted',

@.body = @.text,

@.body_format = 'HTML'

|||Your trigger doesn't handle for multiple rows being affected by the DML statement or no rows affected or concurrency issues (use of IDENT_CURRENT). Instead of using IDENT_CURRENT, you need to query the inserted virtual table to get the inserted information. And you need to use a cursor loop to send email for each affected row for example.

Wednesday, March 21, 2012

email problems with sql

I am trying to get a subscription to automatically send out an email to an
address outside of our company. It is giving me an error that says "The
e-mail address of one or more recipients is not valid." I do not have a
problem sending to addresses inside the company. Anyone have any ideas.I would carefully examine the email addresses to find any that are "not
valid".
--
Arnie Rowland, Ph.D.
Westwood Consulting, Inc
Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous
"Ben Watts" <ben.watts@.aaronnickellhomes.com> wrote in message
news:eCztpFFyGHA.5048@.TK2MSFTNGP05.phx.gbl...
>I am trying to get a subscription to automatically send out an email to an
>address outside of our company. It is giving me an error that says "The
>e-mail address of one or more recipients is not valid." I do not have a
>problem sending to addresses inside the company. Anyone have any ideas.
>

email problems with sql

I am trying to get a subscription to automatically send out an email to an
address outside of our company. It is giving me an error that says "The
e-mail address of one or more recipients is not valid." I do not have a
problem sending to addresses inside the company. Anyone have any ideas.I would carefully examine the email addresses to find any that are "not
valid".
Arnie Rowland, Ph.D.
Westwood Consulting, Inc
Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous
"Ben Watts" <ben.watts@.aaronnickellhomes.com> wrote in message
news:eCztpFFyGHA.5048@.TK2MSFTNGP05.phx.gbl...
>I am trying to get a subscription to automatically send out an email to an
>address outside of our company. It is giving me an error that says "The
>e-mail address of one or more recipients is not valid." I do not have a
>problem sending to addresses inside the company. Anyone have any ideas.
>

Sunday, March 11, 2012

e-mail delivery to Dsitribution Group in AD fails

Hi
I have some unusual problem with e-mail delivery of reports.
I need sheduling subscription to daily report for all workers of our
company. All these people are members of distribution group in AD named "All
workers".
I've made subscription and typed in "TO:" field valid e-mail address of the
distributoin group: allworkers@.mydomain.com.
The e-mail message with report was succesifully send from Report Server but
it did not received by workers. Auto-reply from Exchage Server is "You don't
have sufficient permissions for sending e-mail to this e-mail address".
I cannot solve this problem. Please, help.
Additional symptoms: a) Message with report is succesifully delivered when I
put in "TO:" field direct e-mail addresses of one or several workers. Problem
occurs only with distribution goup. b) In Exchange server there are no
restrictions for sending mails to this group. Everyone can send e-mail
messages to "All Workes" group (I checked this in AD). c) Report Server
service is running under domain user account. When I sending e-mail from this
account to "All workers group" by means of Outlook CLient, evetything is ok.
I cannot put all e-mail addresses into "TO:" field as we have 300 workers :-)
--
Best regards,
Alexander Baskakovi'm afraid you ask this on the wrong group ? suggest your problem in the
exchange group, maybe they know the answer there.
Kind regards, Koen
"Alexander Baskakov" wrote:
> Hi
> I have some unusual problem with e-mail delivery of reports.
> I need sheduling subscription to daily report for all workers of our
> company. All these people are members of distribution group in AD named "All
> workers".
> I've made subscription and typed in "TO:" field valid e-mail address of the
> distributoin group: allworkers@.mydomain.com.
> The e-mail message with report was succesifully send from Report Server but
> it did not received by workers. Auto-reply from Exchage Server is "You don't
> have sufficient permissions for sending e-mail to this e-mail address".
> I cannot solve this problem. Please, help.
> Additional symptoms: a) Message with report is succesifully delivered when I
> put in "TO:" field direct e-mail addresses of one or several workers. Problem
> occurs only with distribution goup. b) In Exchange server there are no
> restrictions for sending mails to this group. Everyone can send e-mail
> messages to "All Workes" group (I checked this in AD). c) Report Server
> service is running under domain user account. When I sending e-mail from this
> account to "All workers group" by means of Outlook CLient, evetything is ok.
> I cannot put all e-mail addresses into "TO:" field as we have 300 workers :-)
> --
> Best regards,
> Alexander Baskakov|||Hi,
Koen.
Thank You for answer.
But now the problem has (may be tempory) solved. I'm sending mails from RS
to the one of users and then i'm redirecting mails to distribution group.
--
Best regards,
Alexander Baskakov
"Koen" wrote:
> i'm afraid you ask this on the wrong group ? suggest your problem in the
> exchange group, maybe they know the answer there.
> Kind regards, Koen
> "Alexander Baskakov" wrote:
> > Hi
> > I have some unusual problem with e-mail delivery of reports.
> > I need sheduling subscription to daily report for all workers of our
> > company. All these people are members of distribution group in AD named "All
> > workers".
> > I've made subscription and typed in "TO:" field valid e-mail address of the
> > distributoin group: allworkers@.mydomain.com.
> > The e-mail message with report was succesifully send from Report Server but
> > it did not received by workers. Auto-reply from Exchage Server is "You don't
> > have sufficient permissions for sending e-mail to this e-mail address".
> > I cannot solve this problem. Please, help.
> > Additional symptoms: a) Message with report is succesifully delivered when I
> > put in "TO:" field direct e-mail addresses of one or several workers. Problem
> > occurs only with distribution goup. b) In Exchange server there are no
> > restrictions for sending mails to this group. Everyone can send e-mail
> > messages to "All Workes" group (I checked this in AD). c) Report Server
> > service is running under domain user account. When I sending e-mail from this
> > account to "All workers group" by means of Outlook CLient, evetything is ok.
> >
> > I cannot put all e-mail addresses into "TO:" field as we have 300 workers :-)
> >
> > --
> > Best regards,
> > Alexander Baskakov

Friday, February 24, 2012

Eliminate Blank Spaces Between Cross-tabs

Hi.
I am developing our company's inventory application. I am creating a report that involves a cross-tab and subreport. We are using VB 2005 on which the Crystal Report is integrated.

I placed my cross-tab in the Group Header Section, and the subreport, also containing a crosstab in the Group Footer Section. Logically, it works properly but i cannot get rid of the blank spaces in between the cross-tab and subreport.

I have already checked all the properties of the sections. like suppressing those sections that are not included. But still, the blank spaces are there.
Please extend help on this matter. Thanks!What section is the space attributed to in the preview?|||Hello.

I suspect that the blank spaces are generated within the Group Header Section, wherein the cross-tab is placed.