|
Thanks Zoltan!
I have successfully set the account, cool! I have a further question, is NT AUTHORITY a domain setup on local computer, I have this question because I noticed that there is a sign \ after it like normal domain name.
regards,
George
|
|
|
|
|
It's the identifier authority (I didn't know that )
Take a look at this link[^] for a detailed explanation.
|
|
|
|
|
Really great! Thanks Zoltan!
regards,
George
|
|
|
|
|
Did you try Local System Account?
|
|
|
|
|
|
I suggested Local System account because it has full access to the computer.
Looks like the NT AUTHORITY\NetworkService has anonymous access to network resources and that is why it fails to create sockets.
|
|
|
|
|
|
I am using a CutomTask Pane in Excel as an C# .NET ADDIN.
The custom task pane has a close button(X) at the right corner.
I need to not allow the user to close the Task Pane or disable the Close button(X) . Can anyone have any idea ?
Is there any way to trap the close(X) button and prevent user from closing it ?
I tried to trap the VisibaleStateChange event handler of Custom Task pane and try to show it again when user clicks the X button. But I am not successfull.
I am using the CreateCTP() COM function to create a custom task pane.
Thanks,
Rajan
|
|
|
|
|
Hello,
When I'm placing ReportViewer on a from and design a report.rdcl for it, a BindingSource object is automatically generated for me.
However' when I place the ReportViewer on a UserControl, the BindingSource object isn't created and no report is displayed.
Is it a problem in my logic/code or is it a known limitation ... any how, if you have any kind of suggestions ... I'll be more then happy to listen
Thanks in advance
|
|
|
|
|
No data == no report. Did you expect something else?
Scott P
“It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration.”
-Edsger Dijkstra
|
|
|
|
|
Hi.
Why are you picking on on words?
My real question was wether it was possible to put a reportViewer on a UserControl and how to make the BindingSource object to be created?
Thanks again
|
|
|
|
|
It is possible to put the ReportViewer on a UserControl, however I don't think it necessary as it already is a control. To bind to objects, you first have to have an object with the data that you want to display. Note that how you want to display the data has an impact on how you should construct the objects. I started with the display, then worked back to the objects that I needed to fill and then created FactoryMethods to process data in my application to fill those "report objects". In the example below, iData.GetHeader() returns a List<Header>. If you're still unsure, you should consider getting a book on report services, it's a broad topic with slim resources on the internet.
ReportDataSource rpd1 = new ReportDataSource("Logic_Header", iData.GetHeader());
ReportDataSource rpd2 = new ReportDataSource("Logic_DataA", iData.GetReportDataA());
ReportDataSource rpd3 = new ReportDataSource("Logic_DataB", iData.GetReportDataB());
viewer.LocalReport.SetParameters(GenerateGenrlReportParams(GetCorrectedFont(myFont)));
viewer.LocalReport.DataSources.Add(rpd1);
viewer.LocalReport.DataSources.Add(rpd2);
viewer.LocalReport.DataSources.Add(rpd3);
viewer.RefreshReport();
Scott P
“It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration.”
-Edsger Dijkstra
|
|
|
|
|
Thank you for your answer, it helped (And I also found a mistake in my steps )
|
|
|
|
|
i have comboBox filled from data source,
then i should select an item from it to insert into another table on the same datasource through input parameter
i have tried :
AnaName.Value = comboAnaName.SelectedIndex.ToString();
AnaName.Value = comboAnaName.SelectedText;
AnaName.Value = comboAnaName.SelectedItem.ToString();
but all failed
please help
regards
|
|
|
|
|
Mr.Kode,
Why did it fail?, what error did you get?
Regards,
Gareth.
(FKA gareth111)
|
|
|
|
|
I've got a TextBlock wich varies in With and FontSize. I want to fill it completely with spaces. How can I calculate how much spaces I need to fill the entire TextBlock?
gr.
Kevin
|
|
|
|
|
Do you want to replace all text with spaces?
Just get the text length and insert as many spaces.
|
|
|
|
|
"Do you want to replace all text with spaces?"
No.
The situation is a bit more complex.
But lets say the TextBlock is empty and I would want to fill it with spaces. The only data I have is the Width of the TextBlock and the FontSize.
If I would know the "width" of a space in the same FontSize I could calculate how many I would need.
But how do I calculate the width of a space?
|
|
|
|
|
Graphics.MeasureString can give you size of string in mentioned font. Will that help?
|
|
|
|
|
I sounds like it could work. But how do I use it?
I can't make a new instance of it, like Graphics g = new Graphics();, And when I just use Graphics. I don't get MeasureString.
Can you help me with this.
|
|
|
|
|
Graphics oGx = this.CreateGraphics();
I still dont understand the requirement to insert spaces.
|
|
|
|
|
Maybe I should have mentioned that I'm creating WPF application and not a WindowsForms application.
I have a TextBlock in a ScrollViewer. The ScrollViewer moves it position so you will see another part of the TextBlock.
This creates somekind of Marque. At the start I want the text to start off the screen therefor I need the spaces.
|
|
|
|
|
You should have:
a) Posted this on the WPF forum
and
b) looked into the FormattedText class to see what methods are available there (hint - take a look at the GetMaxWidths method).
|
|
|
|
|
Thanks.
I'll post these thing in the WPF forum the next time.
For the Info: I've used the formattedText.WidthIncludingTrailingWhitespace Methode to calculate the width of 1 space.
|
|
|
|
|
You need to use the Graphics context that you're currently rendering with (e.g. the one that's passed in to the OnPaint method)
|
|
|
|