Click here to Skip to main content
15,895,011 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Managed String to Unmanaged VARIANT Pin
Nish Nishant12-Jan-07 5:58
sitebuilderNish Nishant12-Jan-07 5:58 
GeneralRe: Managed String to Unmanaged VARIANT Pin
led mike12-Jan-07 7:25
led mike12-Jan-07 7:25 
AnswerRe: Managed String to Unmanaged VARIANT Pin
Nish Nishant12-Jan-07 6:01
sitebuilderNish Nishant12-Jan-07 6:01 
GeneralRe: Managed String to Unmanaged VARIANT Pin
picazo12-Jan-07 6:10
picazo12-Jan-07 6:10 
GeneralRe: Managed String to Unmanaged VARIANT Pin
Nish Nishant12-Jan-07 6:43
sitebuilderNish Nishant12-Jan-07 6:43 
Questionsmtp DLL needs minor adjustment Pin
Big Steve (C++)11-Jan-07 9:37
Big Steve (C++)11-Jan-07 9:37 
AnswerRe: smtp DLL needs minor adjustment Pin
Jonathan [Darka]11-Jan-07 22:27
professionalJonathan [Darka]11-Jan-07 22:27 
QuestionCrystal Report NOT visible from an VS 2003 C++ Dot NET 2003 MFC (Managed app). Pin
Madhu_TN11-Jan-07 8:14
Madhu_TN11-Jan-07 8:14 
I have posted this under Visual Studio too as i was unsure of the correct fourm.

I have a Crystal Report 10 report which i need to use in my app. I use Managed solution for this. There are no compiler or linker problems. I am not able to display this report on the screen but am able to print the report. I tried all member methods - Visible, Show, BringToFront, set_Size etc. Am i missing something.?

Here is the code snippet for your ref:

crReportDocument = new ReportDocument();
// MessageBox("Report Document Instance Created", "New Reports");

crReportDocument->Load("BATCHSQL.RPT");
// MessageBox("File Loaded to Report Document Instance ", "New Reports");


//Setup the connection information structure to be used
//to log onto the datasource for the report.
crConnectionInfo = new ConnectionInfo();

// MessageBox("Connection Info set", "New Reports");
//Get the table information from the report

crDatabase = crReportDocument->Database;
crTables = crDatabase->Tables;

// MessageBox("Start Looping through all tables in the REPORT", "New Reports");
//Loop through all tables in the report and apply the connection information for each table.

// MessageBox("Show the Report", "New Reports");
//Set the viewer to the report object to be previewed.
crViewer = new CrystalReportViewer();

crViewer->ReportSource = crReportDocument;
// MessageBox("View the Report", "New Reports");
crViewer->Location = System::Drawing::Point(60, 60);
crViewer->Size = System::Drawing::Size(750, 750);

crViewer->Show();
crViewer->BringToFront();
crViewer->Visible = TRUE ;
crViewer->RefreshReport();
crViewer->Zoom(200);
crViewer->DisplayToolbar = TRUE ;
crViewer->DisplayBackgroundEdge = TRUE;

// crViewer->PrintReport(); ---- This works
MessageBox("Refreshing of the Report Complete", "New Reports");
Any suggestions?
Thanks,
Madhu
Frown | :(
QuestionUsing of extern functions Pin
Epi10-Jan-07 22:46
Epi10-Jan-07 22:46 
AnswerRe: Using of extern functions Pin
bsaksida11-Jan-07 5:58
bsaksida11-Jan-07 5:58 
QuestionServer Client Application Pin
Saber00110-Jan-07 22:30
Saber00110-Jan-07 22:30 
AnswerRe: Server Client Application Pin
Mark Salsbery11-Jan-07 5:57
Mark Salsbery11-Jan-07 5:57 
Questionbeginthread error Pin
dellthinker10-Jan-07 13:15
dellthinker10-Jan-07 13:15 
AnswerRe: beginthread error Pin
Mark Salsbery10-Jan-07 13:34
Mark Salsbery10-Jan-07 13:34 
GeneralRe: beginthread error Pin
dellthinker10-Jan-07 13:51
dellthinker10-Jan-07 13:51 
GeneralRe: beginthread error Pin
Mark Salsbery10-Jan-07 14:01
Mark Salsbery10-Jan-07 14:01 
GeneralRe: beginthread error Pin
Mark Salsbery10-Jan-07 14:08
Mark Salsbery10-Jan-07 14:08 
Question"Failed to load toolbox item..." [modified] Pin
Xpnctoc9-Jan-07 17:03
Xpnctoc9-Jan-07 17:03 
AnswerRe: "Failed to load toolbox item..." Pin
bsaksida10-Jan-07 9:58
bsaksida10-Jan-07 9:58 
GeneralRe: "Failed to load toolbox item..." Pin
Xpnctoc11-Jan-07 5:28
Xpnctoc11-Jan-07 5:28 
GeneralRe: "Failed to load toolbox item..." Pin
Xpnctoc11-Jan-07 15:48
Xpnctoc11-Jan-07 15:48 
GeneralRe: "Failed to load toolbox item..." Pin
bsaksida11-Jan-07 21:06
bsaksida11-Jan-07 21:06 
Questionstatic const from MC++ to C# via DLL [modified] Pin
ShermansLagoon7-Jan-07 23:03
ShermansLagoon7-Jan-07 23:03 
AnswerRe: static const from MC++ to C# via DLL Pin
User 5838528-Jan-07 12:17
User 5838528-Jan-07 12:17 
GeneralRe: static const from MC++ to C# via DLL Pin
ShermansLagoon8-Jan-07 20:53
ShermansLagoon8-Jan-07 20:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.