If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Crystal Reports > C++ port to Crystal XI R2 from 8.5

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-25-11, 11:34
claytonids claytonids is offline
Registered User
 
Join Date: Apr 2004
Posts: 6
C++ port to Crystal XI R2 from 8.5

We have 11.5.12.1838 when we do about
Visual c++ 6.0

We have uninstalled 8.5 completely from my knowledge. do not know if any left over dlls though or registry how to check registry for old. We have looked through SAP forums and I have a list. Some have questioned as well the 115, or 11 or etc. What is the answer because of the following we want to distribute properly. Thank you for your time.


We have tried the following three lines. When we do the top two we DO NOT get an Exception but the report fails to open below as indicated. We even tried Business Object samples as well. If we do 11, the Create gets an exception but the report opens.
// theApp.pApplication.CreateInstance("CrystalRuntime .Application");
// theApp.pApplication.CreateInstance("CrystalRuntime .Application.115");
pApplication.CreateInstance("CrystalRuntime.Applic ation.11");
ViewReport();


theApp.ReportRan = true;
CString test;
CWaitCursor wait;
wait.Restore();

VARIANT m_incident_id, m_device_id;
VariantInit(&m_incident_id);
VariantInit(&m_device_id);

//******** Open the report ***********
pReport = pApplication->OpenReport(ReportPath); ****FAILS HERE IF THE TOP TWO CREATE INSTANCE BUT WORKS IF WE DO CREATE on 11

//******** Assign parameter values **********
m_incident_id.vt = VT_I4;
m_device_id.vt = VT_I4;

m_incident_id.lVal = m_IncidentID;
m_device_id.lVal = m_DeviceID;

pReport->ParameterFields->Item[1]->AddCurrentValue(m_incident_id);
pReport->ParameterFields->Item[2]->AddCurrentValue(m_device_id);

m_crViewCRXI.SetReportSource(pReport);
m_crViewCRXI.ViewReport();
// CRViewer1.ReportSource = Report
//Set the PrintMode property to 0 for PDF printing, or 1 for ActiveX printing.
// m_crViewCRXI.PrintReport();
m_crViewCRXI.Zoom(1);
Reply With Quote
Reply

Tags
crystal reports, crystal reports xi, xir2

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On