This took a little while for me to figure out but when calling SetCMYKColorFillF(Single, Single, Single, Single) make sure that your singles are from 0 to 1, not 0 to 100 as normal CMYK values are represented. So for a 78%/18%/18%/6% use: SetCMYKColorFillF(0.78F, 0.18F, 0.18F, 0.06F)
Month: August 2010
“Could not find any resources appropriate for the specified culture or the neutral culture”
Just recieved this error: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure “AjaxControlToolkit.Properties.Resources.NET4.resources” was correctly embedded or linked into assembly “AjaxControlToolkit” at compile time, or that all the satellite assemblies required are loadable and fully signed. Sometimes .Net errors look a lot…
Sql OUTPUT Params, SqlDataReaders and “Object reference not set to an instance of an object”
When you call ExecuteReader() on a SqlCommand object that has OUTPUT parameters you won’t be able to access the OUTPUT parameters until the SqlDataReader has been closed. Private Shared Sub SomeMethod() Using Con As New SqlConnection(“DSN…”) Con.Open() Using Com As New SqlCommand(“MyProc”, Con) Com.CommandType = System.Data.CommandType.StoredProcedure Com.Parameters.Add(New SqlParameter(“@YourOutputParam”, System.Data.SqlDbType.Int) With…
SQL Server 2008 Express Asymmetric Encryption
First off, if you’ve got SQL Server 2008 Enterprise Edition I’d recommend that you look at TDE. SQL Server 2008 Express Edition doesn’t support TDE so instead we need to find another way to encrypt our data. The method that I’m talking about here is asymmetric encryption using a password…