how print and send email in one button

  • Thread starter Lourdes Rodriguez
  • Start date
L

Lourdes Rodriguez

someone knows how to print a form and then send the information by a form
without asking agreement???
thanks in advance.
 
F

Franck Dauché

Hi Lourdes,

I am assuming that you will be using C# behind your form.

Print using:
thisXDocument.PrintOut();

Email using:
EmailAdapter oEmail = (EmailAdapter)thisXDocument.DataAdapters["Email
Submit"];
oEmail.Intro = thisXDocument.DOM.xml;
oEmail.Submit();

Give full trust to your form.

Hope that is helps.

Regards,

Franck Dauché
 
B

Blaze

What would the code to submit to sharepoint library and print be?

Thanks in advance!

Blaze


Franck Dauché said:
Hi Lourdes,

I am assuming that you will be using C# behind your form.

Print using:
thisXDocument.PrintOut();

Email using:
EmailAdapter oEmail = (EmailAdapter)thisXDocument.DataAdapters["Email
Submit"];
oEmail.Intro = thisXDocument.DOM.xml;
oEmail.Submit();

Give full trust to your form.

Hope that is helps.

Regards,

Franck Dauché




Lourdes Rodriguez said:
someone knows how to print a form and then send the information by a form
without asking agreement???
thanks in advance.
 
F

Franck Dauché

Hi Blaze,

What about:
DAVAdapter oSharePoint =
(DAVAdapter)thisXDocument.DataAdapters["MySharepoint"];
oSharePoint.Submit();

Regards,

Franck Dauché


Blaze said:
What would the code to submit to sharepoint library and print be?

Thanks in advance!

Blaze


Franck Dauché said:
Hi Lourdes,

I am assuming that you will be using C# behind your form.

Print using:
thisXDocument.PrintOut();

Email using:
EmailAdapter oEmail = (EmailAdapter)thisXDocument.DataAdapters["Email
Submit"];
oEmail.Intro = thisXDocument.DOM.xml;
oEmail.Submit();

Give full trust to your form.

Hope that is helps.

Regards,

Franck Dauché




Lourdes Rodriguez said:
someone knows how to print a form and then send the information by a form
without asking agreement???
thanks in advance.
 
B

Blaze

Just for reference the ["MySharepoint"] would actually be the URL of the
document library? Also do I use quotes to identify this?

Thank you!

Blaze


Franck Dauché said:
Hi Blaze,

What about:
DAVAdapter oSharePoint =
(DAVAdapter)thisXDocument.DataAdapters["MySharepoint"];
oSharePoint.Submit();

Regards,

Franck Dauché


Blaze said:
What would the code to submit to sharepoint library and print be?

Thanks in advance!

Blaze


Franck Dauché said:
Hi Lourdes,

I am assuming that you will be using C# behind your form.

Print using:
thisXDocument.PrintOut();

Email using:
EmailAdapter oEmail = (EmailAdapter)thisXDocument.DataAdapters["Email
Submit"];
oEmail.Intro = thisXDocument.DOM.xml;
oEmail.Submit();

Give full trust to your form.

Hope that is helps.

Regards,

Franck Dauché




:

someone knows how to print a form and then send the information by a form
without asking agreement???
thanks in advance.
 
F

Franck Dauché

Hi Blaze,

It is the name of your Data Connection (Tools \ Data Connections).

Franck Dauché


Blaze said:
Just for reference the ["MySharepoint"] would actually be the URL of the
document library? Also do I use quotes to identify this?

Thank you!

Blaze


Franck Dauché said:
Hi Blaze,

What about:
DAVAdapter oSharePoint =
(DAVAdapter)thisXDocument.DataAdapters["MySharepoint"];
oSharePoint.Submit();

Regards,

Franck Dauché


Blaze said:
What would the code to submit to sharepoint library and print be?

Thanks in advance!

Blaze


:

Hi Lourdes,

I am assuming that you will be using C# behind your form.

Print using:
thisXDocument.PrintOut();

Email using:
EmailAdapter oEmail = (EmailAdapter)thisXDocument.DataAdapters["Email
Submit"];
oEmail.Intro = thisXDocument.DOM.xml;
oEmail.Submit();

Give full trust to your form.

Hope that is helps.

Regards,

Franck Dauché




:

someone knows how to print a form and then send the information by a form
without asking agreement???
thanks in advance.
 
S

Serge Borremans

The XML property thisXDocument.DOM.xml return the XML code.
Is there an equivalent that returns the html code.
I'd like to send the orms contetn via an email, but in HTML.

regards
Serge

Franck Dauché said:
Hi Blaze,

It is the name of your Data Connection (Tools \ Data Connections).

Franck Dauché


Blaze said:
Just for reference the ["MySharepoint"] would actually be the URL of the
document library? Also do I use quotes to identify this?

Thank you!

Blaze


Franck Dauché said:
Hi Blaze,

What about:
DAVAdapter oSharePoint =
(DAVAdapter)thisXDocument.DataAdapters["MySharepoint"];
oSharePoint.Submit();

Regards,

Franck Dauché


:

What would the code to submit to sharepoint library and print be?

Thanks in advance!

Blaze


:

Hi Lourdes,

I am assuming that you will be using C# behind your form.

Print using:
thisXDocument.PrintOut();

Email using:
EmailAdapter oEmail = (EmailAdapter)thisXDocument.DataAdapters["Email
Submit"];
oEmail.Intro = thisXDocument.DOM.xml;
oEmail.Submit();

Give full trust to your form.

Hope that is helps.

Regards,

Franck Dauché




:

someone knows how to print a form and then send the information by a form
without asking agreement???
thanks in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top