|
I have a cystalreport connect with three storeproceduce (sp_name1, sp_name2,sp_name3, username='sa', server='m', database='a'). At my computer was connect 'ok', but if change server='alice' is print report error 'Failed to open a rowset'.
Help me! Thank you very much.
nguyen kiem
|
|
|
|
|
You have to review / check all the fields in your crystalreport file, see to it that all FIELDS you use should be the same as the one in your database. After that click the "verify database" to update you C.R. File. Message will appear "database updated".
Everytime you update the tables that you use in your crystal report you should always "click" update database in your CR file otherwise all the updates in your table will not be reflected in your C.R.
I always encouter that problem when I'm in hurry. Try it and everything will be ok.
Regards,
Satips.
|
|
|
|
|
On this site, i only managed to found codings for visual studio 2003 for web service authentication. Can someone please supply me with codings to do for visual studio 2005 web service authentication.
|
|
|
|
|
|
Yeah a good article !!! Tells about the process required for authentication. I would also suggest that you google for the key words and you will find even more !!!
Regards,
Jaiprakash M Bankolli
jaiprakash.bankolli@gmail.com
http://jaiprakash.blog.com/
|
|
|
|
|
Hi,
I have a stupid question. I need you help me.
I want to display only PurchaseOrder field in horizontal direction instead of vertical direction in Crystal Report of VS2005
Like this: PO1 PO2 PO3 PO4 ....
Not like default
PO1
PO2
PO3
PO4
...
Help me. Thanks in advance
It seem to be a solution or an answer.
|
|
|
|
|
Did you try with Cross tab.
Regards,
Satips.
|
|
|
|
|
Thank you in advance.
You are great and so is Cross-tab.
Thanks many thanks....
It seem to be a solution or an answer.
|
|
|
|
|
I have a Control and a Form. The Form is a member of the Control. I exposed the form on the Control using a get property...
class MyWindow : Form<br />
{<br />
....public int MyProp<br />
....{<br />
........get... set...<br />
....}<br />
}<br />
<br />
class MyControl : Control<br />
{<br />
....public MyWindow Window<br />
....{<br />
........get... set...<br />
....}<br />
}
This of course shows up in the property Window of the Control and has all the Form properties and my properties.
I however don't want to see any of the Form properties, only the Window ones. So I decided to write an interface...
<br />
interface Window : IComponent<br />
{<br />
....int MyProp<br />
....{<br />
........get; set;<br />
....}<br />
}<br />
<br />
class MyWindow : Form, Window<br />
{<br />
...<br />
}<br />
<br />
class MyControl : Control<br />
{<br />
....public Window Window<br />
....{<br />
........get... set...<br />
....}<br />
}<br />
I found out the interface will not show up in the designer if it doesn't inherit from IComponent.
However, even when I do this all of the Form properties are still shown.
Does anyone know how to fix this? At the moment I have settled for pass-through properties on my Control. (And I don't want to override evey method add the Browsable(false) attribute to each one
Thanks,
Chris McGrath
-- modified at 21:04 Thursday 12th April, 2007
|
|
|
|
|
You can try to create a custom TypeConverter[^] for your window, which filters the Window properties.
[Converter(typeof(MyWindowConverter ))]
class MyWindow : Form
{
...
}
or maybe:
[Converter(typeof(MyWindowConverter ))]
interface Window : IComponent
{
...
}
class MyWindowConverter : TypeConverter {
override GetPropertiesSupported()
{
return true;
}
override GetProperties(...)
{
}
}
Sorry i don't have a complete answer, but i hope this gives you a start.
If you don't get it working please reply so i can research further.
- alwinus
|
|
|
|
|
I think these attributes might be what you're looking for:
[Browsable(false), EditorBrowsable(EditorBrowsableState.Never)]
Tris
Edit: Just re-read your post. Nevermind.
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
i have a barcode scanner and i need reading from the barcode scanner By control(SerialPort),
how i do that?
123
|
|
|
|
|
Your scanner should come with drivers which handle the reading. They often have an option to return the code as a number.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
using System;
using System.IO.Ports;
class MyClass
{
public static void Main()
{
SerialPort sp = new SerialPort("COM4", 9600, Parity.None, 8, StopBits.One);
sp.Open();
while (true)
{
try
{
string dataReceived = sp.ReadLine();
Console.WriteLine(dataReceived);
}
catch(TimeoutException)
{
}
}
}
}
|
|
|
|
|
when try open the portname show a massage (the port (PortName)Does not exist)
please resolve my problem
my scanner is usb
123
|
|
|
|
|
I'm having to write some relatively ugly code when their realy ought to be a better way to do this. I'm sure someone has come across this before.
We are receiving messages from/ sending messages to a legacy host system that MUST be aligned a specific way.
For example I have a structure like:
struct myexample
{
public fixed byte mybytes[15];
public int myint;
public int myint2;
}
I'm not showing it here, but i use the system.runtime.interopServices.FieldOffset to make sure the bytes line up exactly correct.
I go to fill in this structure with some data
public void fillItin(string myString,
int myInt,
int myOtherInt)
{
myexample temp = new myexample();
temp.myint = myInt;
temp.myint2 = myOtherInt;
byte[] myArray = ascii.GetBytes(myString);
// cool I've got it into a byte[] structure, but now I need to convert it to my fixed
//length byte which c# treats as a byte*
// this is what I've been doing, but there MUST be a better way!
// Yuck! Way too unelegant of a solution. Help!
unsafe
{
for (int i=0;i<myarray.length;i++)
="" {
="" if="" (i="" <="" 15)="" temp.mybytes[i]="myArray[i]
" }
="" }
="" now="" convert="" my="" structure="" to="" a="" byte[]="" array="" (cool="" marshal="" utilities="" work="" well="" here)
="" and="" send="" it="" off="" ...="" some="" code="" here="" the="" message=""
}=""
<div="" class="ForumSig">Kim Ferrari
|
|
|
|
|
I believe you are using "fixed" in the wrong place. You can copy the array as you would normally do in normal C# coding. Then you pin the struct when you use it with the legacy code. Here is an example taken from Microsoft's .Net Framework documention on the C# key word "fixed":
using System;
class Point
{
public int x, y;
}
class FixedTest
{
unsafe static void SquarePtrParam (int* p)
{
*p *= *p;
}
unsafe static void Main()
{
Point pt = new Point();
pt.x = 5;
pt.y = 6;
fixed (int* p = &pt.x)
{
SquarePtrParam (p);
}
Console.WriteLine ("{0} {1}", pt.x, pt.y);
}
}
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
How c# app connect to sql server on another pc in local network?
Is connection string same when server on local pc?
Is there diversity if server is sqlexpress?
Thanks for any help.
|
|
|
|
|
You need to put the PC name into the connection string in place of (local).
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Thanks. I use below conection string, but there's appear error in remote connection.
On same pc connection is OK.
mConnection = new SqlConnection(@"data source=servername\sqlexpress;" +
"database=databasename;" +
"UID=user;PWD=pass;");
Error mesage is:
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
Server Authentication is SQL Server and Windows Authentication mode.
Allow remote connections to this server is set.
What may cause this mistake?
|
|
|
|
|
By default, Sql Server 2005 blocks remote connections. This is an intentional security measure that you can override. Just set Sql Server to accept remote connections.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
I realize this is technically a general .net question, but since this form gets many times more traffic than the .net Framework one, forgive me for thinking I have a better chance of getting an answer here. (Besides, I'll be implementing it in C# anyway)
Simple Question: Using a basic TabControl, is there any way I can get the tabs to render (and respond to clicks! That's an important bit...) centered?
More Complex Version: The centering thing above is just an example, and actually not what I want to do, but it would demonstrate the behavior that I want, which is to be able to offset the tabs from corner of the tab control by a certain pixel amount to make room for additional buttons (like a Mozilla-style drop-down). An even better question still may be, Do I have any control whatsoever over the rectangle that the tabs draw in, or the tab rectangles themselves? Please note that I would like to use the basic TabControl if at all possible.
Thank you!
--Toji
|
|
|
|
|
i wanna know how to use open file dialog control in C# aps.net web application.as i have to save the downloading attachment file on my system through my application. i want help in C# coding instead Asp.
Thanx
|
|
|
|
|
|
No actually i need its solution not for Windows application i need the sloution for Asp.net web application.
regards n thanx
|
|
|
|