|
No , i don't think one will need license for that. Because you just need to install Word and use its Component to automate Mail Merging.
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vimalsoft.com
vuyiswa[at]vimalsoft.com
|
|
|
|
|
Well....I think Microsoft might disagree with you, why don't you contact their licensing department and ask? Tell them you've bought a single copy of Word that you're installing on a server so that hundreds\thousands of people can all use it remotely.
|
|
|
|
|
No one is using it remotely. Basically my serve get a Template document and get data from the DB and generate the word Document on the server. No one is accessing those documents except one person who is actually posting those documents.
i have now went the nasty to get my department working. So i have copied the same code in a Windows form application and created Schedule that will call that exe every 10 min. i will need to monitor that and see how it works for few days.
For now i think this case is closed.
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vimalsoft.com
vuyiswa[at]vimalsoft.com
|
|
|
|
|
Hello guys, I have below code & I would like to combine into one method that accept generic type... possible to do that?
Thanks.
public string empName
{
get
{
object temp_result = func1(MyConst.name);
string result = Convert.ToString( temp_result );
return result;
}
}
public int empID
{
get
{
object temp_result = func1(MyConst.id);
int result = Convert.ToUInt16( temp_result );
return result;
}
}
public object empData
{
get
{
object temp_result = func1(MyConst.Data);
object result = temp_result;
return result;
}
}
modified 23-Jun-15 3:14am.
|
|
|
|
|
Do you mean "how do I write a generic function I can call from all the properties?"
If so, what's the problem?
private T func1( T param)
{
...
}
If not, then what do you mean?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
|
I want to populate a label in an Access report header, from C# using automation. The report has the following in the Load event:
Option Compare Database
Private Sub Report_Load()
Me.lblHeaderReport.Caption = Me.OpenArgs
End Sub The C# source code:
using MsAccess = Microsoft.Office.Interop.Access;
MsAccess.Application app = new MsAccess.Application();
app.OpenCurrentDatabase(
"C:\\Dev\\Databases\\SomeDatabase.mdb",
false,
"some password"
);
string strFilter = "qSomeQueryForReport";
app.Visible = false;
app.DoCmd.OpenReport(
"rptSomeReport",
Microsoft.Office.Interop.Access.AcView.acViewNormal,
strFilter,
Type.Missing,
MsAccess.AcWindowMode.acWindowNormal,
"HeaderTest"
);
app.DoCmd.Close(
MsAccess.AcObjectType.acReport,
"rptSomeReport",
MsAccess.AcCloseSave.acSaveNo
);
app.CloseCurrentDatabase();
System.Runtime.InteropServices.Marshal.ReleaseComObject(app);
app = null; Problem:
The text "HeaderTest" does not appear in the report header label. No error generated.
modified 23-Jun-15 4:08am.
|
|
|
|
|
I have program but I don't understand about source code to open some file.. Anybody help me? How to open from excel or notepad and it read on our program?
|
|
|
|
|
Sorry?
I'm not sure I understand you correctly: it sounds like you have the source code to a C# program and want to look at it, modify it, and then compile and run the result.
If so, then Excel and Notepad are both bad choices!
Go to Microsoft, and download a copy of Visual Studio (there are Express version of 2005, 2008, 2010, 2012, and a Community Edition version of 2013 - all of which are free, subject to certain conditions)
Which version you need depends on how old the source code is: you are probably best assuming you want the latest version: https://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspx[^]
When that's installed, double click the .SLN file that should be part of the source code and the project should open.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Can I use javascript in web forms project which has master pages and content pages. I know it can be used but the code written in script tag or style tag is not executed. I have tried too many solutions I get from sites like stakoverflow and codeproject because I am facing this problem since 15-20 days, even there is no error in the syntax. But the problem is script is not executed.
|
|
|
|
|
A couple of things.
1. This is the C# forum, so you're not going to have much luck here.
2. You haven't shown any code. No one will be able to help you identify a problem with your code if you haven't shown it.
|
|
|
|
|
Your problem is that you're not appreciating that javascript runs on the client using the rendered html, and what you see in visual studio aspx files is not what is rendered to the client. .net will change your control IDs so if you refer to IDs in your js you need to use the ClientID property of the control to get the proper ID, or use static ids if that is suitable (it won't always be);
ASP.NET 4.0 Client ID Feature[^]
Other things you need to bear in mind are code paths and how you refer to your js files in relation to your other files.
There is no single trick to this, it mainly involves having a good understanding of the framework and using best practises in your coding, and tackling individual problems as you encounter them.
|
|
|
|
|
1st and foremost, I've got lots of time to develop this. So, I'd like to try to do this the right way… As much as possible, the 1st time through.
I know I'm going to need to utilize the array class, what other classes/functions/methods would I need to utilize?
I also know I'm going to need a database of words and phrases, still haven't decided if I want to use MySQL or XML to house my database of words and phrases. I'll most likely scrape a few online Thesauruses and Dictionaries to initially populate my database. That in itself, is a whole project on its own.
Anyway, I could see using "if, if then, arrays and the database". While mixing in the random class. I was just wondering if any of you old pros could see any other classes or methods in the .Net framework that could be utilized in a project like this.
I'm not looking for code snippets, just some overall suggestions on what possibly to use and what not to use and possibly what to look out for.
I want to try to write down my blueprint/game plan before I even think about writing any code.
Suggestions, ideas, feedback is all appreciated in advance!
|
|
|
|
|
I am stumped
I have to convert a function, which I think is in "SAS" to a c# equivalent...
This is the function:
remaining_payment=(36-ms_since_issue)*(out_prncp*(t_int_rate/12*(1+t_int_rate/12)**(36-ms_since_issue)))/((1+t_int_rate/12)**(36-ms_since_issue)-1);
I cannot work out what the ** mean in the function.
Can anyone see what is trying to be done and what the equivalent c# version might be please?
Thanks
Trev
|
|
|
|
|
|
According to the documentation[^], ** is the exponentiation operator.
The C# equivalent would be the Math.Pow function[^].
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
i need to change my start up page in c#
|
|
|
|
|
C#? VB? Form? Page? Change? Change what? What have you tried and where's the problem?
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
|
|
|
|
|
Not enough information.
What kind of project? ASP.NET? Windows Forms? WPF?
Which language? C# or VB.NET?
|
|
|
|
|
Dave Kreskowiak wrote: C# or VB.NET? Both; see the subject and the post
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
I'll raise you a C# forum!
|
|
|
|
|
If he has to do it in both, would it not be better in the .NET forum?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Anybody else using the RC and noticing the XAML designers/editors are broken? I don't use the designers as I hand roll XAML but it's still annoying to have them constantly crashed or just showing a message to rebuild the project. In the XAML text editor it doesn't recognise any namespaces in the local project so many lines of code have error underscores - also the intellisense rarely works and when it does it is little short of useless because of the namespace issue.
The project builds fine and runs but the editors are FUBAR.
|
|
|
|
|
No - I avoid MS RC's like the plague - but I'd suggest that MS would be better people to talk to about it? If they don't know there is a problem they can't fix it, even if they cared to (which mostly they don't)
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
I have been filing bug reports. I was just curious if anybody else had come across the same issues
|
|
|
|