|
You don't look through the Intellisense list much, do you? You just said it yourself -> this.Hide()[^]
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I said that as I found it in the list lol.
|
|
|
|
|
What is the best way to:
1. Show a pdf
2. grab a pdf's structure (pages/chapters etc)
3. Grab text only
I've seen many libraries even the Adobe SDK, which claims support for VB C++, I'm just courious if anyone else has looked at working with PDF viewing and had a .net tool to recommend.
-Steven Hicks
CPACodeProjectAddict
|
|
|
|
|
There are some open source C# tools on SourceForge. When I had to do this, I was changing fields in one PDF only, which we generated, so I created a non compressed PDF and changed the text with string replacement. The PDF specification is pretty logical and easy to get, if you need more than that, it may be worth your while to look at it, also.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi
I want to convert one string input in one of my function in c# to System.IO.Stream object but it gives me conversion error in 2nd line of the below function
static myFunc(string strInput)
{
Stream objStream;
objStream=(Stream)strInput;
}
would much appreciate any help
Thank you
Share knowledge to enhance your learning
|
|
|
|
|
You can't expect to convert a type to something else just like that. If you can do with a Reader, you can try the StreamReader class.
Or if you absolutely need a Stream, something like this will work
string obj = "Senthil rocks";
Stream s = new MemoryStream(Encoding.ASCII.GetBytes(obj));
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Hey all...im trying to paste something as "enhanced metafile" but i dont know what parameters to set ...anyone know of what they are or where i can find documentation??
WordApp.Selection.PasteSpecial(ref what??????????????????????)
Thanks
FIXED IT:
object Placement=Word.WdOLEPlacement.wdInLine;
object DataType = Word.WdPasteDataType.wdPasteEnhancedMetafile;
WordApp.Selection.PasteSpecial(ref missing,ref missing,ref Placement,ref missing,ref DataType,ref missing,ref missing);
|
|
|
|
|
trying to create child nodes from db, i have 5 entries in the db listed in order as show:
hello1
hello2
hello5
user1
user2
when i create the child node it only shows "hello1", i can get it to change from "hello1" to "hello2" if i change my query, but they still are all the same listing.
here it the code:
treeView1.Nodes.Clear();
dataConnection.Open();
TreeNode dbnode = new TreeNode("Cashier User Names");
TreeNode dbnode1 = new TreeNode();
string dbName = dataConnection.DataSource.ToString();
treeView1.Nodes.Add(dbnode);
dataCommand.Connection = dataConnection;
dataCommand.CommandText = "SELECT id ";
dataCommand.CommandText += "FROM people WHERE access_level = 'Cashier' ORDER BY id DESC";
dataReader = dataCommand.ExecuteReader(CommandBehavior.CloseConnection);
while (dataReader.Read())
{
dbnode1.Tag = dataReader.GetValue(0).ToString();
dbnode1.Text = dataReader.GetString(0);
dbnode.Nodes.Add(dbnode1);
treeView1.ExpandAll();
}
please help as i'm struggling to learn this treeview
there isn't much written info on them that i can find
|
|
|
|
|
You're modifying the same node instance over and over again, no wonder you only see 1 node...
You'll have to call new TreeNode() for every return from your dataReader .
Regards,
mav
|
|
|
|
|
had the new treenode in the wrong spot....
now it works like this:
TreeNode dbnode1 = new TreeNode();
dbnode1.Tag = dataReader.GetValue(0).ToString();
dbnode1.Text = dataReader.GetString(0);
dbnode.Nodes.Add(dbnode1);
treeView1.ExpandAll();
thanks...
|
|
|
|
|
Hi all, give me a bit of advise:
How to send such a kind of struct:
public struct SomeStruct<br />
{<br />
public string strData1;<br />
public long lngData2;<br />
public long lngData3;<br />
}
using .NET Remoting (HTTP prtocol being used)...
or gime, plz, some references where i can find it!
Best regards, FLUID
|
|
|
|
|
Hi!
You just have to mark your struct [Serializable] and then you can use it as parameter type for a remote method.
Regards,
mav
|
|
|
|
|
Yes, its correct, but when i'm trying to declare my struct as [Serializable] i got the following error:
System.Runtime.Serialization.SerializationException: Parse Error, no assembly associated with Xml key
|
|
|
|
|
Without the real struct it'll be hard to help you any further.
Please post some code.
Regards,
mav
|
|
|
|
|
Hi,
I created a DataSet for my webservice application which i can easily use to display data in Web. the data contains list of users and their personal details.
eg.
DataView myview = data.Tables[<tablename>].DefaultView;
it displays all available data in the table.
the question is: is it possible not to display certain data belonging to certain parameter (e.g. emails of certain user)?
e.g. for user 'x & y', his 'email add' should not be displayed.
thanks a lot.
rnv
|
|
|
|
|
The datatable has a select method, which will allow you to run SQL on the data in the table and get the result out. The dataRow has a RowFilter property, which you can use to do the same thing.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I think you could also specify in your query to the database what fields you choose to get and what not to get. Sorts of filters the data before you post it in your app
|
|
|
|
|
Yeah, obviously. But I'm assuming he's wanting to dynamically change the filter without going back to the database.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
oh...ey chris i've got a thread below "Simple Problem" I was wonderin if you could help me out. Thanx!
thanx
|
|
|
|
|
oh...ey chris i've got a thread below "Simple Problem" I was wonderin if you could help me out. Thanx!
|
|
|
|
|
what i exactly want to do is this:
i have user records with users personal details. currently when i do defaultview it shows all data of every user.
users can specify if they would like to publish their email address or not. if yes then the user's all details are shown including the email address. if no then all other details are shown except for the email address. please not that i am displaying list of all users not of a selected users. that means that when i display the list of users some should contain email address otheres left empty (or specified as 'blocked').
hope it is more clear now.
|
|
|
|
|
hii all;
is any one knows how to use "Push model" in client server communication or what is exactlly Push Model Algorithm.?
marcoryos
|
|
|
|
|
A pull model means that the object recieving the message asks for it when it wants it, and a push model means that the object sending a message is responsible for sending it without waiting for a request.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I have a component that generates an xml document. I need to post the xml to another web site from the component via http. I know the msxml component can do this, but I was hoping to find something native to .net that could handle this. Does anyone know where to look for this? Or will I have to use interop to use the msxml dll? Also, if I have to go that route, can anyone recommend a good tutorial on that? I haven't done anything with interop before so I'm a little unclear on how to figure out what the entrypoint is and so forth. Thanks.
|
|
|
|
|