Can not refresh data int the report...

Application on C#.
Steps:
1. Get Report without data from the database
2. Change the dataconnections in report to the current user
3. refresh data on the report (FilePath = TempFilePath)
4. Resave report file with data
5. Automatically open CrystalReportsViewer2008 and load the report
Result
On developer machine is allright, but on the user machine data isn't refreshed. Therefore CrysrtalReportsViewer2008 can't open report. It say that check the SaveDatawithReport parameter.
In process  I found that in temp directory on user pc, didn't creates some temprorary files which creates on developer PC. Why? Help me please.
Sorry for my English.

There is the code of my programm
function ParseReport is refreshed the data and change dataconnections for current user
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Diagnostics;
using CRApp;
using Microsoft.Win32;
namespace CRApp
     * u041Au043Bu0430u0441u0441 u0434u043Bu044F u0430u0432u0442u043Eu043Cu0430u0442u0438u0437u0438u0440u043Eu0432u0430u043Du043Du043Eu0433u043E u0432u0438u0437u0443u0430u043Bu044Cu043Du043Eu0433u043E u0434u043Eu0441u0442u0443u043Fu0430
     * u043A u0444u0430u0439u043Bu0430u043C u0448u0430u0431u043Bu043Eu043Du043Eu0432, u0441u0433u0435u043Du0435u0440u0438u0440u043Eu0432u0430u043Du043Du044Bu0445 u0432
     * u043Fu0440u043Eu0433u0440u0430u043Cu043Cu0435 Crystal Reports
    public partial class Export2CR_MForm : Form
        public Export2CR_MForm()
            InitializeComponent();
            Start();
        public void Start()
            LoginForm Login = new LoginForm();
            DialogResult Dres = Login.ShowDialog();
            if (Dres == DialogResult.OK)
                if (Login.GetConStr().ToString() != "")
                    GetReportNamesFromDataBase(Login.GetConStr());
                    SetConnectionString(Login.GetConStr());
                    this.CenterToScreen();
                    Visible = true;
                    Login.Close();
            else
                Login.Close();
                this.CenterToScreen();
                this.OnClosed(null);
             * u041Fu043Eu043Bu0443u0447u0430u0435u043C u043Fu0443u0442u044C u043A u0432u0440u0435u043Cu0435u043Du043Du044Bu043C u0444u0430u0439u043Bu0430u043C
            TempFilePath = Path.GetTempPath();
         * u041Au0440u0438u0441u0442u0430u043Bu043Eu0432u0441u043Au0438u0439 u0432u044Cu044Eu0432u0435u0440u043Eu043A
        CrystalDecisions.Windows.Forms.CrystalReportViewer viewer;
         * u041Fu0443u0442u044C u043A u0432u0440u0435u043Cu0435u043Du043Du043Eu0439 u043Fu0430u043Fu043Au0435
        private string TempFilePath;
         * u041Fu0430u0440u0430u043Cu0435u0442u0440 u0437u0430u043Fu0438u0441u0438 u0432 u0440u0435u0436u0438u043Cu0435, u0442u0430u0431u043Bu0438u0446u0435 (u0438u0442u0434...)
         * u041Du0443u0436u0435u043D u0434u043Bu044F u0442u043Eu0433u043E u0447u0442u043Eu0431u044B u0432u044Bu0431u0438u0440u0430u0442u044C
         * u043Eu043Fu0435u0440u0435u0434u043Bu0451u043Du043Du044Bu0439 u0434u0430u0442u0430u0441u0435u0442, u0441u043Eu043Eu0442u0432u0435u0442u0441u0442u0432u0443u044Eu0449u0438u0439 u0432u044Bu0431u0440u0430u043Du043Du043Eu0439 u0437u0430u043Fu0438u0441u0438
        private int ObjectIDOfTemplate;
         * u0423u0441u0442u0430u043Du043Eu0432u043Au0430 u0437u043Du0430u0447u0435u043Du0438u044F ObjectIDOfTemplate
        public void SetObjectIDOfTemplate(int /*
                                               * ObjectID u0442u043Eu0433u043E u0448u0430u0431u043Bu043Eu043Du0430,
                                               * u043Au043Eu0442u043Eu0440u044Bu0439 u043Du0430u0434u043E u043Fu043Eu043Bu0443u0447u0438u0442u044C
                                                  EnternalObjectID)
            ObjectIDOfTemplate = EnternalObjectID;
         * u041Fu043Eu043Bu0443u0447u0438u0442u044C ObjectID u0448u0430u0431u043Bu043Eu043Du0430
         * u0441 u043Au043Eu0442u043Eu0440u044Bu043C u0440u0430u0431u043Eu0442u0430u043Bu0438 u0434u043Bu044F
         * u0438u0441u043Fu043Eu043Bu044Cu0437u043Eu0432u0430u043Du0438u044F u0435u0433u043E u0432u043Du0435 u0431u0438u0431u043Bu0438u043Eu0442u0435u043Au0438
        public int GetObjectIDOfTemplate()
            return ObjectIDOfTemplate;
         * u041Fu0443u0442u044C u043A u0432u044Bu043Fu043Bu044Eu043Du0443u0442u043Eu043Cu0443 u0444u0430u0439u043Bu0443
        private string TemplateFilePath;
         * u0423u0441u0442u0430u043Du043Eu0432u0438u0442u044C u043Fu0443u0442u044C u043A
         * u0432u044Bu043Fu043Bu044Eu043Du0443u0442u043Eu043Cu0443 u0444u0430u0439u043Bu0443
        public void SetTemplateFilePath(string In)
            TemplateFilePath = In;
         * u041Fu043Eu043Bu0443u0447u0438u0442u044C u043Fu0443u0442u044C u043A
         * u0432u044Bu043Fu043Bu044Eu043Du0443u0442u043Eu043Cu0443 u0444u0430u0439u043Bu0443
        public string GetTemplateFilePath()
            return TemplateFilePath;
         * u0424u0443u043Du043Au0446u0438u044F u043Eu0442u043Au0440u044Bu0442u0438u044F u0444u0430u0439u043Bu0430,
         * u043Fu043Eu043Bu0443u0447u0435u043Du043Du043Eu0433u043E u0438u0437 u0431u0430u0437u044B u0438
         * u043Fu043Eu043Bu043Eu0436u0435u043Du043Du043Eu0433u043E u0432u043E u0432u0440u0435u043Cu0435u043Du043Du0443u044E u043Fu0430u043Fu043Au0443
        public int ParseReport(string FilePath)
            viewer = new CrystalDecisions.Windows.Forms.CrystalReportViewer();
            CrystalDecisions.CrystalReports.Engine.ReportDocument rd =
                new CrystalDecisions.CrystalReports.Engine.ReportDocument();
            try
                rd.Load(FilePath);
                try
                    for (int i = 0; i < rd.DataSourceConnections.Count; i++)
                        rd.DataSourceConnections<i>.SetConnection(
                            GetConnectionString().GetServerName(),
                            GetConnectionString().GetDatabaseName(),
                            GetConnectionString().GetUserName(),
                            GetConnectionString().GetPassword()
                        for (int j = 0; j < rd.Database.Tables.Count; j++)
                            DataTable dataSet = new DataTable();
                            SqlConnection C = new SqlConnection(GetConnectionString().ToString());
                            string ViewName = GetDataViewName(GetConnectionString(), ParseTableName(
                                            rd.Database.Tables[j].Name));
                            SqlCommand Q = new SqlCommand("select * from " + ViewName
                                , C);
                            Q.CommandType = CommandType.Text;
                            SqlDataAdapter adapter = new SqlDataAdapter();
                            adapter.SelectCommand = Q;
                            adapter.Fill(dataSet);
                            rd.Database.Tables[j].SetDataSource(dataSet);
                catch (Exception e)
                    MessageBox.Show(e.Message);
                try
                    SetTemplateFilePath(TempFilePath + "\\" + FileTreeView.SelectedNode.Text.ToString() + ".rpt");
                    rd.ReportOptions.EnableSaveDataWithReport = true;
                    viewer.ReportSource = rd;
                    viewer.RefreshReport();
                    rd.SaveAs(TemplateFilePath);
                    rd.Close();
                    return 0;
                catch (Exception e)
                    MessageBox.Show(e.Message);
                    return -1;
            catch (Exception ex)
                rd.ReportOptions.EnableUseDummyData = true;
                rd.ReportOptions.EnableSaveDataWithReport = true;
                viewer.RefreshReport();
                rd.SaveAs(TemplateFilePath);
                MessageBox.Show("Error: Could not read file from disk. Original error: " + ex.Message);
                return -1;
         * u0420u0430u0437u0431u0438u0435u043Du0438u0435 u0438u043Cu0435u043Du0438 u0442u0430u0431u043Bu0438u0446u044B
         * u0434u043Bu044F u043Fu043Eu043Bu0443u0447u0435u043Du0438u044F u043Du043Eu043Cu0435u0440u0430 u043Au043Bu0430u0441u0441u0430
        public string ParseTableName(string TableName)
//            MessageBox.Show(TableName);
            int x = 0;
            if (TableName.Contains("Class"))
                x = TableName.LastIndexOf("s");
                return TableName.Remove(0,x+1);
            if(TableName.Contains("Attr"))
                x = TableName.IndexOf("r");
//           MessageBox.Show(x.ToString());
//           MessageBox.Show(TableName.Remove(0, x+1));
            return TableName.Remove(0, x+1);
         * u0424u0443u043Du043Au0446u0438u044F u043Fu043Eu043Bu0443u0447u0435u043Du0438u044F u0444u0430u0439u043Bu0430 u0438u0437 u0431u0430u0437u044B
        public int ParseReportWithDataBase()
            try
                string ConnectionString = GetConnectionString().ToString();               
                SqlConnection C = new SqlConnection(ConnectionString);
                C.Open();
                string SelectString = "select P119 from "+ GetDataViewName(GetConnectionString(),"24") +" where P115='";
                SelectString = SelectString+FileTreeView.SelectedNode.Text.ToString()+"'";
                SqlCommand Q = new SqlCommand(SelectString, C);
                Q.CommandType = CommandType.Text;
                SqlDataAdapter adapter = new SqlDataAdapter();
                adapter.SelectCommand = Q;
                DataTable table = new DataTable();
                adapter.Fill(table);
                byte[] b = (byte[])table.Rows[0].ItemArray.GetValue(0);
                FileStream fs = File.Create(TempFilePath+"\\"+FileTreeView.SelectedNode.Text.ToString()+".rpt");
                fs.Write(b, 0, b.Length);
                fs.Close();
                C.Close();
                return 0;
            catch (Exception ex)
                MessageBox.Show(ex.Message);
                return -1;
         * u0421u0442u0440u0443u043Au0442u0443u0440u0430, u043Eu043Fu0438u0441u044Bu0432u0430u044Eu0449u0430u044F u043Fu0430u0440u0430u043Cu0435u0442u0440u044B
         * u043Fu043Eu0434u043Au043Bu044Eu0447u0435u043Du0438u044F u043A u0431u0430u0437u0435 u0434u0430u043Du043Du044Bu0445,
         * u043Au0430u043A u0434u043Bu044F u0432u043Du0435u0448u043Du0435u0433u043E u0438u0441u043Fu043Eu043Bu044Cu0437u043Eu0432u0430u043Du0438u044F
         * u0442u0430u043A u0438 u0434u043Bu044F u0432u043Du0443u0442u0440u0435u043Du043Du0435u0433u043E
        public struct ConnectionString
             * u0418u043Cu044F u0441u0435u0440u0432u0435u0440u0430 u0431u0430u0437u044B u0434u0430u043Du043Du044Bu0445
            private string DataSource_Value;
             * u041Du0430u0437u0432u0430u043Du0438u0435 u0431u0430u0437u044B u0434u0430u043Du043Du044Bu0445
            private string InitialCatalog_Value;
             * u0418u043Cu044F u043Fu043Eu043Bu044Cu0437u043Eu0432u0430u0442u0435u043Bu044F
            private string UserID_Value;
             * u041Fu0430u0440u043Eu043Bu044C
            private string Password_Value;
             * u041Fu0435u0440u0435u0433u0440u0443u0436u0435u043Du043Du044Bu0439 u043Au043Eu043Du0441u0442u0440u0443u043Au0442u043Eu0440
             * u0434u043Bu044F u0440u0443u0447u043Du043Eu0439 u0438u043Du0438u0446u0438u0430u043Bu0438u0437u0430u0446u0438u0438
             * u0441u0442u0440u043Eu043Au0438 u043Fu043Eu0434u043Au043Bu044Eu0447u0435u043Du0438u044F,
             * u043Du0443u0436u0435u043D u0434u043Bu044F u0438u0441u043Fu043Eu043Bu044Cu0437u043Eu0432u0430u043Du0438u044F u0435u0433u043E
             * u0432 u043Eu0434u0440u0443u0433u0438u0445 u0444u043Eu0440u043Cu0430u0445
            public ConnectionString(string /*
                                            * u0418u043Cu044F u0441u0435u0440u0432u0435u0440u0430 u0431u0430u0437u044B u0434u0430u043Du043Du044Bu0445
                                              InDataSource_Value,
                                    string /*
                                            * u041Du0430u0437u0432u0430u043Du0438u0435 u0431u0430u0437u044B u0434u0430u043Du043Du044Bu0445
                                              InInitialCatalog_Value,
                                    string /*
                                            * u0418u043Cu044F u043Fu043Eu043Bu044Cu0437u043Eu0432u0430u0442u0435u043Bu044F
                                            */ InUserID_Value,
                                    string /*
                                            * u041Fu0430u0440u043Eu043Bu044C
                                            */ InPassword_Value)
                DataSource_Value = InDataSource_Value;
                InitialCatalog_Value = InInitialCatalog_Value;
                UserID_Value = InUserID_Value;
                Password_Value = InPassword_Value;
             * u041Fu043Eu043Bu0443u0447u0438u0442u044C u0438u043Cu044F u0441u0435u0440u0432u0435u0440u0430
             * u0431u0430u0437u044B u0434u0430u043Du043Du044Bu0445
            public string GetServerName()
                return DataSource_Value;
             * u041Fu043Eu043Bu0443u0447u0438u0442u044C u043Du0430u0437u0432u0430u043Du0438u0435
             * u0431u0430u0437u044B u0434u0430u043Du043Du044Bu0445
            public string GetDatabaseName()
                return InitialCatalog_Value;
             * u041Fu043Eu043Bu0443u0447u0438u0442u044C u0438u043Cu044F
             * u0442u0435u043Au0443u0449u0435u0433u043E u043Fu043Eu043Bu044Cu0437u043Eu0432u0430u0442u0435u043Bu044F
            public string GetUserName()
                return UserID_Value;
             * u041Fu043Eu043Bu0443u0447u0438u0442u044C u043Fu0430u0440u043Eu043Bu044C
             * u0442u0435u043Au0443u0449u0435u0433u043E u043Fu043Eu043Bu044Cu0437u043Eu0432u0430u0442u0435u043Bu044F
            public string GetPassword()
                return Password_Value;
             * u041Fu0435u0440u0435u0432u043Eu0434 u0441u0442u0440u0443u043Au0442u0443u0440u044B u0432 u0442u0435u043Au0441u0442u043Eu0432u044Bu0439 u0432u0438u0434
             * u0434u043Bu044F u0438u0441u043Fu043Eu043Bu044Cu0437u043Eu0432u0430u043Du0438u044F u043Fu0440u0438 u0441u043Eu0437u0434u0430u043Du0438u0438 u043Au043Eu043Du043Du0435u043Au0442u043Eu0440u0430
            public override string ToString()
                return "Data Source="+DataSource_Value+";Initial Catalog="+
                    InitialCatalog_Value+";User ID="+UserID_Value+";Password="+
                    Password_Value;
         * u0424u0443u043Du043Au0446u0438u044F u043Fu043Eu043Bu0443u0447u0435u043Du0438u044F u0441u0442u0440u043Eu043Au0438 u043Fu043Eu0434u043Au043Bu044Eu0447u0435u043Du0438u044F u043Fu043E u0443u043Cu043Eu043Bu0447u0430u043Du0438u044E
         * u043Du0443u0436u043Du0430 u0431u044Bu043Bu0430 u0434u043Bu044F u0442u0435u0441u0442u043Eu0432
        static private string GetDefaultConnectionString()
            return "Data Source=BSRV01;Initial Catalog=Prokat_Last;User ID=sa;Password=";
         * u0412u043Du0443u0442u0440u0435u043Du043Du044Fu044F u0441u0442u0440u043Eu043Au0430 u043Fu043Eu0434u043Au043Bu044Eu0447u0435u043Du0438u044F
         * u043Du0435 u0434u043Eu0441u0442u0443u043Fu043Du0430 u0434u043Bu044F u0432u044Bu0437u043Eu0432u0430 u043Du0430u043Fu0440u044Fu043Cu0443u044E
        private ConnectionString localConnectionString;
         * u0423u0441u0442u0430u043Du043Eu0432u0438u0442u044C u0441u0442u0440u043Eu043Au0443 u0432u043Du0443u0442u0440u0435u043Du043Du0435u0433u043E u043Fu043Eu0434u043Au043Bu044Eu0447u0435u043Du0438u044F
        public void SetConnectionString(ConnectionString CS)
            this.localConnectionString = CS;
         * u041Fu043Eu043Bu0443u0447u0438u0442u044C u0441u0442u0440u043Eu043Au0443 u0432u043Du0443u0442u0440u0435u043Du043Du0435u0433u043E u043Fu043Eu0434u043Au043Bu044Eu0447u0435u043Du0438u044F
        public ConnectionString GetConnectionString()
            return this.localConnectionString;
         * u0424u0443u043Du043Au0446u0438u044F u0443u0434u0430u043Bu0435u043Du0438u044F u0432u0440u0435u043Cu0435u043Du043Du043Eu0433u043E u0444u0430u0439u043Bu0430
         * u043Fu043Eu0441u043Bu0435 u0437u0430u0432u0435u0440u0448u0435u043Du0438u044F u0432u0441u0435u0445 u043Eu043Fu0435u0440u0430u0446u0438u0439 u0441 u0448u0430u0431u043Bu043Eu043Du043Eu043C
        private void MainForm_FormClosed(object sender, FormClosedEventArgs e)
            if (FileTreeView.Nodes.Count!=0)
                if (File.Exists(TemplateFilePath))
                    File.Delete(TemplateFilePath);
         * u041Eu0431u0440u0430u0431u043Eu0442u0447u0438u043A u0434u0432u043Eu0439u043Du043Eu0433u043E u043Au043Bu0438u043Au0430
         * u043Fu043E u0448u0430u0431u043Bu043Eu043Du0443 u0432 u0434u0435u0440u0435u0432u0435 u0444u0430u0439u043Bu043Eu0432
        public void FileTreeView_DoubleClick(object sender, EventArgs e)
            int Result = 0;
            try
                Result = ParseReportWithDataBase();
                if (Result == 0)
                    Result = ParseReport(TempFilePath + FileTreeView.SelectedNode.Text.ToString() + ".rpt");
                    if (Result == 0)
                        Process.Start(TemplateFilePath);
                else
                    MessageBox.Show("u0424u0430u0439u043B u043Du0435 u043Cu043Eu0436u0435u0442 u0431u044Bu0442u044C u043Eu0442u043Au0440u044Bu0442!");
            catch (Exception ex)
                MessageBox.Show(ex.Message);
         * u041Fu043Eu043Bu0443u0447u0435u043Du0438u0435 u0432u0441u0435u0445 u0444u0430u0439u043Bu043Eu0432 u0441 u0440u0430u0441u0448u0438u0440u0435u043Du0438u0435u043C .rpt
         * u0438u0437 u0431u0430u0437u044B u043A u043Au043Eu0442u043Eu0440u043Eu0439 u043Fu0440u0438u0441u043Eu0435u0434u0438u043Du0438u043Bu0438u0441u044C
        public void GetReportNamesFromDataBase(ConnectionString CS)
            try
                SqlConnection C = new SqlConnection(CS.ToString());
                SqlDataAdapter adapter = new SqlDataAdapter();
                DataTable table = new DataTable();
                table.Clear();
                string sqlcom = "Select P115 from " + GetDataViewName(CS,"24") + " where P116 like '%.rpt'";
                SqlCommand Q1 = new SqlCommand(sqlcom,C);
                Q1.CommandType = CommandType.Text;
                adapter.SelectCommand = Q1;
                adapter.Fill(table);
                FileTreeView.Nodes.Clear();
                for (int i = 0; i < table.Rows.Count; i++)
                        FileTreeView.Nodes.Add(table.Rows<i>.ItemArray.GetValue(
                            table.Rows<i>.ItemArray.Length-1).ToString());
