Wrox Programmer Forums
|
Visual Studio 2005 For discussing Visual Studio 2005. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 24th, 2007, 09:58 PM
Registered User
 
Join Date: Apr 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Passing Value to Local Report

In VB 2005, I want to pass a value from Form1 to Report(Form2 Report1.RDLC ). Could some one help me pls.

 
Old April 26th, 2007, 02:01 AM
Registered User
 
Join Date: Jan 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Shashikanta
Default

You can use byReference in a function to recieve any changes on the original global variable.

You can pass this value byReference through function.

I think It will help you

Shashikanta,
B.Tech(CSE)
College Of Engg.& Tech.,
Bhubaneswar.
 
Old April 27th, 2007, 07:49 AM
Registered User
 
Join Date: Apr 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Here is three cases to solve - Form1 and Form2 should Active

1)
Declare variable as Public
Public myValue as Integer = 10

then access it in Form2 like
label1.text = Form1.myValue

2)
access Form1 control from Form2
Form1.Controls("ControlID").text

3)
pass value to Form2's local function from Form1
Form2.GetValueFrom(myValue)









Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing From A Local Report Ardvisoor Reporting Services 0 May 24th, 2006 06:01 AM
Passing Parameters to a Report. Roopedog Crystal Reports 4 July 25th, 2005 02:17 AM
Crystal Report is not printed to the local printer pratyush_k Crystal Reports 0 June 29th, 2005 09:07 AM
Passing Querystringinto the report iamguyster BOOK: Professional Crystal Reports for VS.NET 0 December 8th, 2004 11:30 AM
Setting path to local "C" drive for crystal report rajupusapati Crystal Reports 2 June 17th, 2004 11:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.