|
|
What's the actual path you're trying to save to?
|
|
|
|
|
IF File.CreateText is the failing statement, THEN the obvious question is: did you bother looking at the value of strFolderName + strFileName ? does strFileName really start with a backslash? strFolderName sure doesn't end on one.
Why can't you debug a simple piece of code yourself? And didn't Exception.ToString() tell you the same?
Luc Pattyn
Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
I had the same[^] thing happen to me yesterday - people ask questions, and you respond with a question, and they say 'thank you', which I guess means, 'I don't understand a word you just said'.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
The human mind works in mysterious ways.
Or, all some need is a bit of sympathy?
Luc Pattyn
Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
//give you a example, may help you
if(saveFileDialog.ShowDialog()==DialogResult.OK)
{
fName=saveFileDialog.FileName;
File fSaveAs=new File(fName);
isFileHaveName=true;
fSaveAs.WriteFile(richTextBox1.Text);
}
//you should use try...Catch{}...
try
{
// open and write file
}
catch
{
// file exception
}
finally
{
sw.close();
}
April
Comm100 - Leading Live Chat Software Provider
|
|
|
|
|
i m create a project which is very much similer to ms word in which user creste his own document and save it how can i give a new extension to document which is craeted by using y own project
|
|
|
|
|
string filename = "Doc1.[my extension]";
TextWriter stringWriter = new StringWriter();
using(TextWriter streamWriter = new StreamWriter(filename))
{
}
only two letters away from being an asset
|
|
|
|
|
hello as the world document is prepared by user and save with .docx Extension
A user prepared his meterial and when he save his meterial(all meterial is on the form contain tool images audio vedio As well as text) when a save button of project is clicked it save iot with Extension .eat
|
|
|
|
|
You need to explain a little more. You are assuming I know everything about this application. What files? What project? What material?
If you have a file, just change the extention. http://dotnetperls.com/path-changeextension[^]
only two letters away from being an asset
|
|
|
|
|
i am creating S/w for Elearning just like Lactora E Learning or Course lab i want to assign an Extension for my Project through which all files of that project are identified as MS WORD all files are save With Filename.docx
|
|
|
|
|
I have given you two solutions. What part don't you understand.
only two letters away from being an asset
|
|
|
|
|
You can create the file with any extension you want.
Are you asking how to associate that extension with your application so your app will start when a file is double-clicked?
|
|
|
|
|
|
Using Visual Studio, I set that up in a deployment project.
Right-click the project, select View|File Types, right-click, select Add File Type
|
|
|
|
|
there are a lot of ways to do it.
consider 'File.Move(old_Path, new_Path)';
very easy.
April
Comm100 - Leading Live Chat Software Provider
modified 27-May-14 22:03pm.
|
|
|
|
|
sorry i'm not asking for move a file from one location to to anotrher i'm asking for assign my own extention to my project files
|
|
|
|
|
I have a database including tables
Item_Master(Item_Code, Item_Model)
Invoice(Invoice_Code, Invoice_Amount, etc)
Invoice_Item(Invoice_Code, Item_Code, Item_Model, Item_Make, Unit_Price, Quantity)
Invoice_Item_Serial_Number(Invoice_Code, Item_Code, Serial_Number_1, Serial_Number_2)
Invoice_Item_Serial_Number.Invoice_Code refers Invoice.Invoice_Code
Invoice_Item_Serial_Number.Item_Code refers Item_Master.Item_Code
Invoice_Item.Invoice_Code refers Invoice.Invoice_Code
Invoice_Item.Item_Code refers Item_Master.Item_Code
Each Item has atleast One serial Number
I wish to get the following output in crystal report.
Item_Code Item_Model Item_Make Unit_Price Quantity Total
22 AC12 Bluestar 18000 1 18000
Serial Number_1 Serial Number_2
DXDEC11 DXSDSC22
24 AC1 Bluestar 15000 3 45000
Serial Number_1 Serial Number_2
REDDED3 EWSSD34
DEF443D DEWS332
REFSD23 EWWDW34
22 AC08 Bluestar 12000 1 12000
Serial Number_1 Serial Number_2
FSDXDEC11 XSDDC22
Can you please let me know how should I setup my Crystal Report's Detail section to get the above output
Thanks
Sukhjinder
Looking for help on my OpenSource Media Player LetsYo
|
|
|
|
|
How can i get an Image from WebBrowser?
WebBrowser is at Image url: http://xxxxx.xx/Image.jpg
but source of that is like a page that contains a picture. I want to get that stream.
I don't want to use FileWebRequest.
|
|
|
|
|
amir19 wrote: I don't want to use FileWebRequest
Good because FileWebRequest is not appropriate in this context anyway. Use WebRequest.
only two letters away from being an asset
|
|
|
|
|
I used FileWebRequest and WebRequest. But i want to get images from WebBrowser. I want to get image from the session that user is working with. Images are dynamic for users.
|
|
|
|
|
Please explain more about your application and what you are trying to accomplish
only two letters away from being an asset
|
|
|
|
|
I'm creating a website and an application for that. I want to my users use website in a windows app. I created an invisible webbrowser and i send login data from it. When i want to download user's image and other images from site, my site can't recognize user. I want to use images in webbrowser in picturebox or download them with session of webbrowser and then show them.
|
|
|
|
|
amir19 wrote: I created an invisible webbrowser
amir19 wrote: I want to use images in webbrowser in picturebox
What's the point of this? You can't simply just display the WebBrowser? Can they access the site without your application? If so, why would they use your app?
only two letters away from being an asset
|
|
|
|
|
I want my users use my site offline too with downloaded data and search in them.
|
|
|
|