//                        MessageBox.Show(table.Rows<i>.ItemArray.GetValue(0).ToString());
                C.Close();
            catch (Exception ex)
                MessageBox.Show(ex.Message);
         * u041Fu043Eu043Bu0443u0447u0438u0442u044C u0438u043Cu044F DataView
         * u0434u043Bu044F u0442u0435u043Au0443u0449u0435u0433u043E u043Fu043Eu043Bu044Cu0437u043Eu0432u0430u0442u0435u043Bu044F
        private string GetDataViewName(ConnectionString CS,string ClassID)
            string ViewName = "";
            SqlConnection C = new SqlConnection(CS.ToString());
            C.Open();
            SqlCommand Q = new SqlCommand("[dbo].[_SysGetClassesInfoNew1]"/*P115 from dbo.Attr24 where P116='.rpt'*/, C);
            Q.CommandType = CommandType.Text;
            SqlDataAdapter adapter = new SqlDataAdapter();
            adapter.SelectCommand = Q;
            DataTable table = new DataTable();
            adapter.Fill(table);
            for (int i = 0; i < table.Rows.Count; i++)
                if (table.Rows<i>.ItemArray.GetValue(0).ToString() == ClassID)
                    ViewName = table.Rows<i>.ItemArray.GetValue(13).ToString();
                    // MessageBox.Show(ViewName);
            C.Close();
            return ViewName;
         * u041Eu0431u0440u0430u0431u043Eu0442u0447u0438u043A u043Au043Bu0438u043Au0430 u043Du0430 u0432u044Bu043Fu0430u0434u0430u044Eu0449u0435u043C
         * u043Cu0435u043Du044E u0432 u043Fu0443u043Du043Au0442u0435 "Delete"
        private void deleteToolStripMenuItem_Click(object sender, EventArgs e)
            FileTreeView.SelectedNode.Remove();

