C# - Create A Process Of Merging Letters And / Or Envelope Templates From Web App

Aug 24, 2010

I need to create a process of merging letters and/or envelope templates from a web app. We are using VS2010, C# (.net 4.0), asp.net, and Office 2007. The user selects a bunch of accounts from a list, and I need to collect the info for those accounts for merge. One catch is that if I look up an account and one of the two account holders has passed away, I need to change the greeting based on that info. For example, in most cases the letter would say something like Mr. and Mrs. Bob Smith. But if bob is dead, then it would just say Mrs. Mary Smith.

I also need it to open on the client side in word ready to print. So if the letter is 1 page, and the user selects 100 accounts, the word doc should have the letter merged with the 100 accounts just waiting for print. What is the best way to do this?

View 2 Replies


Similar Messages:

WCF / ASMX :: How To Create Soap Envelope (xml Request) From Wsdl

Feb 3, 2011

How to create soap envelope (xml request) from wsdl.

View 2 Replies

How To Create Email Accounts With Two Letters

Feb 2, 2010

I am using Helm server for my web hosting, in my control pannel when i tried to create an email account named hr@mywebsit.com it shows error

The POP3 Account 'hr@mywebsite.com' is invalid. specify a valid POP3 account name.

but when I trid hr1@mywebsite.com i can create, so how can i create email accounts with two letters

View 2 Replies

Web Forms :: How To Create A Dynamic Templates

Dec 23, 2010

My Requirement is to create a dynamic template in which i want to change

Some times images should be in middle , top, bottom

1)Image
2)Header Text
3)Address
4)Adding some content

View 2 Replies

Way To Create And Populate Email Templates

Oct 28, 2010

I have a page that is called from loads of different pages that basically sends emails. It has text boxes for Subject, From Address etc. and a textbox like the one I am typing in now (on this site) which allows users to format a html message.

View 5 Replies

Create Project Templates With IWizard?

Dec 17, 2010

I have created my project template but I want to put my own wizard to ask user about filename with database name that user want to attach in project. and with this name I wanted to start my own windows application to create that cs files / classes of that tables and automatically saved into that project folder..

View 9 Replies

Create Web Forms N2 CMS App Based On N2 Templates?

Jul 1, 2010

have gone through the N2 CMS documentation at length and can see no obvious set of steps to accomplish this.The task is to create a new Web Forms CMS app based on N2. Basically to take the Stripes theme and customize it.I originally downloaded the full source code and got it working on my development machine with SQL Server. After this I made various attempts at copying the files necessary to run the application into the new Web Forms folder in wwwroot. I got a lot of the same runtime errors that I see others getting, relating to missing DLLs, browser control adapters, and the like.

My current approach, per the "howto_install.txt", is to use the Publish function to move the required files to my wwwroot folder. This is really not desirable if I want to work on CMS sites for three different clients - think about it. Either way, when I bring up the new site in the wwwroot folder now, the home page link on the home page, all image links, and all admin links are now broken (this happened after moving site to IIS7). The install document mentions copying the "N2 management files" to the new folder - can anyone explain what is meant by this?Can anyone assist in outlining the basic steps in getting a new Web Forms N2 site working with full functionality in the wwwroot folder?

View 1 Replies

Web Forms :: Create Custom Templates In Sharepoint?

Jun 29, 2010

I am new to sharepoint I am familiar with creating webparts and using them in sharepoint, but how to create an entire site as template and make it to use in another sites

View 2 Replies

MVC :: How To Create Custom HTML Helpers And Templates

Mar 30, 2010

If I wanted to create a custom HTML helper and take advantage of the new in-built templating feature, how would I do that? It appears the templating features are internal?

View 3 Replies

Web Forms :: Trying To Create Websites Dynamically According To Some Htm Templates?

Jan 25, 2010

m trying to create websites dynamically according to some htm templates.So far so good, I can read the html using the "System.Net.WebRequest" methods.Now I want to load from such templates some usercontrols... explain it:HTML-template look like this:

