 |
|
 |
I am a VBNET developer, I am not comfortable with VC++
If you don't mine please send me an example to use it as a control for VBNET
Thank you so much
My mail: cuvancuoi@yahoo.com
|
|
|
|
 |
|
 |
Your Release run well but when i build, my debug application run with error at line pCtrlReportDesigner.SetReportObject(m_Report);
|
|
|
|
 |
|
|
 |
|
 |
Dear Tarek Ahmet Abdel,
How to add database object to a report in VC++ ?
How to create dynamic Crystal Report in VC++?
/// this is my code
IApplicationPtr m_pApplication;
IReportPtr m_pReport;
IFieldObjectPtr m_pobjDetail[3]; // fields pointers array for three objects
ITextObjectPtr m_pobjHeader[3]; // text pointers array for three objects
ITextObjectPtr m_pobjFooter; // fields pointer for report footer
CCrystalReportViewer4* m_pCryst;
CAdodc m_ctlADODC; // Microsoft ADO Data Control
At application startup I'm initializing m_pApplication and creating CCrystalReportViewer4 object:
...
m_pApplication.CreateInstance("CrystalRuntime.Application");
m_pCryst=new CCrystalReportViewer4;
...
After that I'm creating ADO Data Control window. When user selects a new database, I'm setting new
ADO record source and creating new report during run-time at the following manner:
ISectionPtr pSection,pHeaderSection,pFooterSection;
ISectionPtr pGroupSection;
// get reference to my ADO recordset
CAdodc& refADO=m_ctlADODC;
C_Recordset& rc=refADO.GetRecordset();
How to used this is metods
// creating a new report (***)
m_pReport = m_pApplication->NewReport();
m_pReport->Database->Tables->Add(???);
...
How to create dynamic Crystal Report in VC++?
thanks.
thanks ,
Best Regards
|
|
|
|
 |
|
 |
Hello Sir,
It really best solution to create runtime report.
As I am a C# developer, I am not comfortable with VC++
If you don't mine please send me an example to use it as a control
In c# project or code to use this utility.
I am highly grateful to you.
my mail ID is [kiranrokade9988@gmail.com]
|
|
|
|
 |
|
 |
My application is working fine, as long as you don't try to open the dialog with the report a second time.
I'm not sure what it is, but I'm getting an assertion when trying to load the dialog failing in afxwin2.inl on the following lines:
_AFXWIN_INLINE void CWnd::UpdateWindow()
{ ASSERT(::IsWindow(m_hWnd)); ::UpdateWindow(m_hWnd); }
It must be a window inside the activeX control as I've checked the activeX control window itself and the dialog to ensure that both windows in fact do exist. Neither cause an assertion.
So I can only assume that this is caused by a control that lives inside the activeX control perhaps?
Has anyone experienced this issue, and possibly come up with a work around?
Thanks.
|
|
|
|
 |
|
 |
