|
Thanks, you Finally understood. Now we must get back to help the community instead of wasting time on each other.
|
|
|
|
|
|
This was a great help for given by saurabh
respect your knowledge!
but i have seen Rajesh or many others who are helping badly, though criticism but proper yes most of us who visit this webiste CP needy of help there are few like Rajesh,Navneet,Christian Graus,Anshuman and finally Pallini who give performance tips also ... who helps us.
please dont mind there criticism it will help you to learn other language also ..
Rule:
More you involve here more help you get
so keep asking good question !!!!!!!!!!!!!!!!
vikas da
|
|
|
|
|
Thanks buddy
|
|
|
|
|
For the record, I'm not the one voting down you down. I've balanced it in fact.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Dear All,
I am using FileStream Class to read from pdf file and then set the DocumentStream of Web Browser to that FileStream object, but it seems web browser control doesent work so.
FileStream fs=new FileStream(filePath,FileMode.Open,FileAccess.Read);
webVr.DocumentStream=fs;
This shows a very missing things in web browser control.
basically i am using stream, that is bz i am getting my pdf file from another server.
can i show pdf files using WebBrowser Control?
i have got a reference which i can Ipersist Interface, but i didnt find any example of this interface.
i would appreciate to have an example of this interface "IPersist"
Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan
modified on Wednesday, June 10, 2009 7:34 AM
|
|
|
|
|
You don't need to do that at all. Just Navigate to filePath
Between the idea
And the reality
Between the motion
And the act
Falls the Shadow
|
|
|
|
|
thx dude, u might know when i use navigate, that bring the toolbox and other elements of adobe which i dont want.
My PDF is always one page document and i want that to appear very clean.
Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan
modified on Thursday, June 11, 2009 1:51 AM
|
|
|
|
|
Hi Abdul
There are two options for you.
1) File should be in the webserver location in the server, be in wwwroot folder of IIS or in any apache webserver.
eg. C:\inetpub\wwwroot\pdf\a.pdf
You can then write a c# client code
if (browser == "Firefox" || browser == "firefox")
System.Diagnostics.Process.Start("firefox.exe", urlname);
else
System.Diagnostics.Process.Start("iexplore.exe", urlname);
where urlname = "http://10.1.1.23/pdf/a.pdf" coming from an xml file.
2) you may download the file from server to your machine through the below webservice code.
// name contains path of pdf file in the server
System.IO.FileInfo fInfo = new System.IO.FileInfo(name);
long numBytes = fInfo.Length;
System.IO.FileStream fStream = new System.IO.FileStream(name, System.IO.FileMode.Open, System.IO.FileAccess.Read);
System.IO.BinaryReader br = new System.IO.BinaryReader(fStream);
// convert the file to a byte array
byte[] data = br.ReadBytes((int)numBytes);
br.Close();
fStream.Close();
fStream.Dispose();
// return pdf if we made it this far
return data;
and show it in the browser by the below code
if (browser == "Firefox" || browser == "firefox")
System.Diagnostics.Process.Start("firefox.exe", localpath);
else
System.Diagnostics.Process.Start("iexplore.exe", localpath);
where localpath="c:\a.pdf" coming from xml file
|
|
|
|
|
thx my friend, u might taught of webbrowswer like IE or firefox, but i am asking of WEBBROWSER control in windows Form Application which is in .Net Framework 2.0
Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan
|
|
|
|
|
Hi Experts
I am Working With C#.Net in 2005.I Have a text File i read it to show in
Rich Text Box. After That I Want To Run Find Word In side The Rich Text Box and
Find Word Color is Dark(Highlight the Find Text )
Then How We Can Do Find and High light Operation on Rich text Box.
Thank u
Dinesh
|
|
|
|
|
You can use the RichTextBox.Find(string) method. That gives you the first instance of the string you pass it as a parameter (-1 otherwise). That's the SelectionStart. SelectionLength is fairly simple to calculate - just add the phrase's Length to SelectionStart. Then you simply have to change the SelectionFont property of the RichTextBox
Between the idea
And the reality
Between the motion
And the act
Falls the Shadow
|
|
|
|
|
I have to convert any vedio file to flv format while uploading that vedio.while saving that vedio it should be in flv format.
ashishbisen
|
|
|
|
|
ashishbisen wrote: I have to convert any vedio file to flv format while uploading that vedio.while saving that vedio it should be in flv format.
Go ahead, it looks like a good idea.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Good luck.
What is your question?
What have you try'd? (if anything at all)
Any code?
Any errors? (if so where?)
...
We are NOT here to do your (home)work for you.
[EDIT]And cross posting is considered rude.[\EDIT]
|
|
|
|
|
The FileUpload control doesn't actually do any conversion. It simply allows the user to select a file, and then saves it to a specified path on the server. If you want to do any conversion on the file, you need to manipulate the file bytes. However, you could in theory check if the file is a video by looking at the FileUpload.PostedFile.ContentType property; if it starts with "video/" then it would appear to have the correct MIME type. I'm not certain whether this would work properly though - since it's just a byte stream, it could quite easily have the MIME type "application/octet-stream"
Between the idea
And the reality
Between the motion
And the act
Falls the Shadow
|
|
|
|
|
Hi i am creating a GUI to represent a virtual joystick, (Prototype to represent features)
I am encountering the white background problem.
I used a picture of the joystick in a picture box then added the controls however a white background appears on the rectangle around them even though i used this.BackColor = Color.Transparent;
It only happens when i put a picture box not if i set the picture as the form background.
Is there a way of getting rid of the white rectangles?
|
|
|
|
|
If I recall correctly, there is no real depth when dealing with overlapping controls. The transparency works by copying the background of the form to simulate it. If you have other controls in between you'll get the problem you are seeing. This is one of the things that WPF fixes.
Man who stand on hill with mouth open wait long time for roast duck to drop in
|
|
|
|
|
Thanx. Yes i see what you mean. When i add the picture in the background the squares dissapear.
However this creates a problem, when i maximise the app the image is repeated several times (6) of the same picture, i cant get this to stop happening either.
|
|
|
|
|
Hi
My project is in .net 1.1
I have two windows services server and client in which the client will send requests to server remotely.
We have server and client installed in one test server(system 1) and one instance of client is installed in another machine(system2).
when any request go from client(system2) to server(system1) like fetching some data from database the requested data is not available in the database i am getting the below error
"ERR(-13):Server encountered an internal error. For more information, turn on customErrors in the server's .config file."
2. when the same request sent through the client(system1) to the server(system1)(both client and server are in same machine) i am getting proper error message.
"ERR(-1):Missing mandatory parameter 'Scenario'"
code :
*******
on starup i am doing the below
RemotingConfiguration.Configure(AppDomain.CurrentDomain.BaseDirectory + "ContextDataPoolService.exe.config");
RemotingConfiguration.CustomErrorsEnabled(true);
what is the solution, is there any mistake in my code?
|
|
|
|
|
I want to display a list of unicode in my datagridtable from hex 0000 to 00ff using the escape sequence \u.
I want to know whether theres a way to make the hex number beside the \u to increase by 1 by itself after each row. If not I will have to type out "\u0000" to "\u00ff" manually which can be tiring.
I know i can use if,for each or while, but i can't find a way to just increase the hex number.
Thanks
string[] row1 = new string[]{ "\u0020", "\u0021", "\u0022", "\u0023", "\u0024", "\u0025", "\u0026", "\u0027", "\u0028", "\u0029", "\u002a" }
|
|
|
|
|
Seems trivial to me. Check out the overloads to ToString on an int, which let you specify the number of digits, and the number format.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
|
So you are saving a text string and then trying to read it in as if it was a bitmap. I'm surprised yo're not getting a "Move Away From The Keyboard" exception.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|