|
If you get stuck with serializing the struct's out to a binary file, I can help you with some marshalling code that will give you a byte[] from pretty much anything.
--SeveredCross
|
|
|
|
|
Hi,
I sometimes get an OutOfLicenseException when I call a report on a server through a thin client app.
Searched google and cp, but no luck getting a descent answer.
There could be several users calling for reports at the same time.
the licenses are correctly installed (we ran into that one earlier )
Does anyone know a solution to this? Do we need to upgrade?
tnx!
No hurries, no worries.
|
|
|
|
|
Hello i'm having a problem with the following code fragment:
//----------------------------------------------------------------------
//loop through each sub directory in the current dir
//and look for each folders contained in folders array
foreach(DirectoryInfo subDir in dirs)
{
//this line eliminates an IO error, although I dont know why it is an error
if (subDir.ToString().Equals("System Volume Information"))
Console.WriteLine();
else
{
for (int i =0; i < 7; i++)
{
currentFolder = folders[i];
if (subDir.Exists)//make sure directory exists
{
subDir.GetDirectories("*" + currentFolder + "*");
Console.WriteLine(subDir.ToString());
subDir.Equals(null);
} //end if
} //end for
}//end else
}//end foreach
//recursive statements
DirectoryInfo[] subDirs = dirInfo.GetDirectories();
for (int i = 0; i < subDirs.Length; i++)
{
String dirName = subDirs[i].FullName.ToString();
findFolders(dirName);
}
}//end method
//---------------------------------------------------------------------
Basically it should search the directory hierarchy and ouput to the console the names of the directories that match search criteria contained in the array []folders. Problem is it returns the entire directory hierarchy!!
CAN ANYONE HELP ME!!!!
|
|
|
|
|
hi to all,
i have a c# win application, how can i get the user connected to windows xp ?
i want to put this user in the connection form of my application.
best regards and thanks in advance
fady
|
|
|
|
|
If you want to get just a user name you can use static property UserName of Environment class:
String userName = Environment.UserName
or you can use this:
Thread.CurrentPrincipal.Identity
hth
"We contend that for a nation to try to tax itself into prosperity is like a man standing in a bucket and trying to lift himself up by the handle." — Winston Churchill
|
|
|
|
|
HI! does anyone out there knows what dll is needed in order to
export a crystal report file to a txt file.
i wrote this code, i can only export report to
"PDF, Excel, Word Doc, RTF Doc,HTML 3.2, HTML 4.0 or CrystalReport"
// The path/location where the exported file will be saved
string exportFilePath = ALOHA_PATH+"\\RPTFOH\\Report1.DOC";
// Create an instance of the untyped report object
ReportDocument oRpt = new ReportDocument();
// Load the report from disk
oRpt.Load(@"C:\Aloha\RPTFOH\Report_1.rpt");
// Set the options for saving the exported file to disk
DiskFileDestinationOptions oDest = new DiskFileDestinationOptions();
oDest.DiskFileName = exportFilePath;
// Set the exporting information
ExportOptions oExport = oRpt.ExportOptions;
// Set the destination options
oExport.DestinationOptions = oDest;
// Set the location, this can be:
// DiskFile, ExchangeFolder, MicrosoftMail or NoDestination
oExport.ExportDestinationType = ExportDestinationType.DiskFile;
// Set the Export type, this can be:
// PDF, Excel, Word Doc, RTF Doc,
// HTML 3.2, HTML 4.0 or CrystalReport
oExport.ExportFormatType = ExportFormatType.WordForWindows;
// Call the Export method to export the report
oRpt.Export();
thx
|
|
|
|
|
Here we go:
Probably you'll need to add a reference to all of the following dlls:
CrystalDecisions.CrystalReports.Engine
CrystalDecisions.ReportSource
CrystalDecisions.Shared
And you'll be using the followings in your code:
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;
Thanks.
modified 17-Jul-19 21:02pm.
|
|
|
|
|
Hi
I am using following code:
folderBrowserDialog1.ShowNewFolderButton=false;
folderBrowserDialog1.RootFolder = Environment.SpecialFolder.MyComputer;
folderBrowserDialog1.SelectedPath="c:\\temp";
DialogResult dr=this.folderBrowserDialog1.ShowDialog();
in windows 2000 it is still showing New Folder Button and in windows xp it is working fine.
If anyone have solution then please help me.
thanks
|
|
|
|
|
This is a known bug[^]. There is no work around.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
HI im making an asp.net web application using c# can anyone please tell me.. how to use the hyperlink control.
if im on webForm 1 .. and i want to go to webForm 2. of the same project, wat should i write in the NavigateURL property of the HyperLink????
thnx
|
|
|
|
|
webForm2.aspx
i tried to sign but the pen keeps scratching my monitor.
|
|
|
|
|
|
i can send you an e-book on Developing web applications. It is published by Microsoft specifically for ASP.NET web applications. You can get all the info you need in it! Problem is, it is about 4.5MB. Does your ISP allow you to receive emails that size???
|
|
|
|
|
if your LinkButton is called LinkButton1:
private void LinkButton1_Click(object sender, System.EventArgs e)
{
Response.Redirect("Form2.aspx");
}
|
|
|
|
|
hi imk making an
|
|
|
|
|
ashkitt wrote:
hi imk making an
an incomplete statement.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Can anyone tell me the most ideal way to store configurations in C#...what should you choose App.config, .INI files, or the registry? If there are any more modes of storing setting, please let me know.
|
|
|
|
|
If you're after the MOST IDEAL way then you should read this:
http://msdn.microsoft.com/library/en-us/dnpag2/html/config.asp?frame=true
modified 17-Jul-19 21:02pm.
|
|
|
|
|
Hi, I'm set the SelectedObject property of a PropertyGrid with a class that have two properties of type Point, one is Point1 and another is Point2. When running the program I can set the X or Y value of point property. How can I distinguish between the Point1.Y and the Point2.Y property? In the PropertyValueChanged event there is the e.ChangedItem.Label value that contains only Y and not Point1.Y or Point2.Y. I have saw that there is the "((System.Windows.Forms.PropertyGridInternal.PropertyDescriptorGridEntry)(((System.Windows.Forms.PropertyGridInternal.ImmutablePropertyDescriptorGridEntry)(((System.Windows.Forms.GridItem)(((System.Windows.Forms.PropertyGrid)(mProp)).SelectedGridItem)))))).HelpKeyword" that contains Point2.Y but is an internal property and I can't read it. How can I solve the problem? Thanks a lot!
Michele
|
|
|
|
|
How can i load an icon from an embedded resource in mt application into a System.Drawing.Icon
|
|
|
|
|
Get a stream to the resource using Resource.GetStream() and then use Image.FromStream()..You should be able to cast that to an icon or something to that effect...
|
|
|
|
|
Hi,
I want to know, how to get the list of all the available domains in a network, and the list of computers under each domain, using c#.
Thanks
Prasanna
|
|
|
|
|
Did you try pinvoking NetServerEnum from Netapi32.dll?
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
|
I am trying to use a C# DLL assembly from in-memory. This DLL uses a Win32 Native function which requires HINSTANCE of the module in DLL. So, I try to use the Marshal.GetHINSTANCE Method. It works fine if I use the DLL from physical drive. However, the moment I try to run the DLL from in-memory, I get an error. After some research in MSDN, I found the following remark in the help on Marshal.GetHINSTANCE Method:
"When dynamic or in-memory, modules do not have an HINSTANCE."
Now, my problem is that when DLL is run from in-memory, its modules do not have HINSTANCE as per MSDN documentation. However, the Win32 Native function requires HINSTNCE as one of the parameters. I tried to use null or (IntPtr) 0, etc., but they do not work.
Is there any solution to this problem?
Thanks in advance.
|
|
|
|