15,910,773 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by hugojim (Top 8 by date)
hugojim
15-May-13 13:40pm
View
the same of your links
namespace badDllweb
{
public class GenDoc
{
///
/// The main entry point for the application.
///
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new WebBrowser());
}
}
}
hugojim
15-May-13 13:21pm
View
in my project no works
is show me two errors:
Error 1 The best overloaded method match for 'System.Windows.Forms.Application.Run(System.Windows.Forms.Form)' has some invalid arguments
Error 2 Argument 1: cannot convert from 'System.Windows.Forms.WebBrowser' to 'System.Windows.Forms.Form'
hugojim
2-May-13 18:26pm
View
Tnks¡¡
hugojim
2-May-13 14:35pm
View
hi, do you have some examples?, i not tried with iTextSharp, but dont put a tag in the documents?
hugojim
26-Apr-13 18:03pm
View
sorry is printpreviewdialog¡
hugojim
26-Apr-13 18:00pm
View
hi this is the code, i can open word and then open de viewer, but i need open only the viewer.
other way is with printfielddialog, but i don know how is the code to do it.
void PrintDocument( string fileName)
{
object m = System.Reflection.Missing.Value;
object oldFileName = (object)fileName;
object readOnly = (object)false;
Word.Application app = null;
try
{
app = (Word.Application)Activator.CreateInstance(Type.GetTypeFromProgID("Word.Application"));
Document doc = app.Documents.Open(
ref oldFileName, ref m, ref readOnly,
ref m, ref m, ref m, ref m, ref m, ref m, ref m,
ref m, ref m, ref m, ref m, ref m, ref m);
string tempFileName = Environment.GetFolderPath(Environment.SpecialFolder.InternetCache) + g.ToString() + ".html";
object newFileName = (object)fileName;
doc.PrintOut(
ref oldFileName, ref m, ref m,
ref m, ref m, ref m, ref m, ref m, ref m, ref m,
ref m, ref m, ref m, ref m, ref m, ref m, ref m);
Save the file.
doc.PrintPreview();
app.PrintPreview = true;
}
finally
{
if (app != null)
app.Quit(ref readOnly, ref m, ref m);
}
hugojim
26-Apr-13 11:10am
View
i need develop a module to display documents Word, i read the document and save, but i need, the viewer document in the application with c# win forms framework net 4.0, vs 2010, office 07-10, try whit web browser but not keep the format word... tnks
hugojim
25-Apr-13 23:14pm
View
i need develop a module to display documents Word, i read the document and save, but i need, the viewer document in the application with c# win forms framework net 4.0, vs 2010, office 07-10, try whit web browser but not keep the format word... tnks
Show More