|
|
I am using Docx dll to get paragraph information but not able to get paragraph format(font size-fontName-FontColor) Here is my code for that:
using (DocX document = DocX.Load("Test.docx"))
{
if (document.Paragraphs.Count() > 0)
{
for (int i = 0; i < document.Paragraphs.Count; i++)
{
Novacode.Paragraph pg = document.Paragraphs[i];
Console.WriteLine("Text:" + pg.Text +" Alignment:" + pg.Alignment + " Direction:" + pg.Direction);
}
}
}
|
|
|
|
|
How about asking the people who wrote DocX??
|
|
|
|
|
Can you databind a datagrid where the number of columns is determined at runtime? Specifically, let's say that you have a datagrid NetWorth with a column for each year. The natural thing (for me) is to define
class Person {
string Name { get; set; }
ObservableCollection<int> net {get; set; }
}
(actually I would have the event handlers here too, but I want to show just the skeleton). I can add a column at runtime, that's easy, but I can't bind column2013 to net[2013], or can I?
|
|
|
|
|
|
|
I am using microsoft directX DLL which work if we create 32 bit setup then it is working. But if we try to create a 64 bit setup then it shows error. please let me know there is any 64 bit DLL is available. Thanks a lot in advance.
|
|
|
|
|
Did you try typing "DirectX 64-bit redistributable" into Google?
|
|
|
|
|
ys I tried alot bt I didn't find any 64 bit "DirectX 64-bit redistributable". Some say that now microsoft doesnt support 64 bit MDX but I hope it should be there...
|
|
|
|
|
I hope, by MDX, you mean Managed DirectX, because that's been dead for quite a while now.
|
|
|
|
|
MDX has been dead for a long time now. Can you switch to something like SlimDX (IIRC it has a 64bit version) or are you not in a position to do that?
|
|
|
|
|
hi,
i have created c# project with backend mysql.and i created installer .ok fine.
but my question is: how to include database tables created along with installer.
|
|
|
|
|
You have to include the database and the configuration as redistributable files and install it with the installer.
Veni, vidi, caecus
|
|
|
|
|
plz give me in detail .i don't know how to do
|
|
|
|
|
|
Hi,
I developed Windows Service and created Setup in one computer and copy Setup1 Windows Installer Package to a different computer and run there. This Windows Service is supposed to send automated emails daily from the second computer.
It works on the first computer where it is developed but doesn't work on a different computer where the package is installed. There is no error or whatsoever. I can still track its activities on Eventlog but no emails is sent. Why?
I have provided all the necessary email log in credentials, port no and server name.
Hope someone can help! Thanks in advance!
|
|
|
|
|
At a guess I would say you have a problem within your service where there is a missing reference or library on the deployed computer. You need to debug it, but it is in the deployed machine you say, then error trap every method in your service and write the error to a log, redeploy and inspect the log file.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
But then there is no error when I build and install on the developing computer (let's say the 1st computer). Can I not assume when I get the setup windows service installation package is complete with all necessary reference or library after building and installation? And can't that package be used as it is on the deployed computer (let's say the 2nd computer)?
|
|
|
|
|
Check if you have the service running under right permissions.
|
|
|
|
|
May I ask how do I check? Sorry I'm totally new to all these. Thanks!
|
|
|
|
|
Did you look in the Application Eventlog?? Any exceptions will show up in there.
|
|
|
|
|
The application event log of the first computer (where the program is written) or the application event log of the second computer (where the installation package is installed) ?
Yes there are events logged in application event log in both computers. They are logged at the correct time interval. Then why are not emails sent out from the second computer? I have provided all necessary gmail smtp credentials. Emails are sent out if I run the service on the first computer
STS
|
|
|
|
|
Member 10400691 wrote: The application event log of the first computer (where the program is written)
or the application event log of the second computer (where the installation
package is installed) ?
You're kidding me, right?? Why would you look for bad log entries on the machine where it works??
Alter the code in your service to write everything it's doing to the Application Eventlog, from OnStart on.
|
|
|
|
|
Dave Kreskowiak wrote: You're kidding me, right??
Exactly my thought when I read that.
|
|
|
|
|
Member 10400691 wrote: but no emails is sent How do you send emails? Via an external mail provider like google mail? Did you configure that mail account correctly? Has your service access to the network?
|
|
|
|