Showing posts with label studio. Show all posts
Showing posts with label studio. Show all posts

Wednesday, March 28, 2012

Images on a report

Hi being new to reporting services this is probably simple, so here goes.

Using Visual Studio 2005 to create the report. I have a SQLExpress db.

In the Product table that I want to run the report on there is a field called ImageName it contains the image filename e.g CanonIXUS.jpg

and I have a directory with all the images in it.

So how do I get the report writer to show the Image for the product in the row?

Thanks

Please check the documentation:
http://msdn2.microsoft.com/en-us/library/ms156482(SQL.90).aspx

In your case, it sounds like you want to add an "external" image where you will need to dynamically construct the path with an expression.

-- Robert

|||

Hi,

Thanks for that.

However all the documentation talks of an image wizard and various properties when you drag an image control onto a report.

Unfortunatly after adding a report (test.rdlc) to my VS2005 project none of these options seem to be available to me. I can easily display data but I don't have a place to select the various properties for an image eg. "external" .

Any Ideas ?

|||

You can use the VS property browser to set the image properties. To set the source of an image to "external", select the image, go to the Properties window and locate the Source property.

-Albert

Images on a report

Hi being new to reporting services this is probably simple, so here goes.

Using Visual Studio 2005 to create the report. I have a SQLExpress db.

In the Product table that I want to run the report on there is a field called ImageName it contains the image filename e.g CanonIXUS.jpg

and I have a directory with all the images in it.

So how do I get the report writer to show the Image for the product in the row?

Thanks

Please check the documentation:
http://msdn2.microsoft.com/en-us/library/ms156482(SQL.90).aspx

In your case, it sounds like you want to add an "external" image where you will need to dynamically construct the path with an expression.

-- Robert

|||

Hi,

Thanks for that.

However all the documentation talks of an image wizard and various properties when you drag an image control onto a report.

Unfortunatly after adding a report (test.rdlc) to my VS2005 project none of these options seem to be available to me. I can easily display data but I don't have a place to select the various properties for an image eg. "external" .

Any Ideas ?

|||

You can use the VS property browser to set the image properties. To set the source of an image to "external", select the image, go to the Properties window and locate the Source property.

-Albert

sql

Monday, March 26, 2012

Image without code!

Is it possible to insert a image in SQL Management Studio without use codes?

Like you search the image with a explorer window, click on it and... done!

The short answer is No.

Now it might be possible to visit a website that handles images for you -but it will be using SQL Code behind the scenes to SELECT/INSERT images for the browser.

|||As Arnie referred you have to depend upon the code to perform this, may be with a VBscript or any .NET script to attach that image.

Image Storing In SQL Server 2000

HI,

Kindly Guide me how to store picture files in SQL server 2000 using Visual studio 2005

In your database design, make space for a field of type text.

When you work with the images, serialize them into a string and insert the string into the DB. When you retrieve the string, you have to convert it from string to an image.

Have a look at those two methods:

public static string ImageToString(System.Drawing.Image img) { MemoryStream ms =new MemoryStream(); img.Save(ms, img.RawFormat);byte[] array = ms.ToArray();return Convert.ToBase64String(array); }public static System.Drawing.Image StringToImage(string imageString) {if (imageString ==null)throw new ArgumentNullException("imageString");byte[] array = Convert.FromBase64String(imageString); System.Drawing.Image img = System.Drawing.Image.FromStream(new MemoryStream(array));return img; }

|||
Public Shared Function ImageToString(ByVal imgAs System.Drawing.Image)As String Dim msAs MemoryStream =New MemoryStream() img.Save(ms, img.RawFormat)Dim array()As Byte = ms.ToArray()Return Convert.ToBase64String(array)End Function Public Shared Function StringToImage(ByVal imageStringAs String)As System.Drawing.ImageIf imageStringIs Nothing Then Throw New ArgumentNullException("imageString")End If Dim array()As Byte = Convert.FromBase64String(imageString)Dim imgAs System.Drawing.Image = System.Drawing.Image.FromStream(New MemoryStream(array))Return imgEnd Function
In VB.NET this should do the trick:

I found this language conversion tool, in case you need it for later use:http://www.dotnetspider.com/convert/

Please mark my post as anwer if it solves your issue.

|||

Thanks

Reagrds

Fakhruddin