[Code]....

"%UC1%" and "%UC2%" would be place holder for some usercontrols..UC1:

[Code]....

Now, I want that some .aspx page reads the html template (this is done) and replace the found placeholders (eg: %UC1%) with corresponding UserControl.

View 2 Replies

Forms Data Controls :: How To Add Dynamic Templates And Edit Templates In Gridview

Feb 1, 2011

i am using two tables for salary components like bonus,hra,ta,da.one is salary lookup table for viewing which components are chosen and according to this salary table is created dynamically.i want to view data fields of salary table in gridview and update thier value.

now problem is that how to create template field and edit template field for updating fields of salary table because field of the salary table changing every time as it is creating dynamically.

View 3 Replies

Web Forms :: Best Way To Create HTML Templates For Sending Email

Apr 5, 2010

I want to create HTML templates to send my subscribers e-mail message. I put HTML tags into a text file and changed the required format items every time I want to send an e-mail with values from my database using string.format():

[Code]....

[Code]....

I think the application will be slower as string.format() searches for more format items.

View 2 Replies

AJAX :: Clientside Templates / Index syntax Has Changed In Latest Version Of The Client Templates?

Apr 26, 2010

I have recently found this snippet of code but I am unable to get it to work. Does anybody know if the $index syntax has changed in the latest version of the client templates?

[Code]....

I keep recieving $index is undefined.

The offending line is

[Code]....

View 2 Replies

Forms Data Controls :: How To Create Dynamic FormView And Templates In C#

May 18, 2010

I need to create and use asp.net FormView with pager, dynamically from code behind in C#.

View 2 Replies

.net - Create A Child Process?

Jan 31, 2010

You can create a thread given a delegate to method, can I create a process in the same way? I want to do that to be able to close the child process from task manger if something goes wrong.

View 2 Replies

Cannot Create A Process In A COM Object (written In .Net4) From An Asp (vbscript) Site

Jan 14, 2011

I'm updating an old process that already exists, which works as follows:

The user submits a form which runs the following asp (simplified, names changed):

<%
set rb = Server.CreateObject("RecordBuilder.SomeObject")
rb.Calculate()
rb.StartProcess()
%>

The RecordBuilder.SomeObject was an old VB6 DLL, I don't have VB6, so I converted it to VB.NeT 4.0

The call to Calculate() works as expected, the call to StartProcess() fails.

StartProcess() is the following:

Public Function StartProcess()
Try
strProcess = "Starting process"
Dim proc = New Process()
proc.StartInfo.RedirectStandardOutput = True
proc.StartInfo.UseShellExecute = False
proc.StartInfo.CreateNoWindow = True
proc.StartInfo.FileName = "d:AppRecordProcessor.exe"
Dim procHandle = proc.Start()
strProcess = "Started process"
Catch ex As Exception
Err.Raise(vbObjectError + 9999, "RecordBuilder.SomeObject", strProcess & " failed: " & ex.Message & "<hr />Stack Trace:<br />" & ex.StackTrace)
End Try
End Function

This fails with the call to proc.Start(), however if I copy the test ASP to a .vbs file it will work as expected.

I have changed the permissions on d:AppRecordProcessor.exe to grant execute permission to the group Everyone.

View 1 Replies

Way To Create Sites And WebParts - How To Automate Site Page Creation Process

Aug 5, 2010

We are working on a SharePoint Site where we have created lot of webparts. Now so far we have been creating SitePages for these webparts manually and adding webparts to those. It takes lot of time in any environment and its difficult to move from environment to environment.What is the ideal way of doing it? How can we automate sitePage creation process and hopefully add webpart to it by some scripts?

View 1 Replies

WCF / ASMX :: Missing XML Header And Envelope Header In SOAP Response With.Net (2.0) Web Service

Jul 19, 2010

