|
Then perhaps is there a different function that I should be using? Using DrawString to print a static or semi-static form is OK, but if the text is fluid, that presents some issues.
|
|
|
|
|
There is no other function. I know it's tedious, but it's all you've got to use.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
I have a question about the XmlSerializer.
Creating one seems to be quite an expensive process, so i'd like to re-use the ones i generate, however, they do not seem to be threadsafe, and do not implement the .Clone() method.
Is there any option on how to create them quickly?
Cheers
Tris
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
They aren't thread safe. However, you may be able to re-use the one's you've got. If you're hitting thread problems, why not just do some thread synchronization using the lock keyword to coordinate access to the XmlSerializer.
|
|
|
|
|
Hello forum, I have a problem regarding the playing of some sound file contineously i.e without stoping,on word document.
I want to add a sound file which till the display of page contineously play that file.
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|
|
Hello forum plz help me in finding out how to insert the bullet to word document through the c# code.
What i tried is using of function "myWordApp.Selection.Range.ListFormat.ApplyBulletDefaultOld();"
but problem is this that it inserted the bullet symbol of round circle, but exacly what i need is "-" this in place of that round circle.
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|
|
Don't Repost.
Regards,
Satips.
|
|
|
|
|
i have created windows application in .net 2005
then i have created setup Project for that application
i want create setup project with .net Frame work
when the user start installing the setup it should verify
wether the (needed frame work for that application ) is availeable in the system, if not it should install the framework first. then my application.
how to do this, is it possible ?
any ides or refrences ?
thank u
|
|
|
|
|
I always write a C++ app to do this, to install the framework, and run my MSI.
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 )
|
|
|
|
|
thakes for replay
i didn't get u r idea fully
please can u give more explanation
how to do this in c++. i have only littel knowladege in c++
thank u
|
|
|
|
|
I write an application, in C++, which has buttons to install things, checks the registry to see what's already installed, and uses shellexecute to run the installers I need to run.
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 )
|
|
|
|
|
Thank you sir for you replay.
i have got your idea.
i will try to implement as per your idea
Thank u
|
|
|
|
|
Hey hello dere,
well i m also working with .net in windows application. can u plz justify me what exactly u want with setup.
Do u want to make setup of ur project?
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|
|
i have created setup project .
i want this to be installed in my freinds computer.
he has not got .net Framework any version.
so
as my setup installing starts if first need to chek wether the freamework is avilable if not at first the framework has to be installed
then my project files has to be installed.
this is my problem
any solution?
thank u
|
|
|
|
|
i have created setup project .
i want this to this installed in my friends computer.
he has not got any version in .net Framework .
so
as my setup installing starts,
if first need to chek wether the freamework is avilable in the system
if not at first the framework has to be installed
then my project files has to be installed.
this is my problem
any solution?
thank u
|
|
|
|
|
Certainly first .NET framework needs to be checked, if there is no .NET framework in any case you application will not work. May be you can alert the user from the installation package (I mean msi installation package). To install it and then proceed with application installation...
Regards,
Jaiprakash M Bankolli
jaiprakash.bankolli@gmail.com
http://jaiprakash.blog.com/
|
|
|
|
|
Dear Friend
Thanks For your replay
it is a good idea. this error message is shown by default.
my problem is when i double click on the exe, the message is thrown that .net
framework is not available" to run the setup itself it needs framework
my idea is we can include "fremework setup" with the setup Project while the user clicks on the exe at first the framework then my project need to be installed. is it possible? i am not fully aware of taking setup. this is my idea thats all.
Thank u.
|
|
|
|
|
If you are trying to put .NET framework then your set up will be of huge size.... I will certainly not advice this !!!
Regards,
Jaiprakash M Bankolli
jaiprakash.bankolli@gmail.com
http://jaiprakash.blog.com/
|
|
|
|
|
Hi joe, well first of i want tot clear out that, there's no need of any frame work at the side of the installation of ur application.
all what u need to do is use the "Add setup project" by right clickinh over the solution explorer of ur project.
First try this and if u need more assistance than mail to me at sulabh@sampatti.com
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|
|
Dear Friend,
thanks for replay
i didn't your idea fully,
can you please explain more
i have created a setup project as a separate one . not in the project solution
then i have added the files ( Exe and Dll) in the setup project
then i build the solution, now i have got (project.msi) and (project.exe) files in the debug folder of the setup project
then i took the msi file and tried to install in my friends computer
i have message box ".net framework is not available do u want ot install"
when i click "yes " in the message box it goes to the Internet explorer. my friend doesn't have Internet connection.
what shell i do now?
steps please
thank u
by
joe
|
|
|
|
|
hello... i have created a panel on which one can draw image...i want to copy the image drawn on the panel into a bitmap of fixed size... i want the boundaries cut off ie i want only the region where drawing has occured... plz help
thankyou
haseeb
|
|
|
|
|
Hi,
have a look at Control.DrawToBitmap()
|
|
|
|
|
hello... tried the method but i was getting only the background color of the panel ie only white bitmap when the panel was of color white... the bitmap didn't have the square that i drew on the panel...
haseeb
|
|
|
|
|
Hi,
you must do all drawing in the Paint event handler; if you dont you will not see
your drawing when for some reason the control needs to be redrawn (e.g. when
your form gets restored from minimized/maximized, when an overlapping form gets removed,
when printing, etc).
When you change the things that need to be drawn, just call Invalidate() to fire
the paint event.
|
|
|
|
|
Initially XML file is like this
<?xml version="1.0" ?>
<lasers>
<laser LaserName="Laser1" ModelName="Nufern v1.0" SerialNo="1" ManufacturerName="Nufern v1.0" Maximumpower="200w" >
<properties">
<image>CW-Waveform.jpg</image>
<WaveTypes>
<WaveType Name="CW Ramp" url="ramp.html" isavailable="true" />
<WaveType Name="CW Analog" url="analog.html" isavailable="true" />
</WaveTypes>
<tabular>
<property id="228" name="BRM" currval="0" prgbar="true" selected="true" min="0" max="100" pwd="true" units="C"
gauge="false" thresholdval="10" />
<property id="200" name="Output power" currval="0" prgbar="true" selected="true" min="0" max="100" pwd="false" units="C"
gauge="true" thresholdval="10" />
</tabular>
</properties>
</laser>
</lasers>
then
>>>>>>>>>>>>>>>>>>>>namespace is EncryptDecrypt
XmlDocument xmldoc = new XmlDocument();
xmldoc.Load(Application.StartupPath + @"\laserProp.xml");
XmlNamespaceManager mgr = new XmlNamespaceManager(xmldoc.NameTable);
mgr.AddNamespace(string.Empty, "urn:MyNamespace");
XmlNodeList xmlnodelist;
XmlElement ele = xmldoc.DocumentElement;
xmlnodelist= ele.SelectNodes("//lasers//laser//properties//tabular//property",mgr);
Is working fine but, to validate xml with xsd i made changes to the xml as
<?xml version="1.0" ?>
<lasers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:MyNamespace" xsi:schemaLocation="urn:MyNamespace
laserProp.xsd">
<laser LaserName="Laser1" ModelName="Nufern v1.0" SerialNo="1" ManufacturerName="Nufern v1.0" Maximumpower="200w"
xmlns="urn:MyNamespace">
<properties xmlns="urn:MyNamespace">
<image>CW-Waveform.jpg</image>
<WaveTypes>
<WaveType Name="CW Ramp" url="ramp.html" isavailable="true" />
<WaveType Name="CW Analog" url="analog.html" isavailable="true" />
</WaveTypes>
<tabular>
<property id="228" name="BRM" currval="0" prgbar="true" selected="true" min="0" max="100" pwd="true"
units="C" gauge="false" thresholdval="10"/>
<property id="200" name="Output power" currval="0" prgbar="true" selected="true" min="0" max="100"
pwd="false" units="C" gauge="true" thresholdval="10"/>
</tabular>
</properties>
</laser>
</lasers>
Now the same xpath is not working
I also tried with urn:EncryptDecrypt but no result
please help me on this
Thanks in advance
-- modified at 7:06 Saturday 14th April, 2007
|
|
|
|