Populating a Crystal Report from XML data

Hi,
I want to populate a Crystal Report using a XML data structure. Below I have explained what Iu2019m trying to do in detail,
u2022 First I will create a Crystal Report using Crystal Report XI R2 designer  by connecting to a Oracle database using a native Oracle connection (not ODBC or JDBC)
u2022 Then I want to write a Java application using CR XI R2 JRC SDK to open this report
u2022 Then to run and populate this report using a XML data structure (which I have separately in a disk location. XSD too is available in disk)
u2022 Then to export this report with data to either PDF or RPT file with saved data in to disk.
The questions I have are,
1. Is this possible to do in away?
2. If so, can you please provide me with a sample code for doing this? I tried some of the other threads in the forum but some had broken links.
3. Do the xml and the xsd needs to be in a special format?
4. Is there any other configuration setting I should do?
Hope you can help me. Thank you in advance.
Regards,
Chanaka

Hi Chinmay,
Thank you for the prompt answer. I have gone through this before. It explains on how to create a report using a xml database from CR designer. What I want to do is to set the data source programmatically to a xml date source from the code. I didnu2019t find anything like that. Is it the same way as setting the database connection information?
Also another question I have is how does a report with two tables work? Say I have a master u2013 detail report (order and order lines). The master part is taken from one table (order_tab) and the detail part is taken from another (order_detail_tab). Do I need to have 2 xmls or is one structured xml sufficient? How will the same work if I have the detail section in a sub-report? Will it work with one or do I need to have two?
Regards,
Chanaka