In my ASP.Net (2.0) Web Service implementation (The implementation class derives from

System.Web.Services.WebService with WebServiceBinding confirming to WsiProfiles.BasicProfile1_1 .

The SOAP response sent out by the Service has two elements missing :

1> The XML header itself : (<?xml version="1.0">)

2> The opening and closing Envelope tags with NameSpace ("<S:Envelope xmlns:S=http://schemas.xmlsoap.org/soap/envelope/>" and "</S:Envelope>" ).

This results in "breaking" of my client unless the above mentioned headers are inserted at the client end, and my intent is to avoid bypasses at the client end as far as popssible.Is this the default behavior ?

View 2 Replies

Crystal Reports :: Printing Label And Envelope By Crystal Report?

Feb 24, 2011

I have C#.net address book project. As the part of project, I have to print address label and envelop by using crystel report.Address is taken from database.I have to print and view printing preview from browser.I am new one in C#.net.

View 1 Replies

Configuration :: Process.start (System.Diagnostics.Process) - Execute A Batch File

Sep 7, 2010

I've written a aspx.net(C#) page that after the user has done what they do on the page they hit a Submit button. The Submit button

1) takes the work the users was producing on the page and writes it to a file.
2) attempts to execute a batch file.

The call to the batch file is executed via:

protected void Execute123EDI()
{
try
{
string File = @"c:80sAdminSendV80s.bat";
lblCancelled.Text = lblCancelled.Text + File;
Process proc = new System.Diagnostics.Process();
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.LoadUserProfile = false;
proc.StartInfo.UserName = "administrator";
proc.StartInfo.RedirectStandardOutput = true;
System.Security.SecureString secPass = new System.Security.SecureString();
string paswd = "123abc";
for (int i = 0; i < paswd.Length; i++)
{
secPass.AppendChar(paswd[i]);
}
proc.StartInfo.Password = secPass;
proc.StartInfo.FileName = File;
proc.Start();
FileStream fs = new FileStream(@"c:80sAdminSendV80sOutput.log", FileMode.Append);
StreamWriter sw = new StreamWriter(fs);
sw.Write(proc.StandardOutput.ReadToEnd());
proc.WaitForExit();
sw.Close();
proc.Close();
}
catch(Exception ex)
{
lblDebug.Text = lblDebug.Text + ex.Message + "<br/>";
}

If I watch the processes tab in Task Manager on the web server I see "cmd.exe" under the context of 'administrator' but it just hangs. For test purposes c:SendV80s.bat: copy c: oot.ini c:zzz.txt

If I logon onto the webserver's console and execute SendV80s.bat it works and exits without issue. But when I execute the same batch file via the Submit button it gets stuck executing in Task Manager/Process. I believe this has something to do with the fact that cmd is not running in a full environment/desktop context. I just noticed this on the actual console of the webserver (not in my RDP console but console 0 instead)

A pop-up box stating: CMD.exe Application error The application failed to initialize properly (0xc0000142). Click OK to terminate the application. And when I click on the OK button my ASPX page's WaitForExit is satisfied and the continues processing normally.

View 2 Replies

Long Running HTTP Process - How To Put In Separate Process

Jul 21, 2010

I know that similar questions have been asked all over the place, but I'm having trouble finding one that relates directly to what I'm after.

I have a website where a user uploads a data file, then that file is transformed and imported into SQL. The file could be up to 50mb in size, and some times this process can take 30 minutes or sometimes even longer.

I realise I need to palm off the actual work to another process, and poll that process on the web page. I'm wondering what the best approach would be though? Being a web developer by trade, I'm finding all this new Windows Service stuff a bit confusing, and I just wanted somewhere to start.

So:

Can I do / should I being doing this with a windows service? if so, how?

Should I use WCF? If this runs under IIS, will I have problems with aspnet_wp.exe recycling and timing out my process?

clarifications

The data is imported into sql, there's no file distribution taking place.

If there is a failure, it absolutely MUST be reported to the user. The web page will poll every, lets say, 5 seconds, from the time the async task begins, to get the 'status' of the import. Once it's finished another response will tell the page to stop polling for status updates.

queries on final decision

ok, so as I thought, it seems that a windows service is the best idea. So as to HOW to get it to work, it seems the 'put the file there and wait for the service to pick it up' idea is the generally accepted way, is there a way I can start a process run by the service, without it having to constantly be checking a database table / folder? As I said earlier, I don't have any experience with Windows Services - I wondered if I put a public method in the service, can I call it somehow?

View 2 Replies

Execute A Process Remotely With System.Diagnostics.Process

Feb 26, 2010

I'm working on an ASP.net app I'm trying to execute a process remotely , using System.Diagnostics.Process class here's my code:

ProcessStartInfo startInfo = new ProcessStartInfo(@"C:TestCommand.exe");
startInfo.Domain = "myDomain";
startInfo.UserName = "MyUserName";
SecureString sec = new SecureString();
foreach (char item in "MyPassword")
{
sec.AppendChar(item);
}
sec.MakeReadOnly();
startInfo.Password = sec;
startInfo.UseShellExecute = false;
Process.Start(startInfo);

I keep receiving an exception with the message "Logon failure: unknown user name or bad password". Im absolutelly sure that i'm submiting my correct username/pwd

View 1 Replies

Web Forms :: The Process Cannot Access The File 'c: Empmy.pdf' Because It Is Being Used By Another Process?

Apr 3, 2010

I've developed a popup email .aspx used on our intranet based web app that is auto generated with .pdf's attached. I'm developing with VS 2008 ASP.Net 3.5 C# and System.Net.Mail.MailMessage. I can create and send the email with no issues. The problem is with any attempt to open or delete the attachments I get the above error. The .pdf's a copied with the following code:

FileStream fsr = new FileStream(inFilename, FileMode.Open, FileAccess.Read, FileShare.Read);
BinaryReader reader = new BinaryReader(fsr);
byte[] bytes = new byte[fsr.Length];
reader.Read(bytes, 0, bytes.Length);
FileStream fsw = new FileStream(outFileName, FileMode.Create, FileAccess.Write, FileShare.Write);
BinaryWriter writer = new BinaryWriter(fsw);
writer.Write(bytes, 0, bytes.Length);
// clean up
writer.Flush();
writer.Close();
writer = null;
fsw.Close();
fsw.Dispose();
fsw = null;
reader.Close();
reader = null;
fsr.Close();
fsr.Dispose();
fsr = null;
Later after sending the email I:
mailMessage.Dispose();
mailMessage = null;
foreach (string fileName in attachments)
{
if (File.Exists(fileName))
File.Delete(fileName);
}

The error occurs at: the File.Delete(fileName);

how I can delete or reopen these files after sending the email?

View 9 Replies

How To Recognize Whether The Process Is The IIS Worker Process From Within A .NET Code

Dec 25, 2010

Dear ladies and sirs.

I have a .NET infra code running both within the IIS worker process and within a desktop client app. How can the .NET code determine whether it is running within an IIS worker process?

I know that I could check the name of the process (w3wp.exe, for instance), but I would like a more robust approach. I wish to make a side note. This is not a production need. I need this information to enable certain scenarios useful during the development and testing phase. Specifically to ease the testing of secure vs non secure configurations.

View 3 Replies

C# - Tracking The Process Of A Singleton Process In A Web Application

Jan 26, 2010

When I hit the run button (in my Default.aspx), a process starts (this process contacts a webservice to get some files, etc). How do I: Ensure that only a single process is running at a time (i.e. if I refresh the browser, I don't want to start the process a second time)Track progress - there are 4 points of the process (at 25%, 50%, 75%, 100%) that I want to track, and when each part completes, I want to update the progress bar. I have a status object for the running process, but the question is how to update the progress bar automatically? Do I need to use threads to achieve the above two?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved