cross tab need to display the data ytd grouping by month
Selecting data fields from 2 databases?
I have 2 databases (DB1 and DB2).
I would like to select Donor_Draw.Visit_ID from DB2
with a left outer join to DB1.Donor_Queue on DB1.Donor_Queue.visit_id = DB2.Donor_Draw.Visit_ID.
I have tried...
Select
db1.donor_queue.visit_id,
db2.donor_draw.visit_id
From db1.donor_queue
inner join db2.donor_draw on db1.donor_queue.visit_id=db2.donor_draw.visit_id
I have not had success using this syntax.
Please advise.
CJB
Crystal Report 11 export java.lang.IndexOutOfBoundsException Error code:-2147467259
Hi there,
I have a trouble when exporting crystal report to PDF connecting SQL Server.
Crystal Report designer can see the address with "埗".
The problem is when it reads a nvarchar string (in this case, a Chinese character e.g. "埗" in ADDRESS field),
I tried different fonts, e.g. hkscs, unicode, hkscs+extB, but still it gives out following error:
Exception in thread "main" com.crystaldecisions.sdk.occa.report.lib.ReportSDKExc
eption: java.lang.IndexOutOfBoundsException---- Error code:-2147467259 Error cod
e name:failed
at com.crystaldecisions.sdk.occa.report.application.PrintOutputControlle
r.export(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputControlle
r.export(Unknown Source)
at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown
Source)
at com.azeus.reports.ReportGenerator.doExportBatch(ReportGenerator.java:
388)
at hk.gov.td.odlr.bd.BaseReportBd.export(BaseReportBd.java:84)
Here is my query in my report:
select
CASE address_type WHEN 'R' THEN res_master_lang_ind ELSE post_master_lang_ind END AS CHI_ENG,
address AS ADDRESS,
ISNULL(valid_legal_id,'-') AS VALID_LEGAL_ID,
ISNULL(appl_name,'-') AS APPL_NAME,
trans_ref_no AS TRANS_REF_NO,
CASE address_type WHEN 'R' THEN 'Residential' ELSE 'Postal' END AS ADDRESS_TYPE
from renewal_app a, ADDR_ERROR_QUEUE b
where a.app_id = b.app_id
and b.printed_ind = 'N'
order by trans_ref_no
However, if Chinese character in ADDRESS is in lower order with only e.g. "九龍深水" and if I use convert function into varchar it does export.
select
CASE address_type WHEN 'R' THEN res_master_lang_ind ELSE post_master_lang_ind END AS CHI_ENG,
convert(varchar(500), address collate Chinese_Taiwan_Stroke_CI_AS) AS ADDRESS,
ISNULL(valid_legal_id,'-') AS VALID_LEGAL_ID,
ISNULL(appl_name,'-') AS APPL_NAME,
trans_ref_no AS TRANS_REF_NO,
CASE address_type WHEN 'R' THEN 'Residential' ELSE 'Postal' END AS ADDRESS_TYPE
from renewal_app a, ADDR_ERROR_QUEUE b
where a.app_id = b.app_id
and b.printed_ind = 'N'
order by trans_ref_no
When I convert it into nvarchar, Crystal Report designer can see the "埗" but export also fail as above.
select
CASE address_type WHEN 'R' THEN res_master_lang_ind ELSE post_master_lang_ind END AS CHI_ENG,
convert(nvarchar(500), address collate Chinese_Taiwan_Stroke_CI_AS) AS ADDRESS,
ISNULL(valid_legal_id,'-') AS VALID_LEGAL_ID,
ISNULL(appl_name,'-') AS APPL_NAME,
trans_ref_no AS TRANS_REF_NO,
CASE address_type WHEN 'R' THEN 'Residential' ELSE 'Postal' END AS ADDRESS_TYPE
from renewal_app a, ADDR_ERROR_QUEUE b
where a.app_id = b.app_id
and b.printed_ind = 'N'
order by trans_ref_no
My system: Windows 2012 Server R2
java:
openjdk version "1.7.0-u80-unofficial"
OpenJDK Runtime Environment (build 1.7.0-u80-unofficial-b32)
OpenJDK 64-Bit Server VM (build 24.80-b11, mixed mode)
Crystal Report version: 11.5
Any idea?
Thanks,
Eric
Data refresh on reprint
I have a c# application that uses a report to print a document, if a mistake is discovered in the data they can edit the data and reprint the document. The updated data appears on the screen but the document does not reflect the updated data unless we close the form and reopen, reselect the record and then reprint. In the report the data comes from a view in the database. I have checked that the store data is not checked is there any other setting that will help refresh the data?
ConnectionInfo ThisConnection = new ConnectionInfo();
ThisConnection.ServerName = witSsetiings1.MyConnection.ServerName;
ThisConnection.DatabaseName = witSsetiings1.MyConnection.DatabaseName;
ThisConnection.IntegratedSecurity = witSsetiings1.MyConnection.IntegratedSecurity;
ThisConnection.UserID = witSsetiings1.MyConnection.UserID;
ThisConnection.Password = witSsetiings1.MyConnection.Password;
TableLogOnInfo MyLogOn = new TableLogOnInfo();
foreach (Table Mytable in wt_cert.Database.Tables) // make point to correct report
{
MyLogOn = Mytable.LogOnInfo;
MyLogOn.ConnectionInfo = ThisConnection;
MyLogOn.ReportName = witSsetiings1.certCertified;
Mytable.ApplyLogOnInfo(MyLogOn);
}
wt_cert.SetParameterValue("PK_certificate", pk_cert);
wt_cert.SetParameterValue("P_Only", p_only);
wt_cert.PrintOptions.PrinterName = witSsetiings1.printerCert;
int copiesCert = 1;
if (this.TxtCert_copies.Text.Equals("").Equals(true)) // added true 021914
{
copiesCert = Convert.ToInt16(witSsetiings1.copiesCertified);
}
else
{
copiesCert = Convert.ToInt16(this.TxtCert_copies.Text);
}
wt_cert.PrintToPrinter(copiesCert, false, 0, 0);
How to set line thickness in line chart?
There's really no upper bound on how many series might be displayed on my graph, but say I'm graphing 52 series.
Is there a way to set the thickness of the lines without generating a graph of 52 things and settting the thicknesses individually?
What I'm doing now: preview the report with parameter that will make for a lot of series. Then click each series, set the width, then when done tell it to apply the customization to all graphs. Is there a speedier way?
Thanks
Crystal Reports Mailing Address Format Issue
I have an issue that no one has been able to resolve since October and I would like to get your thoughts on it. Basically in a nut shell in QLS I am able to run a Crystal mailing report and the labels show up correctly in three columns and the formatting is accurate. This is true for some other co workers. However, other people see the mailing labels with a skewed format in only two columns even though there is room for a third column it is left blank. I have tried everything, clearing profiles, resolution, logging directly on to the servers, etc....
The crazy thing is that it works for my on my computer but if someone else logs into my computer it doesn’t work and if I log onto a user that it didn't work for it will not work for me then. I was thinking maybe it was a profile issue or a citrix issue but that doesn’t seem to be the case.
Text moves from the original design
Crystal Reports XI Release 2 SP6 on Windows 7 Not Using MICR E-13B Fonts.
I was wondering if anyone might be able to give me some insights in troubleshooting why Crystal Reports is not using the MICR E-13B fonts that have been tested to work from MS Word in an installation of the Universal PCL 5 Troy driver for an HP 8000 MICR printer on a Windows 7 computer.
Technical information:
Windows 7 32bit O/S
Troy 8000 MICR (HP) printer on LPT1
Crystal Reports 11.5.12.1838
PeopleSoft AP system (version unknown at this time but I can gather that info if needed)
E-13B font & 12 pt is present and selected in Word and Crystal Reports
Conversion of several 2008 RPTs to 2008
We are using Client Tools For SAP Crystal Server 2013 SP06 and this tool uses locally saved RPT files (external from the crystal and not saved on crystal software)
I am trying to find a way to convert several RPT files (crystal report files) a same time from 2008 to 2013.
Currently, I am opening 2008 RPT on 2013 developer tool and saving them to convert them to 2013 rpt. I am doing this one rpt at a time.
Any suggestion or tool to convert more than one RPT files at a time.
Converting to date format excluding non-date format entries?
Hello,
I have somewhat of a bundled question. First things first, I have a string date(QUOTED_DATE) that looks like this "mm/dd/yyyy" that I need to convert to a date in order to use datediff to figure out how many days have past since a part was received and quoted. The recieved date is a date format but the quoted date is a string that looks like it's a date. The issue I am coming across is that in the QUOTED_DATE there are blanks and "N/A" so from what I read converting to date wont work unless I exclude those values, which I don't know how to do.
Any help is always appreciated.
Create summary of changes in Report Footer
I have been trying to add selection formula fields to the Report Footer which compares field values from select records in the Detail. I have used a number of formulas/functions to attempt the selection and comparison of specific field values from specific records including the Maximum function, So far none has worked to give me what is needed. Below is sample extract from an Excel spreadsheet that I need to duplicate in Crystal Reports 2013. Could someone please advise me on how to select field values from a specific record to subtract the value of same field in another record?
Week | Total 'Hybrid' CASES | AA CASES IN PAID RESID. | AA CASES IN NO PAY RESID. | NON AA CASES IN NO PAY RESID. | 0267/7267 CASES IN RESID. | OTHER TSCs Paying Non AA Cases IN RESID. | Shelter Cases | QA IN RESID. | QA in Resid w/o Shelter | BUDGETS IN RESID. | BUDGETS w/o Shelter |
01/08/16 | 1,193 | 18 | 0 | 3 | 0 | 2 | 62 | 1,193 | 1,131 | 1,188 | 1,128 |
01/15/16 | 1,195 | 19 | 0 | 4 | 0 | 3 | 63 | 1,195 | 1,132 | 1,188 | 1,128 |
01/22/16 | 1,196 | 19 | 0 | 3 | 0 | 3 | 66 | 1,196 | 1,130 | 1,190 | 1,127 |
01/29/16 | 1,206 | 18 | 0 | 3 | 0 | 3 | 65 | 1,206 | 1,141 | 1,200 | 1,138 |
02/05/16 | 1,181 | 19 | 0 | 3 | 0 | 3 | 63 | 1,181 | 1,118 | 1,175 | 1,115 |
02/12/16 | 1,197 | 19 | 0 | 3 | 0 | 3 | 66 | 1,197 | 1,131 | 1,191 | 1,128 |
02/19/16 | 1,196 | 21 | 0 | 1 | 0 | 3 | 61 | 1,196 | 1,135 | 1,192 | 1,134 |
Change since last report | |||||||||||
-1 | 2 | 0 | -2 | 0 | 0 | -5 | -1 | 4 | 1 | 6 | |
Change since 06/30/15 | |||||||||||
-36 | 8 | 0 | -3 | 0 | 1 | -30 | -35 | -6 | -34 | -3 | |
Change since 06/30/14 | |||||||||||
-153 | 13 | 0 | -9 | 0 | 2 | -75 | -152 | -77 | -146 | -69 |
Use of Crystal Reports 2011 with Business Objects Server 4.1 sp06
Were in testing phase right now. We have updated a 4.0 testing server to 4.1 spo6 fp3. On a side note, best upgrade we have had to to date.
Crystal Reports 2013 is certified for 4.1 SP06 but I'm wondering if we can use Crystal Reports 2011 and Business View Manager 4.0.
I have to admit that so far, I have not had any issues using these client tools this way, Have not tried the report upload wizard yet.
Were wanting to upgrade to Crystal Reports 2013 but only after upgrading our servers. Were in a time crunch to do it this way.
My gut tells me that we should not have a problem but wondering if others have tried this? This is for Crystal Reports 2011, Busness View Manager 4.0 and Report Upload Wizard 4.0 to work with Business Objects Server 4.1.
Regards
Suppressing group with parameters
Hi experts,
I'm trying to optimise my reports be streamlining 2 reports into 1. First report contains one group with no details (details section suppressed), while the second report contains two groups and details (2nd group and details sections hidden with drill down).
Both reports are identical, but because of the second report's 2nd grouping, some of the items will be left out of the first grouping if compared both reports side by side.
I tried using selector parameters to suppress the 2nd group and detail section; it work on a functional level, but the missing info persist. I suspect it is due to the 2nd group, that despite being suppressed, the data is still being filtered.
Is there a way to "deactivate" the 2nd group unless the user select it from parameter selection?
Regards,
Joseph
Using tables from 2 databases with Command SQL
I am attempting to use fields from tables that are located in 2 different databases.
I used the select statement seen below and got the error seen below.
Please provide any suggestions.
This must be done in a SQL command statement (do to size of the tables)
Is there a way to confirm the proper names of my databases for use in this syntax?
Is there a better syntax to use?
DDPR and EDPR are the database names.
DHQAPP and BBAPP are the dbo or tbl users.
Do I need to identify the server as in SERVER06/DDPR?
Any help will be greatly appreciated.
Chuck
Making two fields look back last 7 days.
I have this code:
{CRT_LOG_ALL\.CUSTOMER_NO} = {?Customer Name} and
datediff('d',{CRT_LOG_ALL\.ACTUAL_SHIP_DATE},currentdate)<8
{CRT_LOG_ALL\.SO_RELEASE_NO} = "1"
to show the actual ship date to go back 7 days.
I tried this code:
{CRT_LOG_ALL\.CUSTOMER_NO} = {?Customer Name} and
datediff('d',{CRT_LOG_ALL\.ACTUAL_SHIP_DATE},currentdate)<8 and
datediff('d',{CRT_LOG_ALL\.QUOTED_DATE},currentdate)<8 and
{CRT_LOG_ALL\.SO_RELEASE_NO} = "1"
When I also tried that code things get wonky and it doesn't work correctly. It shows the actual_ship_date go back too far and then quoted_date shows a bunch of blanks. What I'm hoping will happen is that ACTUAL_SHIP_DATE will show results from the past 7 days and QUOTED_DATE will also do the same without impacting the either. So when I made the code like this:
I have the days on a graph to show how much time has past from the received date to the ship date and from the received date to the quoted date.
I am trying to do the same now with my QUOTED_DATE and it seems to not be working since I now have a decent amount of blanks. What I'm essentially trying to do is use both the ACTUAL_SHIP_DATE and QUOTED_DATE to show independent subtractions from REFERENCE_DATE
It might help to know that QUOTED_DATE was a string and is converted into a date.
It might also help to know that QUOTED_DATE was a string and converted into a date.
Thanks for the help.
How to display a memo field in Crystal Reports
I am connected to a data source in uniPoint via ODBC (RDO) and cannot display contents of several memo fields I need data from.
Crystal Report 11 export java.lang.IndexOutOfBoundsException Error code:-2147467259
Hi there,
I have a trouble when exporting crystal report to PDF connecting SQL Server.
Crystal Report designer can see the address with "埗".
The problem is when it reads a nvarchar string (in this case, a Chinese character e.g. "埗" in ADDRESS field),
I tried different fonts, e.g. hkscs, unicode, hkscs+extB, but still it gives out following error:
Exception in thread "main" com.crystaldecisions.sdk.occa.report.lib.ReportSDKExc
eption: java.lang.IndexOutOfBoundsException---- Error code:-2147467259 Error cod
e name:failed
at com.crystaldecisions.sdk.occa.report.application.PrintOutputControlle
r.export(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputControlle
r.export(Unknown Source)
at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown
Source)
at com.azeus.reports.ReportGenerator.doExportBatch(ReportGenerator.java:
388)
at hk.gov.td.odlr.bd.BaseReportBd.export(BaseReportBd.java:84)
Here is my query in my report:
select
CASE address_type WHEN 'R' THEN res_master_lang_ind ELSE post_master_lang_ind END AS CHI_ENG,
address AS ADDRESS,
ISNULL(valid_legal_id,'-') AS VALID_LEGAL_ID,
ISNULL(appl_name,'-') AS APPL_NAME,
trans_ref_no AS TRANS_REF_NO,
CASE address_type WHEN 'R' THEN 'Residential' ELSE 'Postal' END AS ADDRESS_TYPE
from renewal_app a, ADDR_ERROR_QUEUE b
where a.app_id = b.app_id
and b.printed_ind = 'N'
order by trans_ref_no
However, if Chinese character in ADDRESS is in lower order with only e.g. "九龍深水" and if I use convert function into varchar it does export.
select
CASE address_type WHEN 'R' THEN res_master_lang_ind ELSE post_master_lang_ind END AS CHI_ENG,
convert(varchar(500), address collate Chinese_Taiwan_Stroke_CI_AS) AS ADDRESS,
ISNULL(valid_legal_id,'-') AS VALID_LEGAL_ID,
ISNULL(appl_name,'-') AS APPL_NAME,
trans_ref_no AS TRANS_REF_NO,
CASE address_type WHEN 'R' THEN 'Residential' ELSE 'Postal' END AS ADDRESS_TYPE
from renewal_app a, ADDR_ERROR_QUEUE b
where a.app_id = b.app_id
and b.printed_ind = 'N'
order by trans_ref_no
When I convert it into nvarchar, Crystal Report designer can see the "埗" but export also fail as above.
select
CASE address_type WHEN 'R' THEN res_master_lang_ind ELSE post_master_lang_ind END AS CHI_ENG,
convert(nvarchar(500), address collate Chinese_Taiwan_Stroke_CI_AS) AS ADDRESS,
ISNULL(valid_legal_id,'-') AS VALID_LEGAL_ID,
ISNULL(appl_name,'-') AS APPL_NAME,
trans_ref_no AS TRANS_REF_NO,
CASE address_type WHEN 'R' THEN 'Residential' ELSE 'Postal' END AS ADDRESS_TYPE
from renewal_app a, ADDR_ERROR_QUEUE b
where a.app_id = b.app_id
and b.printed_ind = 'N'
order by trans_ref_no
My system: Windows 2012 Server R2
java:
openjdk version "1.7.0-u80-unofficial"
OpenJDK Runtime Environment (build 1.7.0-u80-unofficial-b32)
OpenJDK 64-Bit Server VM (build 24.80-b11, mixed mode)
Crystal Report version: 11.5
Any idea?
Thanks,
Eric
Weird Rounding behavior
Hi,
I’m using Crystal Reports 2008 version 12.0.0.683. I try to round the result of a multiplication in a formula with 2 decimals. It works very well except if it gets on the limit.
If I try to round 13.9651, it gives me 13.97. But, if I try to round 13.965, it gives me 13.96.
Here is the Code:
whileprintingrecords;
Numbervar nTaxVal;
Shared Numbervar gTotal;
nTaxVal:=Round(({TAX_PLAN_ITEM.TAX_RATE} * gTotal), 2)
nTaxVal
Results :
TAX_PLAN_ITEM.TAX_RATE( 0.09975) *gTotal (140) = 13.965
Round (TAX_PLAN_ITEM.TAX_RATE( 0.09975) *gTotal (140), 2) = 13.96
Round (13.965, 2) = 13.97
Without the rounding, it displays 13.965.
Can someone give me a workaround?
Best regards,
Hugo St-Louis
Cover Sheet on Invoice
Hi,
I created an invoice in Crystal 2011 that uses the Report Header as a Cover page. How can I get this Cover page to print if the user prints more than one invoice at a time ?
They need a cover page for each invoice.
Thanks,
Debbie
Save password for opening .rpt within crystal reports
I have Crystal Reports connected to a database on a server in our organization. When I created the DSN to connect it had me provide database credentials and it tested ok. I can open any .rpt created but upon doing so it always asks for the DB username and password. This is not much of a hassle for me as I have access to the DB but for other users who are going to be grabbing this report this will not work for them and I would prefer that it did not prompt just to open/read a report.
I have been doing research and tried to implement a couple fixes such as making a File DSN I could share with the credentials stores into it and then connecting with it in Crystal Reports or adding a connection string with my credentials but I do not get any errors just prompted for the username and password as If i had not made any changes.
I am slightly stuck as how to move forward and would greatly appreciate any assistance or direction.
I am not loading this into a webpage but the reports will be opened from a application called MiSys if there is another workaround provided by that program.