|
Is the SQL service running as a Network service?
If you go to Configuration Manager, in the SQL service Properties, it has to have the "log on as": Built in Account -> Network service.
Hope this helps.
http://gyazo.com/fc3c3d3cb790b6e71bad0f733fb6b264.png?1336464548
|
|
|
|
|
necesito un ajemplo para capturar la cantidad de paginas que se envian a imprimir y usarlo en c#...si alguien me pudiera ayudar se los agradeceria mucho...
|
|
|
|
|
This is an english-language site.
Please put your question in a translator and present its result to us.
No memory stick has been harmed during establishment of this signature.
|
|
|
|
|
Esto es principalmente un foro inglés. * Si usted publica en inglés, es posible que obtenga un sector más amplio de la comunidad para responder a su pregunta.
(This is mainly an English forum. If you post in English, you are likely to get a larger section of the community to answer your question).
|
|
|
|
|
samuelalvarito wrote: necesito un ajemplo para capturar la cantidad de paginas que se envian a imprimir y usarlo en c#...si alguien me pudiera ayudar se los agradeceria mucho...
Translation...
an example will need to capture the number of pages that are sent to print and use it in c # ... if someone could help me would appreciate it very much
I would be almost certain that google would be able to find examples of printing. And I suspect the same is true about your other questions. Translated that answer is...
Sería casi seguro que Google sería capaz de encontrar ejemplos de impresión. Y sospecho que lo mismo es cierto acerca de sus otras preguntas.
|
|
|
|
|
como interceptar la cantidad de paginas del documentos que se envian a imprimir para adaptarlo a c#
|
|
|
|
|
como usar el evento drag&drop para cargar documentos office en un formulario de c# y luego imprimirlos
|
|
|
|
|
If you post in English, you are likely to get a larger section of the community to answer your question.
|
|
|
|
|
Your form (or better: an element, e.g. a listview on it) has to subscribe for two events: DragEnter and DragDrop.
In DragEnter do something like:
if (e.Data.GetDataPresent(DataFormats.FileDrop))
e.Effect = DragDropEffects.Copy;
else
e.Effect = DragDropEffects.None;
Now you'll get a "Plus" cursor when you drag the files into the element.
In DragDrop do something like:
if (e.Data.GetDataPresent(DataFormats.FileDrop))
{
string[] files = (string[])e.Data.GetData(DataFormats.FileDrop, true);
foreach (string f in files)
{
}
}
Note that you get the filenames.
|
|
|
|
|
How do I know whether or not to call ReleaseComObject()?
For example in the following code I call ReleaseComObject() on the Worksheet, it works fine, but I dont rearly know if this is correct or not. How would I know? Is there a rule that I need to follow?
try
{
Microsoft.Office.Interop.Excel.Application excelApp = new Microsoft.Office.Interop.Excel.Application();
string strWorkBook = @"C:\zz\Book1.xlsx";
Workbook workBook = excelApp.Workbooks.Open(strWorkBook,
Type.Missing, Type.Missing, Type.Missing, Type.Missing,
Type.Missing, Type.Missing, Type.Missing, Type.Missing,
Type.Missing, Type.Missing, Type.Missing, Type.Missing,
Type.Missing, Type.Missing);
int nSheets = workBook.Sheets.Count;
Worksheet sheet = (Worksheet)workBook.Sheets[1];
Marshal.ReleaseComObject(sheet);
workBook.Close(false, strWorkBook, null);
Marshal.ReleaseComObject(workBook);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
“If I had asked people what they wanted, they would have said faster horses.”
― Henry Ford
|
|
|
|
|
As a rule, its advisable to release com objects from managed code.
|
|
|
|
|
|
Hi...
I am using the following code to discover remote devices..using the UUID specified by the OBEX Specification..
But the devices are not being discovered..
Am i missing any other thread?
Thanks in advance...
private bool OBEXOpenStream(string BTMAC)
{
Guid spguid = new Guid("{(uuid128=F9EC7BC4-953C-11D2-984E-525400DC9E09)}");
btaddress = OpenNETCF.Net.BluetoothAddress.Parse(BTMAC);
client = new OpenNETCF.Net.Sockets.BluetoothClient();
endpoint = new OpenNETCF.Net.BluetoothEndPoint(btaddress, spguid);
try
{
client.Connect(endpoint);
}
catch (System.Exception e)
{
return false;
}
stream = client.GetStream();
return true;
}
modified 26-Apr-12 1:27am.
|
|
|
|
|
hello friends,
In my educational period i was study about what is oops(object, class,inheritance,polymorphism,encapsulation and etc) as a theory with simple example,but after now a days i need to create my own classes,but still i am confused at this level,please tell me which way is better to understand and coding with my own way.please refer me any best articles for these topics
|
|
|
|
|
See this[^] article for starters.
/ravi
|
|
|
|
|
|
MP3 Rearrange is a good example of Object Oriented programming. It uses inheritance 5 levels deep. Overriding methods of base classes is used as well.
Take a look.
MP3 Rearrange
Please leave a comment if you like.
Best John
|
|
|
|
|
Short answer: Classes are nouns and their methods are verbs.
Each class maintains its data, and its methods represent actions on that data.
Ideally, once you write a class (and methods) you use it in the rest of your program like that type was built into the language. The only way the rest of the program interacts with it is through its public methods.
"Microsoft -- Adding unnecessary complexity to your work since 1987!"
|
|
|
|
|
baskaran chellasamy wrote: need to create my own classes,but still i am confused at this level,please tell me which way is better to understand
It is possible that you just need to start writing some code. Reading about programming can only get you so far - at some point you must actually do it.
|
|
|
|
|
Hi,
How can i retrieve the information about the hardware and services, for a particular client by specifying the computer name or ip address, which is connected in a LAN Network.
Regards,
Nemichand.
|
|
|
|
|
In the System.Management namespace you'll find ManagementObject and related classes that access the "Windows Management Instrumentation " subsystem. I suggest you read up on them and look at some of the examples.
|
|
|
|
|
Hi,
I have this simple Excel add-in project based on the standard VS template, however, I cannot call the below test() function from Excel VBA.
[Guid("9E88FA9A-4E7D-4bba-8D94-439BFA2B0AEC")]
[ClassInterface(ClassInterfaceType.AutoDual)]
[ComVisible(true)]
public class MyFunctions
{
public void test()
{
Microsoft.Office.Interop.Excel.Application xlsApp = new ApplicationClass();
Worksheet ws = (Worksheet)xlsApp.ActiveSheet;
ws.Cells[1, 1] = "Edited by C#";
}
Please help,
Thanks.
|
|
|
|
|
Please state why you can't call the function. Any error message?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Hello to everyone!
I have an ip Camera and I've created an application to display the image there. But I want to be able to control the camera motion from my application. For example, I want to move the camera up, down, right, left, using buttons. How can this be done?
I have read the manual of camera and i have understand that to move the camera should I use the command:
192.168.1.xxxx:xx/decoder_control.cgi?command=[command] (command = 0,1,2,3,4,5)
Can I control the camera using the C#?
Thanks!
|
|
|
|
|
Synodiporos wrote: should I use the command
Sure if that is the command you need to use. How are we supposed to know?
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|