|
damn, accidentally deleted my initial message...
Thanks. Do you have any idea where I can find older interops? Such as for office 2000 (i.e. version 9). They don't seem to be available anywhere - I guess there is a reason for that though.
|
|
|
|
|
aastudent wrote: office 2000
As far as I am aware there aren't any. You have to make your own. PIA's are just imported COM type libraries with nice .net friendly wrappers around the ugly interop code.
There's some discussion on it here[^]. Also, check the links at the bottom of the page for some more discussion.
Simon
|
|
|
|
|
I'm making a login page with ASP.NET with C#.
and I know that it needs to use Session for saving information of loggined user.
so I used Session like this on "login.aspx.cs" with Login View Control.
[login.aspx.cs]
// Database query.
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["Join"].ConnectionString);
SqlCommand cmd = new SqlCommand("SELECT * From User WHERE id = @ID", con);
cmd.Parameters.AddWithValue("@ID", ((TextBox)LoginView1.FindControl("TextBox1")).Text);
string name = rd["name"].ToString();
string pw = rd["password"].ToString();
string pw1 = ((TextBox)LoginView1.FindControl("TextBox2")).Text;
string id = rd["id"].ToString();
// Save to Session variables. There are a lot of components about Session. Keys, Item, Add,
//and so on..
Session["memberid"] = id;
Session["membername"] = name;
if ((string.Equals(pw, pw1)) == true)
{
FormsAuthentication.RedirectFromLoginPage(name, false);
}
....
And I made codes like this whether lggined user is same with Writer on board or not.
[Board.aspx]
public static bool IsWriter(string pdsId, string Writer)
{
string sql = "Select id From t_Pds Where boardId = @boardId And writer = @writer";
SqlCommand cmd = new SqlCommand(sql, DbConn.GetConn());
cmd.Parameters.AddWithValue("@boardId", pdsId);
cmd.Parameters.AddWithValue("@writer", Writer);
cmd.Connection.Open();
string result = (string)cmd.ExecuteScalar(); // result = ID of writer value.
cmd.Connection.Close();
// I can't use Session. When I use "Session", there are no components of Session.
// There are only two values of Session. ( SessionPageStatePersister , SessionParameter)
if (Session["memberid"] == result) //ERROR.
{
return true;
}
else
return false;
}
}
|
|
|
|
|
Hi guys
I have the code to get the directory list of the xml files in an folder but the problem is that i want to get the files in the creation date order. in other words each file has got an date it was created.
now i want to load all these xml files into an list array and in the creation date order.
is this possible?
my code sofar:
private String[] GetDirectory(String XmlFilePath)
{
List<String> strList = new List<string>();
FtpWebRequest request = (FtpWebRequest)FtpWebRequest.Create(XmlFilePath);
request.Credentials = new NetworkCredential(Username, Password);
request.Method = WebRequestMethods.Ftp.ListDirectory;
StreamReader sr = new StreamReader(request.GetResponse().GetResponseStream());
while (!(sr.EndOfStream))
{
strList.Add(sr.ReadLine());
}
sr.Close();
sr = null;
return strList.ToArray();
}
|
|
|
|
|
|
Hi,
Anybody knows how to convert postscript file of ghostscript printer to dictionary using itextsharp or programatically by any other tool I had tried this command : -
gswin32c -q -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=test.pdf -fc:\\output.ps
But the pdf generated gives the error %%EOF not found
|
|
|
|
|
Replace the -fc:\\output.ps with just the name of one or more .ps files.
Probably need to add -dBATCH as well, so its more like:
gswin32c -q -dNOPAUSE -sDEVICE=pdfwrite -dBATCH -sOutputFile=test.pdf c:\output.ps
|
|
|
|
|
hii
How can i open a popup window by clicking the day of a calender in c#.
Plz help me.
thanks & regards
Smitha
|
|
|
|
|
Which calendar? The Web Server Control or the Windows Forms MonthCalendar Control?
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I have a joystick.I write this code to control my device.but my application has delay after several minute of begin
my receive code:
private void serialPort1_DataReceived(object sender, System.IO.Ports.SerialDataReceivedEventArgs e)
{
int count = serialPort1.BytesToRead;
byte[] receive = new byte[count];
serialPort1.Read(receive, 0, count);
foreach (byte data in receive)
{
receivedbyte.Enqueue(data);
}
try
{
ReceiveFrameThread.Resume();
}
}
<here is processframe code:>
void FrameMaker()<br />
{<br />
<br />
<br />
while (permission)<br />
{<br />
bool stop = false;<br />
byte[] tempX = new byte[7];<br />
try<br />
{<br />
<br />
do<br />
{<br />
lock (receivedbyte.SyncRoot)<br />
{<br />
<br />
if (receivedbyte.Count > 7 && !stop)<br />
{<br />
tempX[0] = (byte)receivedbyte.Dequeue();<br />
<br />
}<br />
}<br />
} while (tempX[0] != 0xfe);<br />
lock (receivedbyte.SyncRoot)<br />
{<br />
<br />
for (byte i = 1; i <= 6; i++)<br />
{<br />
if (receivedbyte.Count > 0)<br />
tempX[i] = (byte)receivedbyte.Dequeue();<br />
<br />
}<br />
}<br />
if (permission)<br />
ReceiveFrameThread.Suspend();<br />
}<br />
catch (Exception ex)<br />
{<br />
MessageBox.Show(ex.Message);<br />
<br />
}<br />
FrameProcess(tempX);<br />
}<br />
<br />
}<br />
<start code is>:
void Start()
{
serialPort1.Open();
ReceiveFrameThread = new Thread(new ThreadStart(FrameMaker));
permission = true;
ReceiveFrameThread.Start();
}
&
<big>plz say to me how to dicrease this delay
|
|
|
|
|
Hi CP gurus,
I have a gSoap Web Service written using C++, it uses SOAP username and
password authentication.
I also have a C# client consuming the web service, all this was working
fine until I added the authentication on the server, now I can not get the
client to authenticate web service methods. Can someone tell me how to add authentication info
to the SOAP message posted from the C# SOAP client.
It may look something like this...
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns1="http://localhost:80/Service.wsdl"
xmlns:ns2="http://tempuri.org/ns1.xsd"><SOAP-ENV:Body><ns2:getBatteryLevel></ns2:getBatteryLevel></SOAP-ENV:Body></SOAP-ENV:Envelope>POST
/ HTTP/1.1
Host: localhost:8080
User-Agent: gSOAP/2.7
Content-Type: text/xml; charset=utf-8
Content-Length: 489
Connection: close
Authorization: Basic dXNlcjpwYXNz
SOAPAction: ""
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns1="http://localhost:8080/Service.wsdl"
xmlns:ns2="http://tempuri.org/ns1.xsd"><SOAP-ENV:Body><ns2:GetDBOldestPendingRow><iMaxRows>100</iMaxRows></ns2:GetDBOldestPendingRow></SOAP-ENV:Body></SOAP-ENV:Envelope>
No how to add the blocked Authentication line in the SOAP message.....???
Searched Google... but no clue is left....
Thank in advance for your help.....
Have a Happy Coding.....
|
|
|
|
|
I have noticed that updating a DGV (only a couple of cells), still has the application repainting the whole grid when an Update occurs! I have an application with up to 6 DataGrids with 5 columns and up to 40 rows. As I step through my loaded database, I see results changing in real time on the DataGrids but it is very slow as it sweeps across the screen. Flicker is certainly noticeable on cell values that have not changed.
I don't see the need to repaint up to 1200 cells when only a few of them have actually changed (value & BackColor).
Even on a blank grid, I have stepped through the CellPainting Event when only the selected cell has changed yet the whole grid is still repainted.
When I take care of the CellPainting myself, only the cells I want to update are modified some flicker is still visible but the performance is vastly improved. However, the other cells are messed up from other windows when they get on top or when my window is resized.
I have noticed the ClipBounds property from the DataGridViewCellPaintingEventArgs informs you of the area that needs to be painted.
Is there something I am missing about the DataGridView CellPainting? Any help much appreciated!
john1166
modified on Tuesday, May 12, 2009 6:32 AM
|
|
|
|
|
I can get the browser reference through a BHO. I can able to get normal web page document but unable
to get the reference of PDF file which is opened on browser. How can I get, when I googled I found
that
Acrobat.AcroAVDoc avDoc = webBrowser.Document as Acrobat.AcroAVDoc;
avDoc.GetAVPageView();
avDoc.GetPDDoc();
How can I get the refernce of PDF file which is getting loaded on Internet explorer when I try to open
a PDF link...
|
|
|
|
|
HI.
I have two C# application ("first" and "Second") and i call "first.exe" from the "Second" program with this code :
System.Reflection.Assembly extAssembly = System.Reflection.Assembly.LoadFrom("c:\\first.exe");
Form extForm=(Form)extAssembly.CreateInstance("first.Form1",true);
this.AddOwnedForm(extForm);
extForm.Show();
Then I want to pass some parameters from the "second" program to the "first" program .
Can anyone help me please?
|
|
|
|
|
Parameterized constructor?
जय हिंद
|
|
|
|
|
|
Hi friends,
I am currently working on windows mobile.
I need to know how to get different time zones in mobile.
GetSystemTimeZones() function is not available in .NET compact framework.
what would i do to over come this..
Thanks in Advance
|
|
|
|
|
Hi to you all
I'm trying to nudge a picture in excel sheet, but I couldn't do that till now.
Thank you all
mohammed was a great prophet
|
|
|
|
|
Keep trying.
Anyways, what's the question?
जय हिंद
|
|
|
|
|
I have a picture located in cell(D4), I want to nudge it a little right, is there any way to do that.
Thank you
mohammed was a great prophet
|
|
|
|
|
I think Microsoft.Office.Interop.Excel.Picture will help you out.
जय हिंद
|
|
|
|
|
Thank you d@nish for trying to help me,
finally I found the right solution, and I'm going to write it down for every one.
first we have to get the cells range (the code is written within a simple for loop):
object kui = Exl.Cells[i+1,4];
Microsoft.Office.Interop.Excel.Range mr = Exl.get_Range(kui, kui);
then write this lines of code:
mr.Cells.Worksheet.Shapes.Item(i + 1).IncrementLeft(7);
mr.Cells.Worksheet.Shapes.Item(i + 1).IncrementTop(23);
and to rotate the increment you just need to write the numbers within the brackets in negative like that
mr.Cells.Worksheet.Shapes.Item(i + 1).IncrementLeft(-7)
mohammed was a great prophet
|
|
|
|
|
Hi..Experts
I have doubt to get one solution.My task is ,is it possible to take some mobile while we put a data cable to system the folders are be visible in the computer.Shall is any way to create a component in windows form using c#.net ,that by clicking one button the folders may be the sms or images should be copied or drag and drop to that windows form from the mobile.Please suggest me related to this task.
Thanks and Regards
Ch.Gayatri
|
|
|
|
|
If it is a Windows based mobile, RAPI is what you need to use. Here[^] is a library which can help you.
Not sure about other mobiles though.
जय हिंद
|
|
|
|
|
Don't post the same question in multiple forums. Pick one and stick with it.
|
|
|
|