Crystal report that auto-emails to vendors in Parameter - email

This is a little bit of a stretch, but we're trying to convert old reports in an increasingly unstable Access Database and I have a question.
Here's what the report does in Access currently:
The user gets prompted for one of our many Suppliers in a drop down style list
Once the supplier is entered, that Suppliers list of parts will be populated
The report then pulls an email address from our system (IFS) and emails the list that has been populated to the email in our files.
We've made a SQL Query that will pull in the information that we need to replicate the report, but we're at a sort of cross-roads with how to get it to automatically go through the list of Suppliers that are in the Parameters and send off the email to them all automatically.
Would there be an easier way to do this in Crystal Reports (2011) besides automating the report and selecting all the parameters manually or in Oracle SQL Developer through maybe a WHILE LOOP?
Thanks in advance, and if you need any more information, I'll try and clarify!

This looks like a data driven report ( publication). You will run a query to retrieve the list if suppliers and their emails then run a report for each record returned by the query. Let say you have a report , which accepts a parameter SupplierID and the query returns data like this
SupplierID SupplierEmail
ID=1 email=supplierA#mail.com
ID=2 email=supplierB#mail.com
ID=3 email=supplierC#mail.com
The software will get row #1 and will use ID=1, as a parameter for Suppliers report, will export the report and will send the exported file to supplierA#mail.com. Then it will move to the next row and will use ID=2 as a parameter for the next run of the same report, export it and send it to supplierB#mail.com. The same will happen for row #3. You can check also this video, which demonstrates the proces: http://www.r-tag.com/Pages/Preview_CreateBatchJob.aspx .
Because the values for report parameters, emails etc are returned by the query this approach is known as data driven report ( publication).
Data driven publications are available in SSRS if you own SQLServer Enterprise license. There are other types of software who support them. The sample video above is from R-Tag, which could be useful too and supports SSRS, Crystal reports and SQL Ad-hoc queries. If you use Ad-hoc query you can export suppliers data to Excel without creating a special report.

Related

How do I include report parameters in an SSRS subscription's subject line?

I have a report that displays data for a specified date. The report runs daily and emails a copy to the recipients. The default subject for the email is "#ReportName was executed at #ExecutionTime." Rather than include the execution date, I want to include the date of the report data, which is available in a parameter called #date.
How can I include a report parameter's value in the subject line of the subscription email?
I'd recommend looking into data-driven subscriptions. Basically they allow you to write a query to set your parameter value(s) and define additional columns that can be used for subject line, message body, etc. Here's one helpful resource:
Data-driven subscriptions in SSRS 2008 R2, which includes some additional info to keep in mind when using data-driven subscriptions
Also, I should point out that data-driven subscriptions are only available on certain versions of SQL Server (Evaluation, Developer, Enterprise).
Including the values of report parameters in the subject line of an email subscription does not appear to be possible with SSRS. Data-driven subscriptions allow you to build the subject line dynamically at run-time, but it does not let you query and insert the parameters into the subject line. From what I can tell, this is just not possible.
It should be possible by not using subscriptions, but e.g. from SSIS to
* render the SSRS report and save e.g. as html file,
* create an e-mail and put the file from the report either into the body or as attachment,
* and set the e-mail subject. This bears again the challenge to read out a value or parameter from the rendered report, where I presently don't have an answer. But here you have all means including .net available, so should be possible.
Mike
The parameter values are found in the Parameters field of the dbo.Subscriptions table in the ReportServer database. If you update the ExtensionSettings field's subject section with values from the Parameters field, you can achieve this without purchasing the enterprise license. Just remember that ExtensionSettings is ntext so you will need to CAST to NVARCHAR(MAX) to do your REPLACE() statement.

Crystal report individual schedule run for each possible parameter values

