|
Sir, i can not change the SP which return data in pivot format. please guide me how to change class design which can hold pivot data?
suppose i used to store data into datatable from SP and datatable can store pivot data and later can't we use LINQ to extrac data from datatable and populate my class which i have posted here.
if possible can you please show me the way. thanks
|
|
|
|
|
Read my answer again. I've already shown you!
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Sir i understand that you are trying to say change my query in store procedure of sql server as a result query should not return data in pivot style. am i correct ?
thanks
|
|
|
|
|
Yes. Your class is designed to store the un-pivoted data. Whilst you could potentially write code to take the pivoted data and convert it back to the format your class is expecting, it would be far simpler to not pivot the data in the first place.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Hi Please guide me
How to activate the second Telegram password with C#
|
|
|
|
|
You have already posted this in QA:
Enable two-step verification telegram with C#[^]
And as Bill said there, you haven't provided anywhere near enough detail for anyone to help you.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
i searched lot google to know what is default measurement unit of EPPlus but found no info. anyone can tell me what is default measurement unit of EPPlus ?
is it point, inches, pixel ?
how to change default unit in EPPlus ? share some idea. thanks
|
|
|
|
|
If you have a valid license you can contact their support and ask them.
|
|
|
|
|
|
I assume you are talking about eMeasurementUnits[^] here. You can't change a default because it's just that, a default. If what you are after is changing the measurement unit, then that is set via ExcelVmlMeasurementUnit[^].
|
|
|
|
|
Hello.
I'm trying to get text data from another program.
The window handle was found.
Please check the image link.
CLICK Here - Attach Image Link
But I'm not sure what to do next.
Should I use something similar to the GetDlgCtrlID method?
I do not know.
The return is -1.
Please advise.
thank you.
|
|
|
|
|
|
Hello, here I have finished my Super Market management application, but what worries me is that I am blocked is that after the installation of Setup on the pc when the user will start for the 1st time who has a form that he needs. '' register company information (shop, pharmacy, supermarket, etc.)
Ex: Store name, address, telephone etc. and the name & password for the system administrator. After entering this information, when the user is going to run the program again, he now goes to the "Login" form.
Please if anyone has an idea please help me
|
|
|
|
|
Your question is not clear.
I suspect what you are asking is how you differentiate the following
1. Setup
2. Application.
There are two choices.
1. The application on start up checks for completed information. If not there then ask for it. Otherwise continue.
2. The setup itself always requests the information. You cannot finish the set up without providing the information. If the information is not provided then there is no application to run (again because the set up did not complete.)
|
|
|
|
|
To be honest, if you can't work this out on your own, then I wouldn't trust your app to be of any use to anyone in the real world.
All you need to do is add a simple boolean to wherever you are storing the store information and check it when you start up. If it's set, you go to login. If it isn't, you go to the "Enter the initial info" form, and then set it to true ready for next time.
How come you can't work that out for yourself after writing a whole supermarket management app? It's trivial compared with stock management, product ordering, cash and electronic payment handling, staff monitoring, pricing control (including legal requirements on increased / decreased price display / charge order and timing), tax handling, theft prevention, and more ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Is this a commercial application or a school project? If it's a commercial application, I would strongly suggest that you need to invest time in an identity management solution; my preferred choice is Keycloak.
|
|
|
|
|
I am measuring voltage and passing it into a C# desktop application. I need to have a graphical representation of that voltage, something similar to a linear volume meter would be perfect.
Currently I've taken a trackbar and am writing the voltage value to it. It's not ideal though. Has some issues. Certainly there's a better way to do this?
|
|
|
|
|
There are some open-source WinForm gauge/meter controls available, as well as commercial controls.
CodeProject is your friend: [^], [^], [^], [^].
For WPF: [^]
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch
|
|
|
|
|
I am trying to place a picture into B1 cell. picture is getting inserted but height is getting bigger than original image. how automatically height is getting stretched?
I am using EPPlus version 4.0.6.0 & .Net version 4.5.2. using VS IDE 2013.
Here is the output screenshot link. please have a look https://i.stack.imgur.com/acavj.png[^]
Here is desired output screenshot link please have a look.
https://i.stack.imgur.com/In3jl.png[^]
here is the code sample which i used to place picture into B1 cell.
imgCompanyLogo = Image.FromFile(@"C:\Users\tridip\Desktop\Test1\www_files\image002.png");
ws.Column(2).Width = Convert.ToDouble((45 + 0.11));
ws.Row(1).Height = Convert.ToDouble((46.5 + 0.11));
ExcelPicture pic = ws.Drawings.AddPicture("Logo", imgCompanyLogo);
pic.SetPosition(0, 0, 1, 0);
pic.SetSize(316, 60);
if i commented or not commented this line
pic.SetPosition(0, 0, 1, 0); but always getting same output where picture is getting stretched.
see the original image how it looks like. link here https://ibb.co/PCxw3v0
please tell me what is mistake in my code. please suggest a fix by which i can get my desired output.
Thanks
|
|
|
|
|
|
why do i need to set the aspect ratio. my image size is fine. when i manually insert that image into B1 cell from excel then it looks fine. so i assume i do not have to set any size for my image. when i insert that image into cell using EPPlus then height getting bigger but reason is not clear to me.
please give me more suggestion to deal this situation. thanks
|
|
|
|
|
When you insert the image directly from Excel, Excel is retaining the aspect ratio of the image.
When you're resizing the image, you are NOT retaining the aspect ratio because your resize code is not correct.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
You are asking the same question on the support forum for EPPlus on StackOverFlow: why are you asking it here ?
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch
|
|
|
|
|
I post there but no one answer it. thanks
|
|
|
|
|
You did get responses, there.
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch
|
|
|
|