Hi sir
I am working with windows forms application(C#.net) and here through this user will be able to load any Crystal report file from combobox suppose in a window or form and he should be able to design the format of Crystal report Is this is possible if yes then please tell me how.what things i need for that currently i am working with visual studio 2005, sqlserver2000,windows2000.
if u can provide me any executable whcich can run with .net application
or any sample application will be great help.
my mail Id is <vinodkv.cegon@gmail.com>
Thanks and best regards
vinod varma
modified on Wednesday, December 31, 2008 6:06 AM
|
|
|
|
 |
|
 |
From
R.SankaraNarayanan
Respected Sir,
The VC++ Code for Integrate Crystal Reports Runtime Designer & Viewer With MFC Projects Works fine but the code does not work for New Report.
I need the updated correct Craxdrt.dll for Crystal Report 10.0.
Kindly if any one have this send it to my email id.
My email id is baskar1@email.com.
You can send the Dll to my email id:baskar1@email.com.
|
|
|
|
 |
|
 |
Hi
I'm already installed 'CR10' pro and 'CrystalReports10_NET_Embedded',but i got error 'The activeX control not installed on my PC'!!
How 2 register it?!!
Thanx
|
|
|
|
 |
|
 |
i am using Crystal Reports XI in VC++ 6.0. I am trying to use the RunReportWizard method in the following way.
m_Application->RunReportWizard(m_Report," ");
//where m_Report is IReportPtr and m_Application is IApplicationPtr.
Is it correct. also please tell me if there is anyway i can restrict the report wizard to a certain single database connection
only. please help.
|
|
|
|
 |
|
 |
Actually in crystal report 11 IApplicationPtr and IReportPtr are not provided.
I don't know the alternative for that, if have you got the solution give me that it will be helpful to me.
|
|
|
|
 |
|
 |
I am looking for a way to use crystal report 10 Dev from mfc application(VC6).
I wish to use CDO & TTX program.
But... It's information is little.
I get CR8.0 source.
ICrystalDataObjectPtr cdoRowSet;
cdoRowSet.CreateDispatch("CrystalDataObject.CrystalComObject");
-> Maybe... Don't Create Dispatch.
CR8.5 is success.
But CR10 is a failure.
Plz... How to use CR10 - CDO & TTX...
E-Mail : vvycjjj0@naver.com
|
|
|
|
 |
|
 |
hi ...
please..... i don't know how could i create report with vc++6 using crystal report XI , when i added the ActiveX component (Crystal ActiveX Report Viewer Control 11) , two classes have added to my project :
CCrystal Report Viewer 11 , and CCRVtrack Cursor Info .
so how could i use these classes ?? and is there any tutorial or sample code avaliable somewhere .
thanks alot for interest in my query .
|
|
|
|
 |
|
 |
lallaba wrote: is there any tutorial or sample code avaliable somewhere .
Download my code form Article.
Tarek Abdel Rahmane.
|
|
|
|
 |
|
 |
Hi
Thanx Tarek, It's good article
I'm already installed 'CR10' pro and 'CrystalReports10_NET_Embedded',but i got error 'The activeX control not installed on my PC'!!
How 2 register it?
Thanx again
Be attention!!
|
|
|
|
 |
|
 |
i am looking for a way to use crystal reports from mfc application (i used vc6). i read your article then i tried that ..(from Project->Add To Project-> Components and control),but i did not find "Crystal ActiveX Viewer 10.0",does that component exist by default with vc6,and what can i do to use it .
thanks alot ......
|
|
|
|
 |
|
|
 |
|
 |
I have tried your example but i couldn't run it.
I have a trial version of Crystal Reports 11, your example contains reference to ActiveX from Crystal Reports 10, which is not registered on my PC. I could not nor run the program neither edit the dialog, which has the CR10 ActiveX control.
can you please provide an example with the Crystal Reports 11 1ActiveX ?
(a bottle of a good German beer is the Regard )
|
|
|
|
 |
|
 |
you can remove CRP10 referance and use CRP11 ocx insted of CRP v10
|
|
|
|
 |
|
 |
It works fine on the PC I comiled on which has VC++6 and CR10
but How can I run it on a PC that doesn't have both?
|
|
|
|
 |
|
|
 |
|
 |
So now i can use the Crystal Report as
i use it with VB .
Then this will be a great help to me &
will like to thank u a lot
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
 |
|
 |
i agree with you you can use Crystal Report from vb so easy
but the COM Work from vc is so difficult
Tarek Abdel Rahmane
|
|
|
|
 |
|
 |
you can use CrystalReportviewer control and Adding he AddReference Crystal Activex Report viewer library10.0. And the following code is add
Dim crapp as new CRAXDRT.Application Dim Crr as New CRAXDRT.Report Set Report=Crapp.openReport("C:\Report1.rpt") Crview.ReportSource=Report Crview.viewReport where Crview is CrystalReportviewer control. sandeep saxena 23:14 14 Jan '07
|
|
|
|
 |