Click here to Skip to main content
15,907,329 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralMaintaining form layout despite resolution change Pin
Ahmad Zaidi5-Dec-07 22:48
Ahmad Zaidi5-Dec-07 22:48 
GeneralRe: Maintaining form layout despite resolution change Pin
harveyhanson5-Dec-07 22:58
harveyhanson5-Dec-07 22:58 
Questiongroup policy Coding Pin
skhurams5-Dec-07 20:52
skhurams5-Dec-07 20:52 
GeneralRe: group policy Coding Pin
Dave Kreskowiak6-Dec-07 9:22
mveDave Kreskowiak6-Dec-07 9:22 
QuestionHow to display Crystall Reports. Pin
SekharOne5-Dec-07 19:57
SekharOne5-Dec-07 19:57 
AnswerRe: How to display Crystall Reports. Pin
Ujjaval Modi5-Dec-07 20:23
Ujjaval Modi5-Dec-07 20:23 
GeneralRe: How to display Crystall Reports. Pin
.Net Programmer(129399)15-May-08 10:35
.Net Programmer(129399)15-May-08 10:35 
AnswerRe: How to display Crystall Reports. Pin
CKnig5-Dec-07 20:23
CKnig5-Dec-07 20:23 
I assume you've got an db-view connected to the report. Normaly you don't have to provide the connection string anymore (it's hardwired into the generated report-class), if not you can allways use the DataSource-property of the report.

To show the report you need the CrystalReportViewer-Control (well it should be named something like this). Just put it on a form and set the ReportSource - property of the control to an instance of your report-class (same name as your report - get's generated - sometimes CR has problems with namespaces so look into the object browser) - that's it.

If you just want to print the report you can use the print-functions of the report without the viewer (same for exports - great for PDFs and so on).

Bye the way: I normaly use CR with datasets (so I greate an dataadapter for the dataview I like to see, create the CR with this dataset and then do something like:

<br />
dim report as new CrystalReport1<br />
report.SetDataSource(ctype(dataadapter.GetData(),DataTable))<br />
crviewer1.ReportSource = report<br />


This way I can pass parameters for the view in GetData (if I have any) - filtering in CR tended to be done on the client (i.e. all the data of the table/view was passed to the report and THEN filtered WTF | :WTF: - don't know if this is still the case but I use the above approach anyway ... )
QuestionThread.Sleep() executed before finishing Paint Event Pin
bj930815-Dec-07 18:01
bj930815-Dec-07 18:01 
GeneralRe: Thread.Sleep() executed before finishing Paint Event Pin
CKnig5-Dec-07 18:23
CKnig5-Dec-07 18:23 
QuestionRe: Thread.Sleep() executed before finishing Paint Event Pin
bj930816-Dec-07 18:27
bj930816-Dec-07 18:27 
GeneralRe: Thread.Sleep() executed before finishing Paint Event Pin
Dave Kreskowiak7-Dec-07 1:37
mveDave Kreskowiak7-Dec-07 1:37 
GeneralRe: Thread.Sleep() executed before finishing Paint Event Pin
bj930817-Dec-07 16:22
bj930817-Dec-07 16:22 
GeneralRe: Thread.Sleep() executed before finishing Paint Event Pin
Dave Kreskowiak8-Dec-07 3:57
mveDave Kreskowiak8-Dec-07 3:57 
GeneralRe: Thread.Sleep() executed before finishing Paint Event [modified] Pin
bj9308110-Dec-07 7:43
bj9308110-Dec-07 7:43 
QuestionHow to free the .dll after unloading the appdomain? Pin
cstrader2325-Dec-07 17:08
cstrader2325-Dec-07 17:08 
AnswerRe: How to free the .dll after unloading the appdomain? Pin
Dave Kreskowiak6-Dec-07 1:37
mveDave Kreskowiak6-Dec-07 1:37 
GeneralRe: How to free the .dll after unloading the appdomain? Pin
cstrader2326-Dec-07 5:47
cstrader2326-Dec-07 5:47 
GeneralBindingSource variable used before being assigned a value Pin
AAGTHosting5-Dec-07 13:12
AAGTHosting5-Dec-07 13:12 
GeneralRe: BindingSource variable used before being assigned a value Pin
Dave Kreskowiak5-Dec-07 16:28
mveDave Kreskowiak5-Dec-07 16:28 
GeneralRe: BindingSource variable used before being assigned a value Pin
AAGTHosting3-Jan-08 9:54
AAGTHosting3-Jan-08 9:54 
GeneralTableAdapter.FillBy Method Pin
AAGTHosting5-Dec-07 10:12
AAGTHosting5-Dec-07 10:12 
GeneralRe: TableAdapter.FillBy Method Pin
Dave Kreskowiak5-Dec-07 11:01
mveDave Kreskowiak5-Dec-07 11:01 
GeneralRe: TableAdapter.FillBy Method Pin
AAGTHosting5-Dec-07 12:20
AAGTHosting5-Dec-07 12:20 
GeneralRe: TableAdapter.FillBy Method Pin
Dave Kreskowiak5-Dec-07 16:24
mveDave Kreskowiak5-Dec-07 16:24 

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.