|
Hi,
i am developing text editor (windows application) by using c#.net.
in my text editor i am providing a rich text box to enter text.
it has multiple rich text boxes to make it act like multiple pages.
after entering text into some number of rich text boxes user can go for print.
printed pages should be in WYSIWYG format.
i am able to send all the text from all the pages to the printer. but my problem is i am unable to achieve WYSIWYG. that is
say for example in the first rich text box of my application have 30 lines then the printer is printing less than 30 lines per a page.
so finally i am trying to develop one application which is almost similar to MS WORD.
so please explain me how can achieve this ??
if you have solution please email me at
anilveeraghattapu@gmail.com
Thanks
Anil Veeraghattapu.
|
|
|
|
|
Firstly, do not post your email, unless you like spam.
Secondly, have you tried doing this?[^]
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
|
Isn't it though?
It is on my favourites for answering lazy questions.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
hey what do you mean
have you gone through my query
do you think does any body posts here if we got satisfied by google search
don't waste your time by posting these kinds of responses
i have already done with wysiwyg kind of printing
what i need is am unable arrange the test in the rich text boxes like how exactly the printer is printing
Thanks
Anil Veeraghattapu.
|
|
|
|
|
Anil709 wrote: hey what do you mean
have you gone through my query
Yes.
Anil709 wrote: do you think does any body posts here if we got satisfied by google search
Yes, frequently.
Anil709 wrote: don't waste your time by posting these kinds of responses
It's my time, I will do with it what I will. Thank you for your concern, though.
Anil709 wrote: have already done with wysiwyg kind of printing
what i need is am unable arrange the test in the rich text boxes like how exactly the printer is printing
Then perhaps you should have said this in your original post.
Anil709 wrote: Hi,
i am developing text editor (windows application) by using c#.net.
in my text editor i am providing a rich text box to enter text.
it has multiple rich text boxes to make it act like multiple pages.
after entering text into some number of rich text boxes user can go for print.
printed pages should be in WYSIWYG format.
i am able to send all the text from all the pages to the printer. but my problem is i am unable to achieve WYSIWYG. that is
say for example in the first rich text box of my application have 30 lines then the printer is printing less than 30 lines per a page.
so finally i am trying to develop one application which is almost similar to MS WORD.
so please explain me how can achieve this ??
if you have solution please email me at
anilveeraghattapu@gmail.com
Thanks
Anil Veeraghattapu.
By the way, perhaps you should review the meaning of "WYSIWYG" - rearranging what you see on the screen to match the printed output is more "WYGIWYGATIIWWYW"
"WYGIWYGATIIWWYW" = "What you get is what you get, and tough if it wasn't what you wanted"
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
what the hell are you talking
have you gone nuts ???
if you dont how work then go to hell, but don't waste our precious time.
if you keep on doing these stupid things i will report you as a spam
and the administrator will block you account, mind it.
|
|
|
|
|
veejay_veejay wrote: what the hell are you talking
have you gone nuts ???
if you dont how work then go to hell, but don't waste our precious time.
Who rattled your cage?
veejay_veejay wrote: if you keep on doing these stupid things i will report you as a spam and the administrator will block you account, mind it.
Please, be my guest. Go right ahead.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
i am inserting values of useridtxtbx and pwdtxtbx to database on submitbtn_click.Insert statement is not showing error while debugging ..but when the program runs it is giving syntax error..Below is my code
protected void submitbtn_Click(object sender, EventArgs e)
{
OleDbConnection con= new OleDbConnection("provider=Microsoft.Jet.OLEDB.4.0;data source = C:\\Documents and Settings\\swuser\\My Documents\\Clinical_Billing.mdb;" );
con.Open();
OleDbCommand cmd = new OleDbCommand("insert into user_login(user_id,password) values('" + useridtxtbx.Text + "','" + pwdtxtbx.Text + "'", con);
cmd.ExecuteNonQuery();
con.Close();
}
|
|
|
|
|
Use parameterized queries. You should be good then.
|
|
|
|
|
myinstincts wrote: new OleDbCommand("insert into user_login(user_id,password) values('" + useridtxtbx.Text + "','" + pwdtxtbx.Text + "'", con);
As Navaneeth, suggested try to avoid code like that. It will caused SQL Injection Problem. Use Parameterized Query.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
modified on Saturday, September 5, 2009 3:50 AM
|
|
|
|
|
this is the first time i am hearing of anything like parameterized query and sql injection problem...thanks for those valuable informations...i will try with those then
|
|
|
|
|
|
hi,
1.
the values parenthesis isn't closed
2.
you shouldn't store plain passwords in a database, if it gets hacked all the entries become worthless at once.
|
|
|
|
|
I can run the application just fine in my development environment. But when I created the Install package the application bombs everytime on the other machines after installation when this specific form is called.
The I moved the control I viewed as the problem to a form of it's own, and this is the form that crashes. As long as the form is not called it works great.
Sorry for a the history here is the meat:
The Form Contains 2 controls only. 1 Combobox and 1 Crystal Report Viewer.
The install Package identified all the assemblies by default plus in my debugging I added a few.
Also in debugging on this form I placed message boxes all throughout the form Marking each line for code for the forms initilization, load, resize event. Everything to the point of the form fully comming up.
I only get the first message box marker before the forms INITILIZATION() process before the application bombs.
The application bombs with the error:
Unhandled exception has occured in your application. If you click continue the application will ignore this error and attempt to continue. If you click quit, the application will close immediately.
The type initilizer for 'CrystalDecision.CrystalReports.Engine.ReportDocument Threw an exception.
Under More Info I get the following:
EventType : clr20r3 P1 : peerassistloader.exe P2 : 1.4.15.267
P3 : 4aa1d6bb P4 : crystaldecisions.crystalreports.engine
P5 : 10.5.3700.0 P6 : 4711bede P7 : 2c5 P8 : 43
P9 : system.nullreferenceexception
What information is needed for help? I can have someone remote into my system and look at it with me if they want. Skype: jollymansart.
|
|
|
|
|
Have you searched? I found this[^] when I did.
|
|
|
|
|
Me thinks you're missing the CrystalReports runtime. Get that installed and you might be all set. You can usually find it in C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\CrystalReports.
|
|
|
|
|
Testing now... I have been searching for days for a resolution to this. I will feel mighty coo-coo if this is all it was. It has just the right ring to it I think it might just work. I will let you know in 1 hour when it complete's the transfer to the other site.
|
|
|
|
|
That was it thanks a million
|
|
|
|
|
You're welcome!
|
|
|
|
|
Help Help Help If you Live in East Bay around S.F. CA. I need a C# Master to Come work with me and Instruct and help me with a Progrom developer's dream. A strat up and I need to learn C I just can't get it out of the books. It's grahic and engineering, so if this sound like something you want to do send me an email. I like vb but it just dosen't work.
|
|
|
|
|
rodbiser wrote: I like vb but it just dosen't work.
C# can't do anything that VB can't do.
This forum is for C# programmers to ask for specific help. It's not really a place to ask for a private tutor. You should advertise in the job board.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Christian Graus wrote: C# can't do anything that VB can't do.
It can express itself concisely; VB is verbose, though not as bad as COBOL.
And C# developers get more chicks.
|
|
|
|
|
When does that start
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Wow it's getting worse nowadays, from "Urgentz send me codez" to this. What next? "Come do my job for me"?
|
|
|
|