Similar Messages

  • I can not synchronize data from the prelude livelog

    I can not synchronize data from the prelude livelog apparently seems to be all right, more aprasenta the following message: The Open Clip does not support XMP.
    The Prelude can not apply metadata in it.
    please can someone help me

    Hi -
    When it comes to AVCHD footage, Prelude wants to leverage the complex folder structure in order to save metadata. If the file is just the *.MTS file and is not part of the original folder structure, Prelude will report it cannot write metadata to the file. You can transcode the *.MTS to another format and then add metadata.
    We are looking at future solution for what we call "naked MTS file", but unfortunately that is not part of the currently released product version.
    Michael

  • 've Password job a year ago to Mobil iPhone 4, and now lost and I can not wipe data from the device or transferred to the new device .. What do I do?

    've Password job a year ago to Mobil iPhone 4, and now lost and I can not wipe data from the device or transferred to the new device .. What do I do?

    iPhones require a SIM for activation.
    Put the device in DFU mode (google it) and restore via iTunes.

  • Not getting data in the report.

    Hi BW Experts,
    I have Changed the display attribute to Navigational attribute for 0BP_FSTNAME of 0BPARTNER.I have switched on in the Cube as Navigational Attribute.I have checked the table /BI0/SBPARTNER and it contains the data. In Query Designer, i can the 0BP_FSTNAME as seperate Characteristic.When i execute the query, # Values are displaying in the report.
    I have loaded the master data again for 0BPARTNER_ATTR.
    I have tried to laod Attribute Change run, but 0BP_FSTNAME is not displayed in the list.
    But still i couldnt able to see the data in the report.
    Can u pls help on this issue.
    Thanks,
    Jelina.

    Hi,
    Do one thing.
    See what all records you get in the cube for the selections which you have given on the report.Give the same selection in the cubes and pick some records for you analysis.
    pick the value of BPARTNER from all those records.
    Now check the table /BI0/PBPARTNER and check inside that if it stores values for 0BP_FSTNAME or not for the same value of BPARTNER in the cube.
    If it stores then try to activate the master data again and see if it shows up in the report.
    If not then it will show up in blank.
    use the transaction LISTCUBE to see all the values in the inforpovider and give the same selections and restrcitions here which you have given in the report.
    Also if this query is based on a multiprovider...then you need to give proper identification...that is the this char should be identified from all the underlying cubes.
    Thanks
    Ajeet

  • Can not retrieve data in Crystal Report

    Hi,
    I have a problem to load data from <i><b>Crystal Report</b></i> in an SBO form with the ActiveX DI object : the Crystal Report Viewer message display : <b><i>'Failed to retrieve data from the database. Details [Database Vendor Code:208]'</i></b>
    It seems do not change the name of database in SQL Crystal Report query : My SQL query in Crystal Report file is a generic query : it must run with all custom database with the same datatable ; so the database name in FROM  clause must be change with the SetLogonInfo : but it do not run !
    Have you an idea ?
    Francis
    Here my code :
    Public Class frm_CRViewer
    ' Adding References of project : CRAXDRT and CrystalActiveXReportViewerLib11
    Private WithEvents MRO_CRV As
    CrystalActiveXReportViewerLib11.CrystalActiveXReportViewer
    Public Sub New()
    Dim msa_Form As SAPbouiCOM.Form
    Dim dsa_ActiveX As SAPbouiCOM.ActiveX ' Item <ActiveX> from form XML
    dsa_ActiveX = msa_Form.Items.Item("axCRV").Specific()
    dsa_ActiveX.ClassID = "CrystalReports11.ActiveXReportViewer.1"
    MRO_CRV = dsa_ActiveX.Object
    ' Create the crystal application
    Dim dob_ReportApp As New CRAXDRT.Application
    ' Open the report
    Dim dob_Report As New CRAXDRT.Report
    dob_Report = dob_ReportApp.OpenReport("c:MyTest.rpt")
    ' Defined to log on to the data source, and change the database name in FROM clause
    Dim dob_Table As CRAXDRT.DatabaseTable
    For Each dob_Table In dob_Report.Database.Tables
         dob_Table.SetLogOnInfo("192.168.2.10", "AeroOneDemo", "sa", "45dfrfg5")
    Next
    ' The report have a parameter in the sql query
    dob_Report.ParameterFields.Item(1).DiscreteOrRangeKind = CRAXDRT.CRDiscreteOrRangeKind.crDiscreteValue
    dob_Report.ParameterFields.Item(1).AddCurrentValue("15")
    ' Display the report in SBO form
    Title = pst_ReportName
    MRO_CRV.ReportSource = dob_Report
    MRO_CRV.ViewReport()
    End Sub
    End Class

    Try these ...
    <a href="http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2002650&sliceId=&dialogID=7002531&stateId=1%200%207004328">http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2002650&sliceId=&dialogID=7002531&stateId=1%200%207004328</a>
    or
    <a href="http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2000957&sliceId=&dialogID=7002728&stateId=1%200%207004460">http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2000957&sliceId=&dialogID=7002728&stateId=1%200%207004460</a>
    or
    <a href="http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2001075&sliceId=&dialogID=7002728&stateId=1%200%207004460">http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2001075&sliceId=&dialogID=7002728&stateId=1%200%207004460</a>
    or
    [url=http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2003637&sliceId=&dialogID=7002728&stateId=1%200%207004460]http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2003637&sliceId=&dialogID=7002728&stateId=1%200%207004460[/url]

  • I can not get data from the sensor lsm330dl-i​2c (LM3S8962)

    Hello
    Can you please tell how to configure the i2c for LSM330dl. The application my program, and part of the datasheet.
    thank you
    Attachments:
    545.jpg ‏35 KB
    1.jpg ‏206 KB
    2.jpg ‏178 KB

    Hi,
    I was taking a look at your code and the following example LabVIEW Embedded for ARM I2C Example  and there may be an issue with the front panel not updating correctly.  Can you use breakpoints and probes to check the wire values?  This will let you verify whether the values are actually coming through and just not updating on the front panel.
    Also are you able to run that example (you'll have to create a new ARM project to use the example with the LM3S8962)?  The example looks very similar to what you are already doing.
    Cheers,
    Scott A
    SSP Product Manager
    National Instruments

  • Can not load data into the ods.

    When I was trying to load data into BW3.5 from R3 system, I am getting this message
    "For InfoSource ZSD_A507_011, there is no Hierarchies for master data in source system R3PCLNT300
    "  any idea.  There is no hierarchies for this.

    Hello Mat,
    What are you trying to load??
    If the data source is a hierarchy datasource??
    just check this thread
    There are no hierarchies for this InfoSource in source system
    Thanks
    Ajeet

  • How can i stop data in the report when it is falling apart.

    pls help me

    Simple Example :
    tables : lfa1.
    select-options s_lifnr for lfa1-lifnr.
    data : begin of i_lfa1 occurs 0 ,
           lifnr like lfa1-lifnr,
           name1 like lfa1-name1,
           land1 like lfa1-land1,
           end of i_lfa1.
    start-of-selection.
    select lifnr
           name1
           land1 from lfa1
           into table i_lfa1
    where lifnr in s_lifnr.
    <b>if sy-subrc ne 0.
    give error message.
    endif.</b>

  • Could not see the data in the report

    Hi,
    BOXI R3.1 is intalled newly in my sytem.Through Infoview,when i refresh a new report, though data is getting into the report ,I am not able to see the data in the report plus the Header color is blue and the rest of the row colors are displaying as yellow.
    when I am logging in another machine i am able to see the data.Please help me in solving this issue.
    Thanks in Advance.
    Regards,
    Spandana.

    Spandana,
    As suggested, JVM is problem. You can find out it at Control Panel == Java (Double-click) General tab == About button (See the build version) (build 1.6.0_20-b02). So you have to choose below 20 (I prefer 17).
    Alternatively, You might have several Java's running on your machine. Uninstall all Java versions and start developing reports or Editing any existing reports, now BO will prompt for you to install JVM, Run it, Now the problem is solved.
    Hope it should solves the issue.
    If you want to see the data:(now with yellow & blue)
    Select Column == properties == Read cell content as, change it to HTML.
    Thank You!!
    Sent from iPhone

  • Report prints Saved Data not Refreshed Data

    We were running VS 2005 and using the Basic CR 2005 Basic that comes with it.  We upgraded to use CR 2008 and found MANY issues after we went live in production that were apparent in the development.  This has caused a lot of stress with us as well as our users.  Iu2019ll summarize everything we found, possible workarounds and the open issues including the Printing/Loading of Saved Data.
    First, it was reported that printing changed.  It turns out when PrintMode = u2018PDFu2019 (default setting) it now asks after you choose u2018EXPORTu2019 (use to be u2018OKu2019) that it asks to Open or Save the Adobe.  When our customers were running 20 some reports at a time and we had hundreds of users, this became a nuisance for the heavy reporting users and a training issue in general for us.  With research, I found that we can change the PrintMode to be u2018ActiveXu2019.  This was much better when we were testing.  However, in Production it became a nightmare.  If the user is on a Domain that disallows itu2019s user from installing software or if the user has tight security settings, this became a nightmare.
    The second thing reported was that it was exporting to the wrong format.  It was exporting into RPT format.  It turns out with CR2008, it automatically defaults to RPT and the new pop-up, doesnu2019t isnu2019t clear to the user they even have a choice (the pop-up is much prettier, but it doesnu2019t look like a dropdown anymore).  In addition, they reported it was taking twice as long to export (we think it was related to export file type now).  With CR2005 Basic, it would have no default selection and if the user didnu2019t pick one, it would remind them they need to pick one.  After much research, I found there is no way to customize the operation of the export without writing my own export.  My users 90% of the time want to export to PDF and Excel the rest of the time.  Since we arenu2019t using a CR Server like product, they NEVER will do RPT.  There is no way with CR2008 to limit this list or to default the File Format.  So now, if they forget to select the type, they get the wrong file format instead of being reminded to select one.  Since the new pop-upu2019s dropdown selection isnu2019t easily apparent, this was a BIG issue for us.  Since I have close to 300 reports on 7 websites, this will be a lot of work for me to write my own code and change all the ASPX page to use my own control.
    The third thing reported was that the default name on Exporting was changed.  Export uses the ID property of the Crystal Report Viewer as the default name of a file on export.  When it replaced the viewer on all our pages, it set the ID to CrystalReportViewer1 instead of preserving the original ID.  We now have to go back and change them to what we wanted manually.  BEAWRE of this!  For our power users who wanted to export 40 reports they now have type the name in manually on all of them.  What took minutes now takes over an hour for them to do, until we can fix all the pages.
    Now it was reported that some reports are showing OLD data.  It turns out there shows Saved Data from design time.  In our site, we have a parameter page which getu2019s user selected parameters, save to a session and then load the report page using the session variables, and then redirect them to the report page which on page load we set the reports parameters.  We use the CrystalReportSource using ODBC.  The report has all the connection information.  Well if the user happens to select the same parameters I used at design time, it wonu2019t pull the data from the database.  They see our test data instead which is garbage.  If they select different parameters, display the report and then go back and select the original parameters, they will get the correct data.  This can be catastrophic for us!  So I added at the beginning of the Page Load before setting parameters the following:
         If Not Page.IsPostBack Then
                CRSServiceAlertsReport.ReportDocument.Refresh()
         End If
    This seemed to work.  A pain to add on every report page though when it wasnu2019t necessary before.  But then I just got called this morning and they say when they print, it prited the OLD data.  It seems the refresh pulled new data and updated the display in the viewer but the ActiveX print still used the original Saved Data!  I couldnu2019t find a solution for this.  I found switching PrintMode back to u2018Pdfu2019 worked but now I have the extra click issue again, which I described above.  I tried setting the reports u2018Discard Saved Datau2019 option but it still had the data!
    In the end, had I known about all these issues I would have NEVER upgraded to CR2008.  Iu2019m still looking for help on getting by the following:
    u2022     Stop using Saved Data at runtime (either on Display or Print)
    u2022     Getting the PrintMode=u2019Pdfu2019 to just pull up Adobe in Open mode without prompting the user.
    u2022     Remove File Type options from Export
    u2022     Set the default File Type options to nothing or something I want.
    Another nice feature to have would be the ActiveX control for printing to be part of the .NET Framework so users donu2019t need to download it.  Come on BO is a big company Iu2019m sure they can work with MS.  

    What is that method to clear Saved Data; I looked and couldn't find it.  I never had to call one in the prior version of CR 2005 Basic in .Net.  With the .NET controls, it always refreshed the data before.  This is a change in behavior for me.
    As for the Print using Adobe, with CR2005 Basic, it didn't prompt the user to Open or Save before.  This is new behavior.  It used to just open the report in Adobe in memory before without this specific prompt (it did have the first prompt for All or specific pages, but it would just open after that).  This is a change in behavior from prior versions and it has caused me several issues. 
    Many users don't like change and I didn't know to communicate this to them.  They were taken by surprise.  We'll learn to live it I guess, but I would ask you just to consider, why have an option to "Save" to PDF when you choose to print?  I would think you would use Export if you want to save.  It would never hurt to add an option to allow alternatives either.
    As for including with .NET Framework, it was just an idea.  I know how hard it can be working with third parties.  However, given that CR Basic comes with it, I thought it may be possible to work with them.  The better the integration the better the product is for the developers.  I was thinking the button could call JavaScript/Java to print instead of an ActiveX, or some other method.  Since I donu2019t know how the Control works, I couldnu2019t say.  It just would be nice.  I had a smiley face after that request, it didn't come out right when I saved the post.
    I still don't understand why .Refresh will update the data in the viewer but printing using the ActiveX Control will still print the saved data instead of refreshed data.  Since I never used this in the prior version I don't know what it would of done or not, but it just doesn't seem right it shows one set of data, and prints another.
    In addition, why the designer still saves data with the report when you state not to, I think may be a problem still.
    Edited by: Thomas Johnson on Nov 21, 2008 12:26 PM

  • How to use url to open report and refresh report's data,but the report's toolbar haven't "refresh data" button

    Post Author: madbird
    CA Forum: WebIntelligence Reporting
    HI,
    scenario is
    I hope use url to open the report,and refresh the report data,but I didn't the user use the "refresh data" button to refresh the report's data.How to do that?
    regards

    Post Author: madbird
    CA Forum: WebIntelligence Reporting
    Thank you for your attention, amr_foci .
    I created a Web Intelligence report,there will be more than 30 companies use.The company only allowed to see the Company Data. I want to use the url of the way, from my company in the development of the system to open report, and refresh reported Table data.but do not want users to use the toolbar of "data refresh" button to refresh the data .
    Now the question of identity authentication system, as well as statements by url open the question of Has been resolved, but it can not shield statements through the pages of "data refresh" button.
    In addition, I now used by the business object XI system is posted on the JAVA environment.
    Regards,

  • Report auto-refreshes data in the background

    Post Author: tpoland
    CA Forum: General
    I ran a very large report that does some formula calculations based on a sub-report, in all it takes about 30 minutes to process.  After it finished running I minimized Crystal and went on to work on some other things.  After about 5 minutes my system started crawling and when I looked at the CPU crw32.exe (Crystal XI) was using between 90 and 99% of the available CPU.  When I finally was able to maximize Crystal again I saw that it was refreshing the data in the report.  Is there a setting that I can use to prevent Crystal from doing this?
    Thanks,

    Post Author: bryanflora
    CA Forum: General
    新增網頁1
    Since you talked more about your requirement.
    My suggestion is still not to use subreport.
    And the better way is try to let the subreport result into a view.
    I guess your report should like this:
              PH
              Loc
              Amount
              Rank
              GH
              USA
              D
              CA
              10
              3
              D
              FL
              30
              1
              D
              PA
              20
              2
    The "Rank" is what you get from formula, right?
    You can prepare a view with a calculated field "rank" and joined the original
    table.

  • Have double bar and can not refresh the page.

    I've been trying to get the double line out but no such luck. Can not see enough of the line to find anything of the other/ refresh / etc. lines of the task bar.

    thanks for marking the question answered, it wiil help others
    Enjoy the phone

  • Data folder can not be opened in finding " AirPort Time Capsule " The operation can not be completed because the original item for " data" does not exist .

    Hi
    I have a " AirPort Time Capsule " (firmware 7.7.3) When I try to open the data folder in "finder". Then I got the message  " The operation can not be completed because the original item for " data" does not exist". I have a lot of data and I can understand why I get this message?
    Anyone who can help? Thanks..
    Br. Bo

    Get a USB drive of 2TB or more.. assuming your TC is 2TB. Either preformatted Mac or plug into your Mac and format it standard Mac OS Extended Journaled in disk utility.
    Do a full archive of the TC. You do this using airport utility. Do not click the erase disk.. I marked in green.. just the archive.. that is to backup the internal disk to the USB disk. It is not fast.. take it that the process will go at around 40-50GB/hr.
    Once you complete the archive .. it is a direct image of the data on your TC.. you can then plug it into your computer directly.. and then try and open the files you lost.. if you cannot open them.. open disk utility and fix the permissions.
    http://osxdaily.com/2015/01/13/repair-disk-permissions-mac-os-x/
    Or try the methods apple recommends..
    OS X Yosemite: Set permissions for items on your Mac
    It is possible to fix things on the USB drive because it is locally mounted.. but you cannot fix it on TC which is network drive.

  • Sharepoint powerBi PowerQuery- Can not refresh from the browser

    Hi all,
    I've used powerQuery to my Excel and called to Sharepoint List using PowerQuery.  Then i created a chart using using that list data. When i refresh the list (under WorkBook Queries it gives updated data). 
    Then i saved that spreadsheet and uploaded to sharepoint online document library.  I need to refresh data from the browser too. 
    I could see there is Data button which has Refresh Selected Connection as an option. It gives following error once i clicked on Refresh Connection button. 
    'select a refreshable region, such as pivot Table before clicking on the refresh selected connection button'
    Thank you

    Literally nothing happens. If I move the mouse over a clip, click and hold, then drag the mouse anywhere, it's literally as if I wasn't even clicking. And yeah, I'm using the selection tool.
    It's not a major problem, I'm just dealing with a project that has a lot of different clips and it's been a pretty big inconvenience.

Maybe you are looking for

  • Finder stalling/freezing (beachball 10mins.)

    Lately, I have been having problems with my iMac (Late 2006, 24", 2.16GHz) and I am very puzzled about the cause of it (plus how to fix it). Mac OS X 10.6.8, updated last week via Software Update. Not sure if it's related but first had Pages (Mac App

  • HELP !  Crystal Report 2011 TRIAL -  Can't Open Program WITHOUT AN ERROR

    Server: windows 2008 R2 1) Crystal Reports 2011 was installed using the Trial version. 2) Added the trial key in the form - OK. 3) Clicked to start Crystal Reports 2011 and a dialog box pops up: CRYSTAL REPORTS STOPPED WORKING ~~~~~~~~~~~~~~~~~~~~~~~

  • FRM-41214 when calling a report from a form in DS1012

    This is weird. I have a report that contains a lexical parameter that is intended to add an "AND" clause to the WHERE so I can use the same report to do an unrestricted query or a restricted query. To do an unrestricted query, this works fine: ls_par

  • Type of Aluminum

    Does anyone know what type of aluminum alloy (or aluminium) is used for the unibody? That is, what is the Aluminum Association alloy number?

  • Crash during Snow Leopard Update

    Hey guys, I just got an iPhone 5, and had to update my mac OS to accomodate... Had 10.5.8 and was upgrading to 10.6.8... Because this software was relased so long ago, I had to order it direct from apple on DVD... About halfway through the update, I