|
I have a Win Forms App that I authored with reports using RDLC GUI design. I deployed an upgrade last week after the customer bought new color laser printers and noticed that the charts on the report printed larger than the other text objects. At first I thought it was the printers, but testing showed all the printers did the same thing. Then I tried multiple computers, and they all printed different. Finally isolated the issue down to the Windows Zoom level. The first computer had a zoom level of 130%, and my computer was set to 100% when I developed the report.
So I'm scratching my head on this, and concluded that the chart objects are sizing based on the zoom level of the desktop. The GUI part, where you view the report on the report canvas sizes correct, and if you select PDF and print, it prints correct. But if you choose a PDF printer, the chart objects size to the zoom level of the desktop.
Wondering if anybody else has noticed or dealt with this, and how you fixed it.
If it ain't broke don't fix it
Discover my world at jkirkerx.com
|
|
|
|
|
After hours of working with the RDLC, making the charts the size of postage stamps, looking at the rectangle containers, upgrading the Nuget packages for Report Writer. Changing the Framework version, trying it on VS 2019, and on and on. And even working with the printer drivers.
It's the Monitor. I bought a set of new Dell U2719, and so did my customer. Mine are set at 100% zoom, and his 125% zoom. I used one of my old monitors, a Dell U2412 as a 3rd monitor. If I set my U2719's to 125% zoom, and my U2412 to 125% zoom, and print with my winform app on the U2719, the chart objects don't scale. Then if I drag my app over to the U2412 at 125% and print, the chart objects print to scale.
Go figure, just dragging the app over to my 3rd monitor prints correct. Drag the app back to one of the first 2 monitors prints incorrect.
I think Dell needs to take a look into this on the U2719. And I know if I call Dell and create a support ticket, they will tell me to look in my spam folder and see if that fixes it.
Oh Well, it's not my code at least. And it's not Microsoft.
If it ain't broke don't fix it
Discover my world at jkirkerx.com
|
|
|
|
|
Hi Sir,
I'm trying to use oracle Stored Produce with my login form as below :-
<pre>package cms is
function validateUser( username in cms_user.cu_username%TYPE,
passwd in varchar2,
errmsg out varchar2 )
return number;
END;
Here my Vb.Net Code :
<pre>Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
conn.Open()
Dim oracmd As New OracleCommand
oracmd.Connection = conn
oracmd.CommandText = "cms.validateUser( username, passwd, msg )"
oracmd.CommandType = CommandType.StoredProcedure
oracmd.Parameters.Add(New OracleParameter("username", OracleType.VarChar)).Value = TxtUsername.Text.Trim
oracmd.Parameters.Add(New OracleParameter("passwd", OracleType.VarChar)).Value = TxtPassword.Text.Trim
oracmd.Parameters.Add("msg", OracleType.VarChar).Value = Label1.Text
oracmd.Parameters("msg").Direction = ParameterDirection.Output
oracmd.ExecuteNonQuery()
conn.Close()
End Sub
and got this Error :
ORA-06550: line 1, column 7:
PLS-00801: internal error [22503]
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
Can anyone guide me plz....tq
|
|
|
|
|
|
sir,
My password in DB is encrypted, what i try to do is just to check whether the username n password correct it will return the value 0 or 1,
I'm blank how to do , plz help me ,tq
|
|
|
|
|
"Encrypted" passwords are only marginally better than passwords stored in plain-text.
Passwords need to be stored using a salted one-way hash, with a unique salt per record. Read the articles I linked to in my previous reply for details.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
kerek2 wrote: and got this Error :
ORA-06550: line 1, column 7:
PLS-00801: internal error [22503]
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
Did you read something about these ORA-06550 and other errors?
Like [Oracle / PLSQL: ORA-06550 Error Message](https://www.techonthenet.com/oracle/errors/ora06550.php)
|
|
|
|
|
Yup already read it, for info...my password in Db is encrpted, so i try to use stored procedure to check whether the username n password is correct or not and will return the value 0 or 1,
Blank to do it, plz guide me sir, tq
|
|
|
|
|
In your Stored Procedure you are attempting to use the type (%TYPE ) cms_user.cu_username but you haven't supplied the definition for that type.
In your VB code you are trying to pass username as a VarChar
Try changing your stored procedure to be
function validateUser(username in varchar2,.. and see if that has any effect.
|
|
|
|
|
Hello
I have the problem of packing multiple XML files with TAR format.
I am using the language Visual Basic 6, with which I create from one to less than 500 XML files, to later want to pack them with the TAR format, generating a file called package.tar, which in turn I will have to compress with GZIP to finally build a file called package.tar.gz
I tried the code of this website https://github.com/wqweto/VszLib, but I can only create files called package.7z
Does anyone have any idea how to solve my problem?
Excuse me for my writing, it is that I do not speak english, and I translated this message with googletranslate from spanish.
Bye
|
|
|
|
|
Nobody uses VB6 any more. It's been obsolete for over 20 years.
You're going to have to write that code yourself if there are no prewritten libraries. You can Google for "tar vb6" and start looking at the results.
|
|
|
|
|
Use an external program; there's some command-line executables that create tars', and VB6 can easily execute those.
..but if it is an important application, you better start upgrading.
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
How to get the encoding of libre-office from the VBA code ?
For example encoding can be UTF-8,UTF-16,etc.How to retrieve this from vba code?
If anybody has any idea provide help.
Thanks.
|
|
|
|
|
It sounds like you're assuming that every file has an encoding. This is not the case.
There MIGHT be a byte order mark in the first 2 to 4 bytes of the file. Those bytes will tell you what the encoding is. See Byte order mark - Wikipedia[^] for what those bytes are.
If the byte order mark is not there, there is no reliable way of determining what the encoding is, if any. Usually, if there is no byte order mark, you assume it's ASCII or UTF-8.
|
|
|
|
|
A crude way is to apply an encoding and run a spell-checker. The one with the least spelling-errors is probably the encoding used.
Not very efficient and not bullet proof.
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Hi to everyone,
in my program i compare 2 byte array to check haw many byte are the same(true value only).
For this scope i use a for next that compare any position of Arr1 with Arr2
I thing that exist a more efficent way to do this.
An example
arr1 = 0011 0000 1011
Arr2 = 0100 1100 1010
return me 2 because position 9 and 11 are 1
Any idea?
Tnx
Salvo
|
|
|
|
|
Do you compare BYTE or bit arrays?
How are you doing the compare? Could you show your code?
|
|
|
|
|
You could (maybe) use a logical AND operation on each pair of bytes, and count the non-zero bytes (or bits) in the result. for example in your data above:
arr1 = 0011 0000 1011
Arr2 = 0100 1100 1010
==== ==== ====
0000 0000 1010 - the result of the AND operation
|
|
|
|
|
Good morning to the whole community,
I would like to expose a problem, I hope you can help me.
I have a fully functional exe on the machine where it was developed, but malfunctioning with Debug JIT message series on normal W10 64 clients with latest updates. Going to check the .Net Framework versions installed on the clients, I find 4.8. Trying to install the .Net Framework version with which I developed the software but runtime version, the .Net Framework installer tells me that it is not possible to continue as there is already a more recent version. Now I wonder what should I do? Do I need to install the Developer version? I don't understand why it works perfectly on the machine where it was developed while on other clients it doesn't. .Net Framework: 4.6.1 Code: VB.NET
thank you so much and I hope you can help me
Google translate
|
|
|
|
|
Before you do anything, you need to investigate the problem to find out what is going wrong. If you change something on the target machine you could make the problem worse.
|
|
|
|
|
On the target machine I have not changed anything except the attempt to install the net framework runtime 4.6.1. How fair it is of course. But since there is 4.8 on the client, the setup stops saying that there is no point in installing 4.6.1. I don't understand, however, for what reason if the software works very well on the machine I develop, on other clients it gives errors. I was wondering if it was appropriate to install the NF 4.6.1 Developer Kit.
Thanks so much
Google translate
|
|
|
|
|
There is no point in trying to guess what the problem is. You need to find out exactly what is causing the failures. You cannot make changes to the system until you know exactly what the problem is. Also, the .NET frameworks are forward compatible (mostly), so an application built on 4.6.1 should run on 4.8.
|
|
|
|
|
No, there's no point.
Installing 4.8 includes everything .NET 4.x to that point, including 4.6.1.
This is something wrong in your code or some assumption you made when writing it.
|
|
|
|
|
eusta wrote: I would like to expose a problem, I hope you can help me.
I have a fully functional exe on the machine where it was developed, but malfunctioning with Debug JIT message series on normal W10 64 clients with latest updates. Going to check the .Net Framework versions installed on the clients, I find 4.8. What is the exception logged? "FileNotFound"?
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
I solved. Fault of one of the hundreds of obfuscators that NEVER work !!
|
|
|
|