|
If it is managed then look into Activator.CreateInstance()
This is a good article for using Activator: Plug-ins in C#[^]
Also i got this message in the email:
The dll's are managed, they are VB6 originally I believe.
VB6 application doesn't use .Net Framework. This is the VB version prior .NET framework versions
|
|
|
|
|
Sorry, should have typed VB.net (or at least explained my edit)
the Activator.CreateInstance() looks interesting, thanks for the heads up.
|
|
|
|
|
Hi
I need to create a program that searches the internet for all Ecommerce websites in South Africa.
So i made a web crawler to search through web pages by using there text to search for keywords on ecommerce and location.
Unfortunatley when using HttpRequest and HttpResponse on a google search, its retieves all the html but not the google search links.
Why is this? Is there a better way to do this? Any input would really help.
Thank you for your time.
Kindly Rian
|
|
|
|
|
XboxMedz wrote: Unfortunatley when using HttpRequest and HttpResponse on a google search, its retieves all the html but not the google search links.
Why is this?
It might be inserted dynamic, arriving over the internet some seconds after you have saved the HTML-page that contains the results. It could also be a means of protecting their search-results. To check which one it is, you'd have to save a second or two later.
You might be interested in a Google Custom Search Engine[^]. Not only does it crawl where you want, it also delivers its results as XML
I are Troll
|
|
|
|
|
Thanks Troll, i added a 500ms delay and it worked!
Ur the bomb!
Gonna check out that google custom search thing.
Thx for your help
(always helps to ask the smart guys)
|
|
|
|
|
Glad I could help
|
|
|
|
|
Hi
Usually, I generate classes from XSDschema and include those class files in my project. But I am trying to understand how to generate those classes for WCF service.
The issue is related to all those attributes (like DataContract, DataMember etc.) which DataContact needs. Regular xsd to C# code generation tools like XSD.exe don’t have provision of putting those attributes.
Are there other tools out there which can be used to create DataContract from xsd? Please advice. Thanks
Pankaj
Follow your goals, Means will follow you ---Gandhi---
|
|
|
|
|
Hey,
I'm searching for a site that has a collection of math algorithms written in C#. For example a function/class/whatev to calculate integrals.
The reason I'm looking for this is that I'm having problems understanding these things thoroughly from math lessons. The main reason for this is cause the notation sucks - hard. (So I'm looking for code that does not have variables named x1, y2, deletaOmegaPsi or likewise dumb ones.)
The math areas important for me here are calculus and trigonometry.
Does anyone know of such a site?
Cheers!
Jeroen De Dauw.
Jeroen De Dauw
---
Forums ; Blog ; Wiki
---
70 72 6F 67 72 61 6D 6D 69 6E 67 20 34 20 6C 69 66 65!
|
|
|
|
|
Message Closed
modified 23-Nov-14 7:26am.
|
|
|
|
|
Hey,
That's a very interesting lib! Can't find any integral calculation in it though. And no goniometry.
Anybody know other, similar libs out there?
Cheers!
Jeroen De Dauw
---
Forums ; Blog ; Wiki
---
70 72 6F 67 72 61 6D 6D 69 6E 67 20 34 20 6C 69 66 65!
|
|
|
|
|
Hi to all,
Does any one know
how to move Mailbox items to other own folder programatically using exchange server 2007?
if any one knows please update me.
Regards
Balu
|
|
|
|
|
You can certainly do it using Exchange Web Service - a bit cumbersome but straight forward. Google for Exchange Web Service or EWS
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
hi
in C language we use ellipses for unlimited arguments
is it possible in C#
|
|
|
|
|
Yap, you can do it this way
public static void SuperCoolMethod(params int[] list)
{
}
...
SuperCoolMethod(1,2,3,4,5);
|
|
|
|
|
AFAIK no. You can use a List instead.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
have a look at the params keyword.
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
i copy this code from an article which is use to take a run time parameters when i run it,it show an error "String doesnot have a definition for ApplycurrentValues" i think i miss a directive for it plz help as i m novice in crystal report reporting. i use only one directive which is
using CrystalDecisions.Shared;
ParameterValues ParamCurrentValues = new ParameterValues();
ParameterRangeValue p_OrderDate_Value = new ParameterRangeValue();
p_OrderDate_Value.StartValue = this.txtOrderDateFrom.Text;
p_OrderDate_Value.EndValue = this.txtOrderDateTo.Text;
ParamCurrentValues.Add(p_OrderDate_Value);
rep.DataDefinition.ParameterFields();
("Date1").ApplyCurrentValues(ParamCurrentValues);
|
|
|
|
|
The code you have copy-and-pasted is almost certainly wrong.
I don't know the 1st thing about Crystal Reports (thank higher-being of your choice), but a quick search on the web brought up this (which is similar to your code)
public void SetParameter(string name, object value)
{
CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinition parameter = _reportDocument.DataDefinition.ParameterFields[name];
CrystalDecisions.Shared.ParameterValues currentValues = parameter.CurrentValues; currentValues.Clear();
CrystalDecisions.Shared.ParameterDiscreteValue newValue = new CrystalDecisions.Shared.ParameterDiscreteValue();
newValue.Value = value;
currentValues.Add(newValue);
parameter.ApplyCurrentValues(currentValues);
}
So it looks like ApplyCurrentValues is a method on the parameter.
CCC solved so far: 2 (including a Hard One!)
|
|
|
|
|
Hi...
Code Project community .
I need ur help in the following issue :
I am developing window application in C# 2005 in which I have to print a bank statement.I am using Microsoft.Office.Interop.Word and creating Word.Application object.There is a specific format in which I have to generate the word file like (Bank logo on the top and Advertisement at the end of page)only on first page of each statement. A statement may contain multiple pages. We are creating one word file for all the accounts for a particular account type. In this case the image of the bank logo and the advt. will be coming for each new statement in that file. When I start generating the word file every thing working fine coming in required format but randomly after creating say 15 or 50 pages the alignment for the image on the top (bank logo) is distorted. Hence the all the following pages the header portion gets haywire. We to manually press 2 enter keys to bring the header down and reformat the file. This is not manually possible a single file may contain 100-150 pages.
You tips and tricks on this will be appreciated.
So please help me out to solve this problem its urgent.
Thanks....
|
|
|
|
|
Have you looked at OpenText? Open text is a library for creating pdf's. OpenText was origianlly developed as Java library, but has a cSharp port. The interface is a bit ugly at first, but the original author has a book out on the library that makes using it very easy. If you take this route, it simplifies deployment because your application won't rely on an appropriate version of word.
|
|
|
|
|
Oops, the library is iText, not OpenText -- Too many libraries, not enough time.
|
|
|
|
|
thanks..
I will try this option.
|
|
|
|
|
Hello,
i have a tree view ,were an After Selection event occurs after selecting a node.
i also have a function called refresh which refreshes the tree View by building it from scratch.
the problem is that when the refresh is made, the selected node is not changing, which is fine, but the after Select event is not fired, which is not fine at all (since this event retrieves necessary data).
my question is: how (if possible) can i fire an after Selection event without changing my selection.
attached is relevant code
Thanks
private void tvwProject_AfterSelect(object sender, TreeViewEventArgs e)
...
//this code mainly constructs the tree View
private void refreshProjectTree()
{
if (isProject)
{
BLFunctions.BuildProjectTree(tvwProject);
BLFunctions.ExpandNode(tvwProject, tvwProject.Nodes[0]);
}
else
{
BLFunctions.BuildSchemaTree(tvwSchema);
}
}
|
|
|
|
|
Factor the code out to a method you call at the end of your refresh method.
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.
|
|
|
|