473,513 Members | 2,401 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how do i reference files in the User's Application Data Folder when deployed

hi

i have a report which i wish to reference from within the program
this is what i am currently using which is fine on my local computer.
crystalReportViewer1.ReportSource = "C:\\\\Documents and
Settings\\\\tigger\\\\My Documents\\\\Visual Studio
Projects\\\\theProgram\\\\Report.rpt";

but i wish to deploy the program how do i reference the report after i have
deployed it.
i have created a deployment project and have added the Report.rpt file into
the User's Application Data Folder.

thanks
tigger

Nov 16 '05 #1
1 4344
Use
System.Environment.GetFolderPath(System.Environmen t.SpecialFolder.Applicatio
nData) for accessing the folder.
It returns a string that gives you the path.

Cheers,
Branimir

--
Branimir Giurov
MCSD.NET, MCDBA
"tigger" <cy*********@hotmail.com> wrote in message
news:40******@dnews.tpgi.com.au...
hi

i have a report which i wish to reference from within the program
this is what i am currently using which is fine on my local computer.
crystalReportViewer1.ReportSource = "C:\\\\Documents and
Settings\\\\tigger\\\\My Documents\\\\Visual Studio
Projects\\\\theProgram\\\\Report.rpt";

but i wish to deploy the program how do i reference the report after i have deployed it.
i have created a deployment project and have added the Report.rpt file into the User's Application Data Folder.

thanks
tigger

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
436
by: Tim Blizard | last post by:
I know this topic has been discussed before but I couldn't find any thread more recent than about 18 months and was interested in what conclusions people had come to recently. Invariably 3...
7
3878
by: TJ | last post by:
In C# how do you achieve pass-by-reference property declarations in the Type Library? I am writing a COM Class Library that must mimick an existing library for which the only information is the...
4
14293
by: Brian Henry | last post by:
My project references Microsoft.MSHTML.Dll. It works perfectly fine on the development machine, but on the release machines that are in production use it says when you try to load a form that uses...
0
1991
by: Kleanthis | last post by:
I have a problem, when deploying multilingual applications using cab files on Compact Framework 2.0. It seems that something is going wrong with compact framework 2.0 Below I have a description...
3
4385
by: Richard Lewis Haggard | last post by:
We are having a lot of trouble with problems relating to failures relating to 'The located assembly's manifest definition with name 'xxx' does not match the assembly reference" but none of us here...
7
5126
by: Don | last post by:
Getting errors after following the MSDN article on using VB.NET (and VS2005) for "Implementing a Managed OnSave Event Sink" for Exchange Server 2007. Not sure, but part of the problem may be that...
4
24294
by: Joey | last post by:
asp.net 2/C#/VS2005 I have a web app where I use a stream writer to create a CSV (text) file. I then use my code to save the file in the site's 'App_Data' folder, in a subfolder called 'Temp'....
5
1667
by: =?Utf-8?B?VHJhY2tz?= | last post by:
I include some sample binary data files (produced by my software) with my application installation for the user to do what they want with. I put the files in the Users Personal Data...
3
4002
by: =?Utf-8?B?QXZpc2hheSBCZW4tWnZp?= | last post by:
Hi, I have an application that I am encrypting the connection strings on the first run of the application. I am using clickonce to deploy the application, so this was a good solution as the...
0
7264
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7166
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7543
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
5094
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4749
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3236
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1601
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
805
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
459
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.