Similar Messages

  • Crystal reports from XML data source in 'CR in Eclipse(CR4E)'.

    I'm trying to generate the crystal reports from XML file using 'eclipse in crystal reports' through programatically. It had thrown this error.                                                                               
    log4j:WARN No appenders could be found for logger (com.businessobjects.reports.sdk.JRCCommunicationAdapter).
    log4j:WARN Please initialize the log4j system properly.
    Exception in thread "main" com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Error loading database connector.  The class 'com.crystaldecisions.reports.queryengine.driverImpl.DriverLoader' could not be accessed.---- Error code:-2147467259 Error code name:failed
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(Unknown Source)
         at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
         at com.businessobjects.sdk.erom.jrc.a.a(Unknown Source)
         at com.businessobjects.sdk.erom.jrc.a.execute(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ds.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.an.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.b0.if(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.b0.b(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.bb.int(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.UndoUnitBase.performDo(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.UndoUnitBase.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.byte(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.addTable(Unknown Source)
         at com.businessobjects.samples.CreateXMLInlineSchemaReport.main(CreateXMLInlineSchemaReport.java:50)
    Caused by: com.crystaldecisions.reports.common.QueryEngineException: Error loading database connector.  The class 'com.crystaldecisions.reports.queryengine.driverImpl.DriverLoader' could not be accessed.
         at com.crystaldecisions.reports.queryengine.Connection.ur(Unknown Source)
         at com.crystaldecisions.reports.queryengine.Connection.uB(Unknown Source)
         at com.crystaldecisions.reports.queryengine.Connection.br(Unknown Source)
         at com.crystaldecisions.reports.queryengine.Connection.bs(Unknown Source)
         at com.crystaldecisions.reports.queryengine.Connection.t1(Unknown Source)
         at com.crystaldecisions.reports.queryengine.Table.u7(Unknown Source)
         at com.crystaldecisions.reports.dataengine.datafoundation.AddDatabaseTableCommand.new(Unknown Source)
         at com.crystaldecisions.reports.common.CommandManager.a(Unknown Source)
         at com.crystaldecisions.reports.common.Document.a(Unknown Source)
         at com.businessobjects.reports.sdk.requesthandler.f.a(Unknown Source)
         at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.byte(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(Unknown Source)
         ... 24 more
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         ... 36 more
    Caused by: com.businessobjects.reports.jdbinterface.common.DBException: Failed to load the database connector 'crdb_xml.dll'.
         at com.crystaldecisions.reports.queryengine.driverImpl.DriverLoader.loadDriver(Unknown Source)
         ... 40 more
    Edited by: Kondal Kolipaka on May 29, 2009 6:25 AM

    Hi,
    1) Open the Crystal report with XML datasource connectivity in the Crystal Report designer.
    2) Click on File ->Report Options.
    3) Uncheck the Verify On First Refresh box.
    4) Save the Crystal report.
    5) Open this Crystal report in Crystal Report for Eclipse designer and try Executing it again.
    Please let me know the results.
    Thanks,
    Neeraj

  • PDF Report from XML Data

    Hi,
    I'm working on one BI report for which XML data has been provided.This report needs to get AP check details (XML Data) and print them on checks
    Based on xml data I'm trying to create RTF layout from BI desktop MS word add in
    I'm loading xml data using insert field option pulling all required fields into RTF layout.
    Here I faced Few issues,
    1) in xml data I've more than one column with the same name for ex :
    <Name> 23 </Name>
    <Value>35</Value>
    again I'm having another column with the same name.Though I'm pulling required column it's showing different value
    2) Another issue is I'm pulling values under particular node it's not displaying right value
    3)How to create group or repeating groups based on XML data for ex: checks needed to be printed based on supplier no or check no how to set group by for this ?
    4) Right now my layout displays only one record eventhough more than one record is there in xml data?.
    Thanks,
    Kiran

    Here's sample XML Data
    Based on this data I need to develop RTF Template :
    - <OutboundPaymentInstruction>
    - <PaymentInstructionInfo>
    <InstructionReferenceNumber>11111</InstructionReferenceNumber>
    <FormatProgramRequestID>23456789</FormatProgramRequestID>
    <InstructionCreationDate>2012-04-23T13:41:07</InstructionCreationDate>
    - <MultiOrgAccessControl>
    <HasBlockedData>N</HasBlockedData>
    </MultiOrgAccessControl>
    - <InstructionStatus>
    <Code>CREATED_READY_FOR_FORMATTING</Code>
    <Meaning>Created - Ready for Formatting</Meaning>
    </InstructionStatus>
    <ProcessingType>PRINTED</ProcessingType>
    <ProcessType>STANDARD</ProcessType>
    <UserAssignedRefCode>APR23</UserAssignedRefCode>
    <BankAssignedRefCode />
    - <PaymentSequence>
    <SequenceName />
    <LastValue />
    </PaymentSequence>
    - <PaymentSequence>
    <SequenceName />
    <LastValue />
    </PaymentSequence>
    - <PaymentSequence>
    <SequenceName />
    <LastValue />
    </PaymentSequence>
    - <BankInstruction>
    <BankInstructionCode />
    <Meaning />
    <FormatValue />
    </BankInstruction>
    - <BankInstruction>
    <BankInstructionCode />
    <Meaning />
    <FormatValue />
    </BankInstruction>
    <BankInstructionDetails />
    <PaymentTextMessage />
    <PaymentTextMessage />
    <RegulatoryReportingOption>NO_DECLARATIONS</RegulatoryReportingOption>
    <CardIssuerFileSequenceNo />
    - <PaymentSystemAccount>
    <AccountName />
    </PaymentSystemAccount>
    <Notes />
    </PaymentInstructionInfo>
    - <PaymentProcessProfile>
    <PaymentProcessProfileInternalID>112</PaymentProcessProfileInternalID>
    <PaymentProcessProfileName>ABC Check Payment</PaymentProcessProfileName>
    <LogicalGroupingMode />
    <BatchBookingFlag />
    </PaymentProcessProfile>
    - <PaymentFormat>
    <PaymentFormatInternalID>IBY_PAY_EFT</PaymentFormatInternalID>
    <PaymentFormatName>1/2 Inch Tape Format</PaymentFormatName>
    </PaymentFormat>
    - <CheckFormatInfo>
    <PaymentDocumentName>001_Check</PaymentDocumentName>
    - <PaperStockType>
    <Code>PRENUMBERED</Code>
    <Meaning>Prenumbered Stock</Meaning>
    </PaperStockType>
    </CheckFormatInfo>
    - <InstructionTotals>
    <PaymentCount>1</PaymentCount>
    - <TotalPaymentAmount>
    <Value>35</Value>
    - <Currency>
    <Code>USD</Code>
    </Currency>
    </TotalPaymentAmount>
    </InstructionTotals>
    - <InstructionGrouping>
    - <PaymentCurrency>
    <Code>USD</Code>
    <Name>US Dollar</Name>
    </PaymentCurrency>
    - <Payer>
    <PartyInternalID>2234567</PartyInternalID>
    <PartyNumber>12345344</PartyNumber>
    <Name>Abc Inc US OU/LE</Name>
    - <PartyType>
    <Code />
    <Meaning />
    </PartyType>
    <TaxRegistrationNumber />
    <LegalEntityRegistrationNumber>S11234</LegalEntityRegistrationNumber>
    <LegalEntityInternalID>114</LegalEntityInternalID>
    <LegalEntityName>Abc Inc US OU/LE</LegalEntityName>
    - <Address>
    <AddressInternalID>2341567</AddressInternalID>
    <AddressLine1>123 Meadow Rd</AddressLine1>
    <AddressLine2>P.O. Box 10000</AddressLine2>
    <AddressLine3 />
    <City>Fairfax</City>
    <County>Fairfax</County>
    <State>VA</State>
    <Country>US</Country>
    <ISO3DigitCountry>USA</ISO3DigitCountry>
    <CountryName>United States</CountryName>
    <PostalCode>20001-1111</PostalCode>
    <PreFormattedConcatenatedAddress>123 Meadow Rd, P.O. Box 10000, Fairfax, VA 20001-1111</PreFormattedConcatenatedAddress>
    <PreFormattedMailingAddress>123 Meadow Rd, P.O. Box 10000, Fairfax, VA 20001-1111</PreFormattedMailingAddress>
    <AddressName>NA-US-VA-Fairfax 123MDR</AddressName>
    </Address>
    - <ContaVAInfo>
    - <ContaVALocators>
    <PhoneNumber />
    <FaxNumber />
    <EmailAddress />
    <Website />
    </ContaVALocators>
    </ContaVAInfo>
    </Payer>
    - <PayerOrganization>
    <OrganizationInternalID>114</OrganizationInternalID>
    - <OrganizationType>
    <Code>OPERATING_UNIT</Code>
    <Meaning>Operating Unit</Meaning>
    </OrganizationType>
    <OrganizationName>Abc Inc US OU/LE</OrganizationName>
    </PayerOrganization>
    - <BankAccount>
    <BankAccountInternalID>10067</BankAccountInternalID>
    <BankName>HSBC</BankName>
    <AlternateBankName />
    <BankNumber />
    <BranchInternalID>69937446</BranchInternalID>
    <BranchName>HSBC - 001</BranchName>
    <AlternateBranchName />
    <BranchNumber />
    <BankAccountName>001 - CHAP - HSBC</BankAccountName>
    <AlternateBankAccountName />
    <BankAccountNumber>1178657</BankAccountNumber>
    <MaskedBankAccountNumber>XXXXXX8657</MaskedBankAccountNumber>
    <UserEnteredBankAccountNumber>1178657</UserEnteredBankAccountNumber>
    <BankAccountSuffix />
    <SwiftCode />
    <IBANNumber />
    <CheckDigits />
    - <BankAccountType>
    <Code />
    <Meaning />
    </BankAccountType>
    - <BankAccountCurrency>
    <Code>USD</Code>
    </BankAccountCurrency>
    - <BankAddress>
    <AddressInternalID />
    <AddressLine1 />
    <AddressLine2 />
    <AddressLine3 />
    <AddressLine4 />
    <City />
    <County />
    <State />
    <Province />
    <Country>US</Country>
    <ISO3DigitCountry>USA</ISO3DigitCountry>
    <CountryName>United States</CountryName>
    <PostalCode />
    <PreFormattedConcatenatedAddress />
    <PreFormattedMailingAddress />
    </BankAddress>
    - <FederalBankAccountInfo>
    <FederalRFCIdentifier />
    <FederalAgencyLocationCode />
    <FederalAbbreviatedAgencyCode />
    <FederalEmployerIdentificationNumber />
    </FederalBankAccountInfo>
    - <EFTUserNumber>
    <AccountLevelEFTNumber />
    <BranchLevelEFTNumber />
    </EFTUserNumber>
    </BankAccount>
    - <FunVAionalCategory>
    <Code>PAYABLES_DISB</Code>
    <Meaning>Payables Disbursements</Meaning>
    </FunVAionalCategory>
    </InstructionGrouping>
    - <OutboundPayment>
    - <PaymentSourceInfo>
    <ApplicationInternalID>200</ApplicationInternalID>
    <ApplicationName>SQLAP</ApplicationName>
    <PaymentServiceRequestID>24</PaymentServiceRequestID>
    - <FunVAionalCategory>
    <Code>PAYABLES_DISB</Code>
    <Meaning>Payables Disbursements</Meaning>
    </FunVAionalCategory>
    - <PayerOrganization>
    <OrganizationInternalID>114</OrganizationInternalID>
    - <OrganizationType>
    <Code>OPERATING_UNIT</Code>
    <Meaning>Operating Unit</Meaning>
    </OrganizationType>
    <OrganizationName>Abc Inc US OU/LE</OrganizationName>
    </PayerOrganization>
    <EmployeePaymentFlag>N</EmployeePaymentFlag>
    </PaymentSourceInfo>
    - <PaymentNumber>
    <DocCategory />
    <SequenceName />
    <SequenceValue />
    <PaymentReferenceNumber>6</PaymentReferenceNumber>
    <LogicalGroupReference />
    <CheckNumber>1112223334</CheckNumber>
    </PaymentNumber>
    <PaymentDate>2011-12-31</PaymentDate>
    <PaymentDueDate />
    <MaturityDate />
    - <PaymentStatus>
    <Code>Instruction_CREATED</Code>
    <Meaning>Instruction Created</Meaning>
    </PaymentStatus>
    - <Payee>
    <PartyInternalID>69929643</PartyInternalID>
    <PartyNumber>9755071</PartyNumber>
    <Name>MUNICIPAL REVENUE DIV</Name>
    <TaxRegistrationNumber />
    <LegalEntityRegistrationNumber />
    <AlternateName>5924</AlternateName>
    <SupplierNumber>3244</SupplierNumber>
    - <Address>
    <AddressInternalID>14791</AddressInternalID>
    <AddressLine1>PO BOX 1155</AddressLine1>
    <AddressLine2 />
    <AddressLine3 />
    <AddressLine4 />
    <City>EDISON</City>
    <County />
    <State>NJ</State>
    <Country>US</Country>
    <ISO3DigitCountry>USA</ISO3DigitCountry>
    <CountryName>United States</CountryName>
    <PostalCode>08818-1122</PostalCode>
    <AddressName>REP-1122</AddressName>
    <Addressee />
    <AlternateAddressName />
    <PreFormattedConcatenatedAddress>PO BOX 1155, , , EDISON, NJ, US, 08818-1122</PreFormattedConcatenatedAddress>
    <PreFormattedMailingAddress>PO BOX 1155, , , EDISON, NJ, US, 08818-1122</PreFormattedMailingAddress>
    </Address>
    - <ContaVAInfo>
    - <ContaVALocators>
    <PhoneNumber />
    <FaxNumber />
    <EmailAddress />
    <Website />
    </ContaVALocators>
    </ContaVAInfo>
    <SupplierSiteCode>WIRE 2</SupplierSiteCode>
    </Payee>
    - <TradingPartner>
    <PartyInternalID>69929643</PartyInternalID>
    <PartyNumber>9755071</PartyNumber>
    <Name>MUNICIPAL REVENUE DIV</Name>
    <TaxRegistrationNumber />
    <LegalEntityRegistrationNumber />
    <AlternateName>5924</AlternateName>
    <SupplierNumber>3244</SupplierNumber>
    - <ContaVAInfo>
    - <ContaVALocators>
    <PhoneNumber />
    <FaxNumber />
    <EmailAddress />
    <Website />
    </ContaVALocators>
    </ContaVAInfo>
    <AdditionalInformation />
    </TradingPartner>
    <PayeeBankAccount />
    - <Payer>
    <PartyInternalID>2234567</PartyInternalID>
    <PartyNumber>12345344</PartyNumber>
    <Name>Abc Inc US OU/LE</Name>
    - <PartyType>
    <Code />
    <Meaning />
    </PartyType>
    <TaxRegistrationNumber />
    <LegalEntityRegistrationNumber>S11234</LegalEntityRegistrationNumber>
    <LegalEntityInternalID>114</LegalEntityInternalID>
    <LegalEntityName>Abc Inc US OU/LE</LegalEntityName>
    - <Address>
    <AddressInternalID>2341567</AddressInternalID>
    <AddressLine1>123 Meadow Rd</AddressLine1>
    <AddressLine2>P.O. Box 10000</AddressLine2>
    <AddressLine3 />
    <City>Fairfax</City>
    <County>Fairfax</County>
    <State>VA</State>
    <Country>US</Country>
    <ISO3DigitCountry>USA</ISO3DigitCountry>
    <CountryName>United States</CountryName>
    <PostalCode>20001-1111</PostalCode>
    <PreFormattedConcatenatedAddress>123 Meadow Rd, P.O. Box 10000, Fairfax, VA 20001-1111</PreFormattedConcatenatedAddress>
    <PreFormattedMailingAddress>123 Meadow Rd, P.O. Box 10000, Fairfax, VA 20001-1111</PreFormattedMailingAddress>
    <AddressName>NA-US-VA-Fairfax 123MDR</AddressName>
    </Address>
    - <ContaVAInfo>
    - <ContaVALocators>
    <PhoneNumber />
    <FaxNumber />
    <EmailAddress />
    <Website />
    </ContaVALocators>
    </ContaVAInfo>
    </Payer>
    - <BankAccount>
    <BankAccountInternalID>10067</BankAccountInternalID>
    <BankName>HSBC</BankName>
    <AlternateBankName />
    <BankNumber />
    <BranchInternalID>69937446</BranchInternalID>
    <BranchName>HSBC - 001</BranchName>
    <AlternateBranchName />
    <BranchNumber />
    <BankAccountName>001 - CHAP - HSBC</BankAccountName>
    <AlternateBankAccountName />
    <BankAccountNumber>1178657</BankAccountNumber>
    <MaskedBankAccountNumber>XXXXXX2228</MaskedBankAccountNumber>
    <UserEnteredBankAccountNumber>1178657</UserEnteredBankAccountNumber>
    <BankAccountSuffix />
    <SwiftCode />
    <IBANNumber />
    <CheckDigits />
    - <BankAccountType>
    <Code />
    <Meaning />
    </BankAccountType>
    - <BankAccountCurrency>
    <Code>USD</Code>
    </BankAccountCurrency>
    - <BankAddress>
    <AddressInternalID />
    <AddressLine1 />
    <AddressLine2 />
    <AddressLine3 />
    <AddressLine4 />
    <City />
    <County />
    <State />
    <Province />
    <Country>US</Country>
    <ISO3DigitCountry>USA</ISO3DigitCountry>
    <CountryName>United States</CountryName>
    <PostalCode />
    <PreFormattedConcatenatedAddress />
    <PreFormattedMailingAddress />
    </BankAddress>
    - <FederalBankAccountInfo>
    <FederalRFCIdentifier />
    <FederalAgencyLocationCode />
    <FederalAbbreviatedAgencyCode />
    <FederalEmployerIdentificationNumber />
    </FederalBankAccountInfo>
    - <EFTUserNumber>
    <AccountLevelEFTNumber />
    <BranchLevelEFTNumber />
    </EFTUserNumber>
    </BankAccount>
    - <Beneficiary>
    <Name>MUNICIPAL REVENUE DIV</Name>
    </Beneficiary>
    - <PaymentAmount>
    <Value>35</Value>
    - <Currency>
    <Code>USD</Code>
    <Name>US Dollar</Name>
    </Currency>
    </PaymentAmount>
    <PaymentAmountText>Thirty-Five Dollars And Zero Cents***********************</PaymentAmountText>
    - <PaymentMethod>
    <PaymentMethodInternalID>CHECK</PaymentMethodInternalID>
    <PaymentMethodName>Check</PaymentMethodName>
    <PaymentMethodFormatValue>CHECK</PaymentMethodFormatValue>
    </PaymentMethod>
    <PayAlongFlag>N</PayAlongFlag>
    - <SettlementPriority>
    <Code />
    <Meaning />
    </SettlementPriority>
    - <AmountWithheld>
    <Value />
    - <Currency>
    <Code>USD</Code>
    </Currency>
    </AmountWithheld>
    - <DiscountTaken>
    - <Amount>
    <Value>0</Value>
    - <Currency>
    <Code>USD</Code>
    </Currency>
    </Amount>
    </DiscountTaken>
    - <BankCharges>
    - <BankChargeBearer>
    <Code />
    <Meaning />
    </BankChargeBearer>
    - <Amount>
    <Value>0</Value>
    - <Currency>
    <Code>USD</Code>
    </Currency>
    </Amount>
    </BankCharges>
    - <DeliveryChannel>
    <Code />
    <Meaning />
    <FormatValue />
    </DeliveryChannel>
    - <PaymentReason>
    <Code />
    <Meaning />
    <FormatValue />
    </PaymentReason>
    <PaymentReasonComments />
    <RemittanceMessage />
    <RemittanceMessage />
    <RemittanceMessage />
    - <BankInstruction>
    <BankInstructionCode />
    <Meaning />
    <FormatValue />
    </BankInstruction>
    - <BankInstruction>
    <BankInstructionCode />
    <Meaning />
    <FormatValue />
    </BankInstruction>
    <BankInstructionDetails />
    <PaymentTextMessage />
    <PaymentTextMessage />
    <PaymentTextMessage />
    <PaymentDetails />
    - <RegulatoryReporting>
    <DeclarationFlag>N</DeclarationFlag>
    - <Amount>
    <Value>0</Value>
    - <Currency>
    <Code />
    </Currency>
    </Amount>
    </RegulatoryReporting>
    - <FederalPaymentInfo>
    <FederalAllotmentCode />
    <FederalOffsetEligibilityFlag />
    <FederalAccountingSymbol />
    </FederalPaymentInfo>
    <DocumentPayableCount>1</DocumentPayableCount>
    - <DocumentPayable>
    - <DocumentNumber>
    <DocumentInternalIDSegment1>79860</DocumentInternalIDSegment1>
    <DocumentInternalIDSegment2>922522</DocumentInternalIDSegment2>
    <DocumentInternalIDSegment3>1</DocumentInternalIDSegment3>
    <DocumentInternalIDSegment4 />
    <DocumentInternalIDSegment5 />
    <ApplicationInternalID>200</ApplicationInternalID>
    <ApplicationDocumentSubType>PAYABLES_DOC</ApplicationDocumentSubType>
    <ApplicationUniqueInternalID>79860</ApplicationUniqueInternalID>
    <ReferenceNumber>35.00120211</ReferenceNumber>
    - <UniqueRemittanceIdentifier>
    <Number />
    <CheckDigit />
    </UniqueRemittanceIdentifier>
    <DocCategory>STD INV</DocCategory>
    <SequenceName>AP_US_STD_2011</SequenceName>
    <SequenceValue>2011072795</SequenceValue>
    </DocumentNumber>
    <PONumber>UNMATCHED</PONumber>
    - <DocumentStatus>
    <Code>PAYMENT_CREATED</Code>
    <Meaning>Payment Created</Meaning>
    </DocumentStatus>
    <DocumentDate>2011-12-02</DocumentDate>
    <DocumentCreationDate>2012-04-23</DocumentCreationDate>
    <PaymentDueDate>2011-12-02</PaymentDueDate>
    - <DocumentType>
    <Code>STANDARD</Code>
    <Meaning>Standard</Meaning>
    </DocumentType>
    <DocumentDescription>RESEARCH BOARD FORM 8802</DocumentDescription>
    <ExpenseReportCreditCardNumber />
    <EmployeePaymentFlag>N</EmployeePaymentFlag>
    - <TotalDocumentAmount>
    <Value>35</Value>
    - <Currency>
    <Code>USD</Code>
    </Currency>
    </TotalDocumentAmount>
    - <PaymentAmount>
    <Value>35</Value>
    - <Currency>
    <Code>USD</Code>
    </Currency>
    </PaymentAmount>
    <PayAloneFlag>N</PayAloneFlag>
    - <SettlementPriority>
    <Code />
    <Meaning />
    </SettlementPriority>
    - <AmountWithheld>
    <Value />
    - <Currency>
    <Code>USD</Code>
    </Currency>
    </AmountWithheld>
    - <DiscountTaken>
    - <Amount>
    <Value>0</Value>
    - <Currency>
    <Code>USD</Code>
    </Currency>
    </Amount>
    <DiscountDate />
    </DiscountTaken>
    - <BankCharges>
    - <BankChargeBearer>
    <Code />
    <Meaning />
    </BankChargeBearer>
    </BankCharges>
    - <DeliveryChannel>
    <Code />
    <Meaning />
    <FormatValue />
    </DeliveryChannel>
    - <PaymentReason>
    <Code />
    <Meaning />
    <FormatValue />
    </PaymentReason>
    <PaymentReasonComments />
    <RemittanceMessage />
    <RemittanceMessage />
    <RemittanceMessage />
    - <Charge>
    - <TotalDocumentChargeAmount>
    <Value />
    - <Currency>
    <Code>USD</Code>
    </Currency>
    </TotalDocumentChargeAmount>
    </Charge>
    - <TotalDocumentTaxAmount>
    <Value />
    - <Currency>
    <Code>USD</Code>
    </Currency>
    </TotalDocumentTaxAmount>
    - <CreditAmountApplied>
    <Value />
    - <Currency>
    <Code>USD</Code>
    </Currency>
    </CreditAmountApplied>
    - <InterestAmountApplied>
    <Value />
    - <Currency>
    <Code>USD</Code>
    </Currency>
    </InterestAmountApplied>
    <InterestRate />
    - <DocumentPayableLine>
    <LineNumber>1</LineNumber>
    <PONumber />
    - <LineType>
    <Code>ITEM</Code>
    <Meaning />
    </LineType>
    <LineDescription />
    - <LineGrossAmount>
    <Value>35</Value>
    - <Currency>
    <Code>USD</Code>
    </Currency>
    </LineGrossAmount>
    <UnitPrice />
    <Quantity />
    - <UnitOfMeasure>
    <Code>N</Code>
    <Meaning />
    </UnitOfMeasure>
    - <Tax>
    <TaxCode />
    <TaxRate />
    </Tax>
    </DocumentPayableLine>
    <DocumentPayerLegalEntityName>Abc Inc US OU/LE</DocumentPayerLegalEntityName>
    <DocumentPayerLegalEntityRegNumber>S11234</DocumentPayerLegalEntityRegNumber>
    <DocumentPayerTaxRegNumber />
    </DocumentPayable>
    </OutboundPayment>
    </OutboundPaymentInstruction>

  • Populating a Crystal Report from a virtual table

    Hi,
    Iu2019m using Crystal Report XI R2. I have a Crystal Report which is created using a view in Oracle using the native oracle DB connection. Iu2019m intending to write an application which should populate this report with data using a virtual table in memory. Populating the virtual table could be done by me but what I need to know is how to populate the report using this virtual table. Note the virtual table name will be the same as the one that was used to design the report. Is such a thing possible in the Crystal Java SDK. I found the flowing link http://www.eggheadcafe.com/forumarchives/NETgeneral/Jul2005/post23273440.asp and it talks about a PUSH feature. Can this be used? If so can you tell me how, maybe a small sample code would help.
    Thanks you in advance,
    Regards,
    Chanaka

    I would suggest searching for how to use resultsets with crystal reports.

  • Crystal Reports and XML File

    Is there a way that I can take a file that looks somewhat like the following and generate a crystal report?
    <?xml version="1.0" encoding="ISO-8859-1" ?>
      <!DOCTYPE Packouts (View Source for full doctype...)>
    - <Packouts>
      <Company Desc="">HB</Company>
      <Line>L1</Line>
    - <RunGroup>
      <Date>2008-09-09</Date>
      <Run>5</Run>
      <PoolID>09D2102</PoolID>
      <GrowerID Desc="English Bros">ENGLISH</GrowerID>
      <GrowerBlock>8-1S</GrowerBlock>
      <Commodity Desc="Red Grapefruit">G</Commodity>
      <Variety Desc="Sprdk Red Gft">21</Variety>
      <ReceivedUofM Desc="Field Box">BOX</ReceivedUofM>
      <ClearedUofM Desc="4/5 Bushel">4D</ClearedUofM>
      <Received>522</Received>
      <Cleared>1044</Cleared>
      <Packed>1369</Packed>
    - <Sizes>
      <Size Desc="12" Total="0" EquivTotal="">012</Size>
      <Size Desc="18" Total="0" EquivTotal="">018</Size>
      <Size Desc="23" Total="57" EquivTotal="">023</Size>
      <Size Desc="27" Total="130" EquivTotal="">027</Size>
      <Size Desc="32" Total="245" EquivTotal="">032</Size>
      <Size Desc="36" Total="294" EquivTotal="">036</Size>
      <Size Desc="40" Total="295" EquivTotal="">040</Size>
      <Size Desc="48" Total="185" EquivTotal="">048</Size>
      <Size Desc="56" Total="163" EquivTotal="">056</Size>
      <Size Desc="64" Total="0" EquivTotal="">064</Size>
      <Size Desc="" Total="0" EquivTotal="">222</Size>
      </Sizes>
    - <Row>
      <Label Desc="Heller">1</Label>
      <Grade Desc="Us1">US1</Grade>
      <UofM Desc="4/5 Bushel">4D</UofM>
      <Count Size="023">57</Count>
      <Count Size="027">130</Count>
      <Count Size="032">245</Count>
      <Count Size="036">294</Count>
      <Count Size="040">295</Count>
      <Count Size="048">185</Count>
      <Count Size="056">163</Count>
      </Row>
      </RunGroup>
    - <RunGroup>
      <Date>2008-09-09</Date>
      <Run>6</Run>
      <PoolID>09D2102</PoolID>
      <GrowerID Desc="English Bros">ENGLISH</GrowerID>
      <GrowerBlock>8-1S</GrowerBlock>
      <Commodity Desc="Red Grapefruit">G</Commodity>
      <Variety Desc="Sprdk Red Gft">21</Variety>
      <ReceivedUofM Desc="Field Box">BOX</ReceivedUofM>
      <ClearedUofM Desc="4/5 Bushel">4D</ClearedUofM>
      <Received>522</Received>
      <Cleared>1044</Cleared>
      <Packed>507</Packed>
    - <Sizes>
      <Size Desc="12" Total="0" EquivTotal="">012</Size>
      <Size Desc="18" Total="0" EquivTotal="">018</Size>
      <Size Desc="23" Total="21" EquivTotal="">023</Size>
      <Size Desc="27" Total="53" EquivTotal="">027</Size>
      <Size Desc="32" Total="90" EquivTotal="">032</Size>
      <Size Desc="36" Total="107" EquivTotal="">036</Size>
      <Size Desc="40" Total="108" EquivTotal="">040</Size>
      <Size Desc="48" Total="59" EquivTotal="">048</Size>
      <Size Desc="56" Total="59" EquivTotal="">056</Size>
      <Size Desc="64" Total="0" EquivTotal="">064</Size>
      <Size Desc="" Total="10" EquivTotal="">222</Size>
      </Sizes>
      </RunGroup>
      </Packouts>
    Thanks,
    Jim

    Hi James,
    Yes you can create Crystal Reports from XML file.
    While selecting datasource from Database Expert ->
    ->Create new connection-> Select XML file
    Regards,
    Shweta

  • How to create a report using XML data source from Crystal Report Designer

    Hi,
    Iu2019m having Crystal Report Designer XI R2 SP4. Iu2019m trying to create a report using XML data source stored on disk. This is a customer order report and the xml is structured in such a way that it has an order details header part (master) and then it has several order lines (detail). One order line can have several order line characteristics (detail-detail). So what I need to know is now I can design this layout from the designer. If this was done using views I can do it with sub-reports but using xml data this seems to be different. Can you help me to design this layout? I have included the xml and xsd as well.
    Thank you in advance.
    Regards,
    Chanaka
    XML
    <?xml version="1.0" encoding="UTF-8"?>
    <CUSTOMER_ORDER_CONF_REP_REQUEST xmlns:xsi="http://www.w3.org/2001/XMLSchema" xmlns="urn:ifsworld-com:customer_order_conf_rep">
        <CUSTOMER_ORDER_CONF_REP>
            <ORDER_NO>D555809</ORDER_NO>
            <PRINTED_DATE>2009-03-26T08:52:54</PRINTED_DATE>
            <AUTHORIZE_NAME>Chanaka</AUTHORIZE_NAME>
            <CUSTOMER_NO>CU-1473-INV</CUSTOMER_NO>
            <CUST_NAME>Mr.Johan Matts</CUST_NAME>
            <SHIP_ADDR_1>93,Main Street</SHIP_ADDR_1>
            <SHIP_ADDR_2>Negambo Road</SHIP_ADDR_2>
            <SHIP_ADDR_3>Watthala</SHIP_ADDR_3>
            <SHIP_ADDR_4>SRI LANKA</SHIP_ADDR_4>
            <BILL_ADDR_1>93,Main Street</BILL_ADDR_1>
            <BILL_ADDR_2>Negambo Road</BILL_ADDR_2>
            <BILL_ADDR_3>Watthala</BILL_ADDR_3>
            <BILL_ADDR_4>SRI LANKA</BILL_ADDR_4>
            <CUSTOMER_PO_NO>112984638</CUSTOMER_PO_NO>
            <CUSTOMER_FAX>112984639</CUSTOMER_FAX>
            <CUSTOMER_EMAIL>abcbababab</CUSTOMER_EMAIL>
            <ORDER_LINES>
                <ORDER_LINE>
                    <LINE_NO>1</LINE_NO>
                    <CUSTOMER_PART_NO>NW-IP11</CUSTOMER_PART_NO>
                    <CUSTOMER_PART_DESC>iPod</CUSTOMER_PART_DESC>
                    <SALE_UNIT_PRICE>1200</SALE_UNIT_PRICE>
                    <PRICE_TOTAL>1200</PRICE_TOTAL>
                    <DISCOUNT>0</DISCOUNT>
                    <PRICE_QTY>1</PRICE_QTY>
                    <ORDER_LINE_CHARACTERSTICS>
                        <CHARACTERISTIC_ITEM>
                            <CHARACTERISTIC_ID xsi:nil="1"/>
                            <CHARACTERISTIC_VALUE xsi:nil="1"/>
                        </CHARACTERISTIC_ITEM>
                    </ORDER_LINE_CHARACTERSTICS>
                </ORDER_LINE>
                <ORDER_LINE>
                    <LINE_NO>2</LINE_NO>
                    <CUSTOMER_PART_NO>NW-IP24</CUSTOMER_PART_NO>
                    <CUSTOMER_PART_DESC>XGA Projector</CUSTOMER_PART_DESC>
                    <SALE_UNIT_PRICE>500</SALE_UNIT_PRICE>
                    <PRICE_TOTAL>1500</PRICE_TOTAL>
                    <DISCOUNT>0</DISCOUNT>
                    <PRICE_QTY>3</PRICE_QTY>
                    <ORDER_LINE_CHARACTERSTICS>
                        <CHARACTERISTIC_ITEM>
                            <CHARACTERISTIC_ID>1</CHARACTERISTIC_ID>
                            <CHARACTERISTIC_VALUE>Free Instalation</CHARACTERISTIC_VALUE>
                        </CHARACTERISTIC_ITEM>
                    </ORDER_LINE_CHARACTERSTICS>
                </ORDER_LINE>
                <ORDER_LINE>
                    <LINE_NO>3</LINE_NO>
                    <CUSTOMER_PART_NO>NW-IP02</CUSTOMER_PART_NO>
                    <CUSTOMER_PART_DESC>Sony DVD Player</CUSTOMER_PART_DESC>
                    <SALE_UNIT_PRICE>1000</SALE_UNIT_PRICE>
                    <PRICE_TOTAL>1000</PRICE_TOTAL>
                    <DISCOUNT>0</DISCOUNT>
                    <PRICE_QTY>1</PRICE_QTY>
                    <ORDER_LINE_CHARACTERSTICS>
                        <CHARACTERISTIC_ITEM>
                            <CHARACTERISTIC_ID>1</CHARACTERISTIC_ID>
                            <CHARACTERISTIC_VALUE>Free 5 DVDs</CHARACTERISTIC_VALUE>
                        </CHARACTERISTIC_ITEM>
                    </ORDER_LINE_CHARACTERSTICS>
                </ORDER_LINE>
                <ORDER_LINE>
                    <LINE_NO>4</LINE_NO>
                    <CUSTOMER_PART_NO>NW-IP99</CUSTOMER_PART_NO>
                    <CUSTOMER_PART_DESC>Flatscreen TV</CUSTOMER_PART_DESC>
                    <SALE_UNIT_PRICE>1500</SALE_UNIT_PRICE>
                    <PRICE_TOTAL>1350</PRICE_TOTAL>
                    <DISCOUNT>10</DISCOUNT>
                    <PRICE_QTY>1</PRICE_QTY>
                    <ORDER_LINE_CHARACTERSTICS>
                        <CHARACTERISTIC_ITEM>
                            <CHARACTERISTIC_ID>1</CHARACTERISTIC_ID>
                            <CHARACTERISTIC_VALUE>Free Delivery</CHARACTERISTIC_VALUE>
                        </CHARACTERISTIC_ITEM>
                        <CHARACTERISTIC_ITEM>
                            <CHARACTERISTIC_ID>2</CHARACTERISTIC_ID>
                            <CHARACTERISTIC_VALUE>1 year additional warranty</CHARACTERISTIC_VALUE>
                        </CHARACTERISTIC_ITEM>
                    </ORDER_LINE_CHARACTERSTICS>
                </ORDER_LINE>
                <ORDER_LINE>
                    <LINE_NO>5</LINE_NO>
                    <CUSTOMER_PART_NO>NW-IP56</CUSTOMER_PART_NO>
                    <CUSTOMER_PART_DESC>Sony MP3 Player</CUSTOMER_PART_DESC>
                    <SALE_UNIT_PRICE>200</SALE_UNIT_PRICE>
                    <PRICE_TOTAL>400</PRICE_TOTAL>
                    <DISCOUNT>0</DISCOUNT>
                    <PRICE_QTY>2</PRICE_QTY>
                    <ORDER_LINE_CHARACTERSTICS>
                        <CHARACTERISTIC_ITEM>
                            <CHARACTERISTIC_ID>1</CHARACTERISTIC_ID>
                            <CHARACTERISTIC_VALUE>Free carry belt</CHARACTERISTIC_VALUE>
                        </CHARACTERISTIC_ITEM>
                        <CHARACTERISTIC_ITEM>
                            <CHARACTERISTIC_ID>2</CHARACTERISTIC_ID>
                            <CHARACTERISTIC_VALUE>Free promotional 4GB memory bar</CHARACTERISTIC_VALUE>
                        </CHARACTERISTIC_ITEM>
                        <CHARACTERISTIC_ITEM>
                            <CHARACTERISTIC_ID>3</CHARACTERISTIC_ID>
                            <CHARACTERISTIC_VALUE>No warranty on memory bar</CHARACTERISTIC_VALUE>
                        </CHARACTERISTIC_ITEM>
                    </ORDER_LINE_CHARACTERSTICS>
                </ORDER_LINE>
            </ORDER_LINES>
        </CUSTOMER_ORDER_CONF_REP>
    </CUSTOMER_ORDER_CONF_REP_REQUEST>
    XSD
    <?xml version="1.0" encoding="UTF-8"?>
    <?report  module="ORDER" package="CUSTOMER_ORDER_CONF_REP" ?>
    <xs:schema targetNamespace="urn:ifsworld-com:customer_order_conf_rep" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="urn:ifsworld-com:customer_order_conf_rep" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xs:element name="CUSTOMER_ORDER_CONF_REP_REQUEST">
    <xs:complexType>
    <xs:all minOccurs="1" maxOccurs="1">
    <xs:element name="CUSTOMER_ORDER_CONF_REP">
    <xs:complexType>
    <xs:choice minOccurs="0" maxOccurs="50">
    <xs:element name="ORDER_NO" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="PRINTED_DATE" type="xs:dateTime" nillable="true" minOccurs="0"/>
    <xs:element name="AUTHORIZE_NAME" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="CUSTOMER_NO" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="CUSTOMER_PO_NO" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="CUST_NAME" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="SHIP_ADDR_1" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="SHIP_ADDR_2" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="SHIP_ADDR_3" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="SHIP_ADDR_4" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="BILL_ADDR_1" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="BILL_ADDR_2" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="BILL_ADDR_3" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="BILL_ADDR_4" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="CUSTOMER_FAX" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="CUSTOMER_EMAIL" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="ORDER_LINES" nillable="true" minOccurs="0">
    <xs:complexType>
    <xs:sequence minOccurs="0" maxOccurs="unbounded">
    <xs:element name="ORDER_LINE">
    <xs:complexType>
    <xs:choice minOccurs="0" maxOccurs="39">
    <xs:element name="LINE_NO" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="SALE_UNIT_PRICE" type="xs:float" nillable="true" minOccurs="0"/>
    <xs:element name="PRICE_TOTAL" type="xs:float" nillable="true" minOccurs="0"/>
    <xs:element name="DISCOUNT" type="xs:float" nillable="true" minOccurs="0"/>
    <xs:element name="PRICE_QTY" type="xs:float" nillable="true" minOccurs="0"/>
    <xs:element name="CUSTOMER_PART_NO" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="4000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="CUSTOMER_PART_DESC" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="4000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="ORDER_LINE_CHARACTERSTICS" nillable="true" minOccurs="0">
    <xs:complexType>
    <xs:sequence minOccurs="0" maxOccurs="unbounded">
    <xs:element name="CHARACTERISTIC_ITEM">
    <xs:complexType>
    <xs:choice minOccurs="0" maxOccurs="6">
    <xs:element name="CHARACTERISTIC_ID" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="CHARACTERISTIC_VALUE" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    </xs:choice>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:choice>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:choice>
    </xs:complexType>
    </xs:element>
    </xs:all>
    </xs:complexType>
    </xs:element>
    </xs:schema>

    Hi Sourashree,
    Thank you for the response and ideas you have given me so far. I can get the fetch the data from the data source without any problem. That is I do the following,
    1.     New Report
    2.     From Create New Connection-> XML
    3.     Provide the u201CLocal XML Fileu201D and have u201CSpecify Schema Fileu201D checked -> Next
    4.     Provide the u201CLocal Schema Fileu201D  -> Finish
    Then I can see the following under XML
    + CUSTOMER_ORDER_CONF_REP_REQUEST
            CUSTOMER_ORDER_CONF_REP_REQUEST
         CUSTOMER_ORDER_CONF_REP_REQUEST/CUSTOMER_ORDER_CONF_REP
         CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES
         CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES/ORDER_LINE
         CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES/ORDER_LINE/ORDER_LINE_CHARACTERSTICS
         CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES/ORDER_LINE/ORDER_LINE_CHARACTERSTICS/CHARACTERSTIC_ITEM
    And from here if I add the following three I can get all the fields I need to the report
         CUSTOMER_ORDER_CONF_REP_REQUEST/CUSTOMER_ORDER_CONF_REP
         CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES/ORDER_LINE
         CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES/ORDER_LINE/ORDER_LINE_CHARACTERSTICS/CHARACTERSTIC_ITEM
    Then I come to the Linking section. Here I canu2019t link anything. There is a common field called u201CInternal_IDu201D but I canu2019t link using it. So I get a message when I click Next. From here I add all the fields.
    For this point onwards only I need help. How do I group, add fields and design the layout so I can get an report output as follows.
    Date
    Order number                                   Authorized code
    Customer No
    Name
    Phone
    Fax email
    Shipping address 1                              Billing Address 1
    Shipping address 2                              Billing Address 2
    Shipping address 3                              Billing Address 3
    Shipping address 4                              Billing Address 4
    Order Line 1 detailsu2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026                      LINE_NO     CUSTOMER_PART_NO          CUSTOMER_PART_DESC     SALE_UNIT_PRICE     PRICE_QTY     DISCOUNT     PRICE_TOTAL
    Characteristic details belonging to Order line 1       CHARACTERISTIC_ID 1  CHARACTERISTIC_VALUE1
                                           CHARACTERISTIC_ID 2  CHARACTERISTIC_VALUE2
                                           CHARACTERISTIC_ID 3  CHARACTERISTIC_VALUE3
    Order Line 2 detailsu2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
    Characteristic details belonging to Order line 2
    Order Line 3 detailsu2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
    Characteristic details belonging to Order line 3
    Order Line 4 detailsu2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
    Characteristic details belonging to Order line 4
    Order Line 5 detailsu2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
    Characteristic details belonging to Order line 5
    How can I achieve this kind of a layout using the give xml and xsd? Should I use grouping if so how should I do the grouping?
    I have included the full xml and xsd in the first mail I posted but I canu2019t see it now. I can include that again if you want.
    Regards,
    Chanaka

  • Using crystal report to extract data from Audit Log

    I have a customised form which contains main fields (i.e 20 fields) and when a field is changed, it's being recorded in the audit log.
    Would it be possible to use Crystal Report to extract data from the Audit Log? Ideally, i would like the report to show me all the latest field values in a spreadsheet type format (i.e. one field per column)
    Has anyone try this and if so, what is involved?

    An element with both text & a sub-element is a mixed-content element.
    For example ElementA is a mixed content element.
    <ElementA>
    Text
    <ElementB></ElementB>
    </ElementA>
    Extract just the Text from ElementA.
    <xsl:template match="ElementA">
    <xsl:apply-templates select="text()" />
    </xsl:template>

  • Printing the datas through Crystal Report from Java

    How can I Print the datas through Crystal Report from java?

    How can I Print the datas through Crystal Report from
    java?
    What the hell are "the datas"?
    Jesus, I can understand this is a shrinking planet, Global community, and all that happy horse pucky. Typos or small grammar errors are no big deal, I make them all the time. But when I have to spend more time interpretting the question than figuring out the answer, it drives me crazy.

  • Crystal report from JSP using the JRC

    Hi, I am trying to call crystal report from JSP using the JRC.
    But i am getting the Error as 'Logon Failed'. my web.xml entry is
    <env-entry>
    <env-entry-name>jdbc/Test</env-entry-name>
    <env-entry-value>!oracle.jdbc.driver.OracleDriver!jdbc:oracle:thin:{userid}/{password}@//10.0.0.1:1521/TestDB</env-entry-value>
    <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>
    i am setting the userid and password in the code. Please see the below code for your reference. Please help me to solve the issue.
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ page import="com.crystaldecisions.report.web.viewer.CrystalReportViewer"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.data.*"%>
    <%@ page import="com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.reportsource.IReportSourceFactory2" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.reportsource.IReportSource" %>
    <%@ page import="com.crystaldecisions.reports.reportengineinterface.JPEReportSource" %>
    <html>
    <head>
    <title>Crystal Report with Database Logon information</title> </head>
    <body bgcolor="#ffffff">
    <%
    try
    String report = "/TEMPLATE.rpt";
    IReportSourceFactory2 rptSrcFactory = new JPEReportSourceFactory();
    JPEReportSource reportSource = (JPEReportSource) rptSrcFactory.createReportSource(report, request.getLocale());
    CrystalReportViewer viewer = new CrystalReportViewer();
    viewer.setReportSource(reportSource);
    viewer.setHasRefreshButton(true);
    IConnectionInfo newConnInfo = new ConnectionInfo();
    newConnInfo.setUserName("TEST");
    newConnInfo.setPassword("TEST");
    ConnectionInfos newConnInfos = new ConnectionInfos();
    newConnInfos.add(newConnInfo);
    viewer.setDatabaseLogonInfos(newConnInfos);
    viewer.setEnableLogonPrompt(false);
    viewer.setOwnPage(true);
    viewer.setOwnForm(true);
    out.println("Connection Information: "+viewer.getDatabaseLogonInfos().getConnectionInfo(0).getAttributes().toString());
    viewer.processHttpRequest(request, response, getServletConfig().getServletContext(),null);
    viewer.dispose();
    catch(Exception e)
    throw new JspException( e);
    %>
    </body>
    </html>

    I never really had much luck with this approach.
    Mind you I was using Crystal Reports 10, and as far as I recall it didn't allow setting/changing of database at this level.
    Things to check
    - can you create a database connection on your page with this URL/username/password?
    - what server are you using? Tomcat? WebLogic?
    I found this in your other post:
    Connection Information: {Server Name=ee6rpt, Connection String=DSN=s(ee6rpt);User ID=s(ee62test);Password=;UseDSNProperties=b(false), Database Name=, Database DLL=crdb_odbc.dll}That would indicate it is using odbc to connect to the database (crdb_odbc.dll). ODBC is a bad idea with java.
    The way I have got it to work for me (after much trial and error) was to in Crystal Reports to connect using the Oracle Driver, and specifying a tnsname - eg define REPORT_DS in tnsnames.ora.
    When running through the JRC, it looked for a JNDI datasource under that same name "REPORT_DS".
    Don't know if that will help you or not.
    Good luck,
    evnafets

  • Crystal reports using xml at run time??

    Post Author: avnkkishore
    CA Forum: General
    Hi,
    I have very simple requirement.
    I would like to create a crystal
    report using XML. This
    XML file will be decided at run time
    (not at design time).
    Hence i have added a crystal report viewer control to my windows form and did
    not choose any data source (i left it blank currently). Now i am trying to load
    XML file with the following simple code.
                PropertyBag
    crLogOnDetails = new PropertyBag();
    crLogOnDetails&#91;"Local XML File"&#93; = @"C:\Hosts.xml";
    crLogOnDetails&#91;"Local Schema File"&#93; = @"C:\Hosts.xsd";
    ConnectionInfo conn = new ConnectionInfo();
    conn.Attributes = crLogOnDetails;
                // create
    "Host" table
    CrystalDecisions.ReportAppServer.DataDefModel.Table tbl;
                tbl = new
    CrystalDecisions.ReportAppServer.DataDefModel.Table();
                tbl.Name =
    "Host";
    tbl.ConnectionInfo = conn;
    rcDoc.DatabaseController.AddTable(tbl, null);
    I am getting exception exactly at the above line (i.e. when adding table to
    Database Controller) saying "COMException was unhandled" with error code
    0x80004005 Unspecified error.
    Can any one please help me regarding how to resolve this.
    Thanks in advance,
    Kishore

    I am using VB6 as the front end and Microsoft Access to hold the data and Crystal Reports 8.5. I have a staff name parameter that I want the user to select which staff name to print the report.  If there is
    a new staff the name is not in the list of parameters.  How do I add to the parameter list at run time from the staff table?
    Hi,
    I am afraid that these forums don't support VB6, you could refer to this thread:
    Where to post your VB 6 questions
    You could consider posting this issue in these forums below:
    These forums do not support Visual Basic 6, however there are many third-party support sites that do. If you have a VB6-related question please visit these popular forums:
    VB Forums
    VB City
    In addition, issues related to Crystal Reports are not supported either since it belongs to third-party.
    You could post issues related to Crystal Reports to its forum to get dedicated supports.
    SAP Crystal Reports for .NET forum:
    http://forums.sdn.sap.com/forum.jspa?forumID=313
    Thanks for your understanding.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Failed to Load database information - Crystal report with XML as datasource

    Hello Friends:
    I am getting the attached error when i try to load the Crystal Report with XML as data source.
    I have designed the crystal report with the sample XML provided with XSD schema (PFA I have attached the XML and XSD). It is working as expected on design time. But it is failing when I load it from C# code.
    Note: I have referred the following DLLs of version 13.0.2000.0 in my sample application.
    CrystalDecisions.CrystalReports.Design.dll
    CrystalDecisions.CrystalReports.Engine.dll
    Please let me know what should be done in order to resolve this.
    Thank you!

    All I know is that you are using 'SAP Crystal Reports, Developer Version for Visual Studio .NET". No idea what service pack or what version of .NET...
    So. make sure you are on SP 9:
    SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads
    Search for KBA 1525432 (search box is in top right corner) and follow the instructions there.
    Remove your reference to CrystalDecisions.CrystalReports.Design.dll
    Add the following references:
    CrystalDecisions.Shared
    CrystalDecisions.ReportSource
    CrystalDecisions.Web (if web app)
    CrystalDecisions.Windows (if win app)
    I'd also recommend commenting out the export code for now; one step at a time. Get it to work in the viewer, then move on... No Big Bangs
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • How do I open a Crystal Report from Microsoft Access?

    I'm looking for step-by-step instructions on how to launch a Crystal Report from a Microsoft Access application (for a dummy like me).
    My Crystal Report uses a connection to the Access database as the data.
    I have Microsoft Access 2002 with Microsoft Visual Basic 6.5.
    I have Crystal Reports 2008 CR Developer 12.
    I'll need to know where to find the Visual Basic code references, and/or ActiveX Controls, if applicable.
    Thanks
    Janeen

    I concur with Don. Just a bit of help - a sample VBA app is here;
    https://smpdl.sap-ag.de/~sapidp/012002523100006013432008E/rdc_vba.exe
    But as Don mentioned, you will have to downgrade to CR XI r2 (or lower) to implement the above solution.
    Ludek

  • Open a crystal report from WAD with passing  the variables values

    Hi,
    I need to know is there any way to link SAP WAD to crystal reports (open a crystal report from WAD)and pass the values of the variables which are entered in the Web App. (e.g. Customer id,year) should be passed to the Crystal Report.
    Maybe we need to pass parameter by WAD URL but this is just my assumption and have no idea how to do this with passing variable values.
    right now I know the method of how Bex queries which are used as data source for crystal reports but in my current scenario we have the structure like this that bex queries link with WAD and then WAD is linked with crystal reports.
    No doubt that Crystal report is target option in RRI but there the source is Bex Query only but in current scenario we are looking  WAD (web template) as a source to crystal report or crystal report called in WAD.
    Please suggest something on same.
    Thanks
    Take care
    Vishal sharma

    Hello Vishal.
    Did you find a solution for this problem?
    I'm facing right now the same problem, I need a way to link SAP WAD to crystal reports (open a crystal report from WAD) and pass the values of the variables which are entered in the Web App. (e.g. Customer id,year) should be passed to the Crystal Report.
    Have found an answer to this issue? If yes, please kindly inform how have you solved this.
    Best Regars
    Armando Santos

  • Cannot refresh a stored procedure within a Crystal Report from Xcelsius

    Please help...Xcelsius 2008 & Live Office problem...
    What I am trying to do is to refresh a stored procedure that is within a Crystal report from within my Xcelsius dashboard in Preview mode. The data returned appears on the Xcelsius dashboard. It works fine in Design mode, just not in Preview or when published as a swf.
    1. I set up a Crystal Report using a Stored Procedure as the data provider.
    2. The Stored Procedure has a parameter built into it.
    3. When the report is refreshed within Crystal, the prompt dialog box is displayed; I fill in the desired value, and run. Everything comes back fine.
    4. Crystal Report is exported to the repository.
    5. In Excel, I inserted the Crystal Report using Live Office. It shows up as a Live Office object just fine.
    6. I bound an Excel cell to the prompt; when you change the value in the bound cell, the Live Office object refreshes and displays the correct results.
    7. In Xcelsius, I imported the Excel spreadsheet.
    8. I set up a Text component that is bound to the cell containing the parameter value. Also set up a Grid to display the results, and a Connection Refresh button to call the refresh. Added a Live Office Data Connection pointing to the Web Service URL for the report.
    Note: When in Designer mode, if the value of the bound cell is changed, the results in the grid change accordingly.
    9. When in Preview mode (or generated swf), if the Refresh button is pressed, a "User Identification" dialog box appears asking me to log on. The values it asks for are: System, User Name, Password, and Authentication. I enter the same credentials as are within the Live Office settings in Excel, (which are working correctly), but receive an error "soapenv:Server.generalException: Database logon failed.".
    Note - all the id's are synced up - Business Objects, Database, etc.
    I've tried all kinds of combinations, but nothing gets me past this error. If I use any other server than the one listed under System in Live Office, the error message is "soapenv:Server.generalException: Server XXXXX not found or server may be down".
    I've noticed that in Excel directly, when I open the spreadsheet and refresh the Live Office object, I am prompted to log on to the database where the stored procedure is being executed. This dialog box does not appear once the Excel sheet has been imported into Xcelsius. One of the combinations I tried in the "User Identification" dialog box was the name of the database server, that didn't work either.
    I also tried creating the Live Office object directly within the Excel spreadsheet in Xcelsius, but then I was unable to bind the prompt value. Could never get the Live Office/Properties menu to appear.
    Ideas? Thoughts?
    Thanks in advance!
    Stephanie

    This post looks like a duplicate of: Live Office: Database logon failed error

  • How to trigger crystal report from SAP ECC

    Hi All,
    I hope i m right forum to ask this question.
    we want to do label printing from Crystal reports. data will be present in SAP ECC .
    So I below issues
    1 ) how to connect SAP ECC database with Crystal Reports.
    2 ) how to trigger print output in Crystal reports from ECC , lets say I create a Delivery In ECC , the print output will be issued to Crystal report and I should get a print out Immediately ( for printing - printer will be connected to local system and SAP network printer ) .
    I have worked  with this type of scenario in smarforms , adobeforms. but not with Crystal Reports ...
    Regards
    Yashpal Gupta.

    Hi Yashpal,
    First thing you need to do is install the Connector on both your work station where you run Crystal Reports as well as the SAP Server where the data is.
    So I moved your post to the SAP Integration Kit forum.
    Need to know what version of Crystal Reports you are using?
    Search of browse here, lots of info on how to...
    Thanks
    Don

Maybe you are looking for