Monday, March 19, 2012

I'm unable to install SQL SERVER 2005 develop ed. and VISUAL STUDIO 2005

I'm unable to install SQL SERVER 2005 develop ed. and VISUAL STUDIO 2005 in
the same computer.
I have tried to install several times from different ways and all was with
error.
I understand that I have to uninstall all previous versions os SQL and VS. I
done it.
I understand that first I have to install is SQL Server and after VS
selecting "custom" installation choice and deselecting the last entry in the
list: "Express Edition of SQL Server"
Doing so, I have installed SQL SERVER sucessfully. But, when tried to
install VS the Window's installation disappear without tellling nothing. No
error, no message. Don't arrive to the installation options !
Please, someone could give some help ?
Thanks!
hi,
3Dfelix wrote:
> I'm unable to install SQL SERVER 2005 develop ed. and VISUAL STUDIO
> 2005 in the same computer.
> I have tried to install several times from different ways and all was
> with error.
> I understand that I have to uninstall all previous versions os SQL
> and VS. I done it.
> I understand that first I have to install is SQL Server and after VS
> selecting "custom" installation choice and deselecting the last entry
> in the list: "Express Edition of SQL Server"
> Doing so, I have installed SQL SERVER sucessfully. But, when tried to
> install VS the Window's installation disappear without tellling
> nothing. No error, no message. Don't arrive to the installation
> options !
personally I did the opposit way... first VS2005 and then SQL Server 2005..
with no problem at all...
ok, this has been done on a "clean" box, that's to say on a box without
"beta" of "2005" tools (SQL or VS) installed...
Andrea Montanari (Microsoft MVP - SQL Server)
http://www.asql.bizhttp://italy.mvps.org
DbaMgr2k ver 0.20.0 - DbaMgr ver 0.64.0 and further SQL Tools
-- remove DMO to reply

Monday, March 12, 2012

Im a noob and i need to make cell editable in studio

I have created a table in sql studio and i need to make cell editable and be able to update them to the server. I have looked around here but all i can find is code for the site side, i need a way to do it in studio if possible. BTW im very new to this so im sorry in advance

Hi,

Do you want to edit your data in the tools such like sql management studio? If so, first you should connect to your remote sql server, and click on your database node, open your datatable, edit your data. If you are familiar with sql statement, you can connect to you database server by Query Analyzer and execute your sql command, it also can help you edit the data in your remote database.

Here are some HowTo articles which might be helpful to you .http://support.microsoft.com/ph/2855/en-us/?aid=1&GSA_AC_More1

Hope that helps. Thanks.

|||

OK, thanks i got it working in studio now. How can i make only a part of a row editable and now the rest? I didnt see a way to do that

|||

Hi,

"only a part of a row..."Do you want to make some of the columns editable? Well, it has related to the role problem. In SQL92, you can use GRANT syntax to set the specific authority against those columns or fields in a table and grant a user the authority. About GRANT, see:http://msdn2.microsoft.com/en-us/library/ms178569.aspx .

The second way is just set the authority against a table. The table contains those columns or fields which should be editable or uneditable and make a View with other tables. In this way, you also can achieve your goal.

Thanks.

Sunday, February 19, 2012

IID_IDBInitialize interface of sql mobile 2005 problem in VisualStudio2005

Opening a connection to the database in Visual Studio 2005 and while closing the connection donot release the IID_IDBInitialize interface ,properties and not Uninitialising.

Try to open database file using CFile to check existence.

Works perfectly using sqlce2.0 & evc4.0 project.

After upgrading the above project to Visual Studio 2005

Same CFile open method fails at run time

But if close the connection completely i.e. close the IID_IDBInitialize interface also .Then it works perfectly in Visual Studio 2005.

Is there any change in IID_IDBInitialize interface of sql mobile 2005 ?

SQL Mobile *REALLY* commits the changes to DISK FILE at a default flush interval of 10 seconds. So, may be the database might have been created in RAM and is yet to be flushed to DISK and with in this flush interval, you might hit this problem.

Thanks,

Laxmi Narsimha Rao ORUGANTI, SQL Server Everywhere, Microsoft Corporation

|||

of course, this default interval (for commit transaction) could be changed and you could ask the SQL CE 3.0 engine to flush in real time (what we do in our development)


HTH,
Fabien.