I have a requirement to schedule individual run for a report for each possible database values for the customer parameter. So, if we have 1000 customers in the customer table. The report needs to run an instance for each customer value - i.e a 1000 versions. This needs to happen once a month. Please suggest on ways to accomplish this dynamically.
Create a Crystal Report that supplies id, full name, and email address (the names don't need to match):
Add report to Enterprise.
Create new Publication:
Select dynamic recipients, Crystal Reports, then the report that you published earlier:
Map the report's fields to the interface:
Configure Personalization:
You need a data driven reports - run a query and then run a report for each record returned by the query. Check R-Tag (www.r-tag.com). Their scheduler supports data driven reports. They have also a free community edition just for Crystal reports, which may support this feature too.

Replacing Crystal Report data source with store procedure

I used to create crystal reports by going into database expert, selecting tables and specifying the link manually. As I get a bit more comfortable with CR, there is a need for me to put the underlying SQL query into a store procedure to provide data to the report. But doing so will require me to rewrite the whole report which is time consuming.
So, my question is if there are any guru in the community that could and/or have tried to replace the underlying SQL (created by manually add table and links) with a store procedure or cmd without having to rewrite the whole report? I would love to get some hint of how to do that as I have a couple dozen of reports that need "adjustments" and time does not permit me to rewrite them all.
My Crystal Report versions are CR 2008 and CR 2012.
Thank you in advance.
In case you can use an existing software : this feature is available in a free Crystal reports viewer. Here is the documentation, which explains the use :
http://www.r-tag.com/Documents/RTag%20DataSource.pdf
... and here is where you can get your free license:
http://www.r-tag.com/Pages/FreeCrystalReportsViewer.aspx
Crystal does an absolutely horrible job of migrating from many tables to a single DB object, be it a Command or stored procedure.
You might be able to Database | Set datasource location... to map your SP to one of the many tables in the report (choose the one that has the most fields in use); I've never been able to get this feature to work trying to map a Command to a table.
'Best practice' for a really-poor 'feature' set:
create a formula field for each field that will be on the canvas, but isn't grouped (these fields won't be removed when you change datasources)
add the Command to the report; link tables if desired
manually switch grouping, record-selection formula, sorting, etc.

Export data from datafile to excel format

Background:
Our company uses Sage Line 50 as our accounting software. We generate all of our Sales Orders from this program. We also use MS Access 2010 to store order information and generate our internal shop paperwork and packing slips.
The Problem:
Data entry redundancy. We enter information from Customer Purchase Orders into our Sage software, and then enter the same information into the Access database.
What I am looking for:
A solution that will let me export raw Sales Order data after creating in Sage into MS-Access
What I have tried:
The export process from Sage only allows CSV exports, and is a manual process that cannot be automated at all. I am able to produce this export and then run an append query that will import that data into the Access data, but I am looking to automate this process, perhaps on a daily basis. I have looked into using Crystal Reports (packaged with Sage, which I am told can run automated reports and save in an MS Excel format), but I do not know how to navigate the data files to find the specific sales data I am looking for.
The guys are correct - easiest way to do this would be to use the ODBC driver, however, you must run the correct SQL query and ensure you join the Purchase Order table to the Order item table using the correct fields or it will not return the right data.
One issue you will have is that you only want to pull through the most recent transactions so use a query like this to do that your query would look something like this:-
SELECT *, PURCHASE_LEDGER.ACCOUNT_REF, PURCHASE_LEDGER.E_MAIL FROM PURCHASE_ORDER, PURCHASE_LEDGER INNER JOIN POP_ITEM ON PURCHASE_ORDER.ORDER_NUMBER = POP_ITEM.ORDER_NUMBER WHERE PURCHASE_LEDGER.ACCOUNT_REF = PURCHASE_ORDER.ACCOUNT_REF AND RECORD_MODIFY_DATE >= '2013-04-03 00:00:00'
Alternatively there are many one-click commercial solutions to this problem - do a search on Google for "Sage Integration" and you'll find various suppliers who produce products that will do this for you
What you are trying to do can be automated as I've done it for the last company that I worked for (exporting sales orders and invoices to CSV and to Excel). However, the downer is that it requires the Sage SDK which costs £1500.

How to display individual reports in cyrtal reports

I am new in using crystal reports. I already tried to create a report but it doesn't look like what I wanted. What I want to create is an individual report of each employees where it displays their information like name, age, birth date, address, etc.. But then, crystal reports will display all reports of each employees in a single document. Is there any way that I could make each employees information to display in a single document like I could use an arrow to navigate to next employee information if I want to see their report?
By the way, I used Microsoft SQL R2 in getting data for my reports. Thanks.
hi the question is not clear..as my knowledge i suggest..that if you design
the crystal report of one employee in single document and attach stored procedure to that
report your problem is solved ..you will get every employee details in a serial order this is the answer if i understand your question correctly,if not can you please repeat the questi
on with changes which i can understand
thank you