I want to generate SSRS report and save the file to PDF automatically and send through mail in AX 2009.
If is possible or Not?
If is possible kindly share the related document and Link. It really helpful to me.
*This post is locked for comments
I want to generate SSRS report and save the file to PDF automatically and send through mail in AX 2009.
If is possible or Not?
If is possible kindly share the related document and Link. It really helpful to me.
*This post is locked for comments
Its Working Fine in AX 2009..
System.Net.WebRequest httpRequest = null;
System.Net.WebResponse httpResponse = null;
System.IO.Stream stream = null;
System.IO.FileStream FileStream = null;
System.Byte[] buffer = new System.Byte[1024]();
voucher voucher;
str M_FileName ='filepath';
int len;
;
voucher ="69673_81";
url = "url "+voucher;
httpRequest = System.Net.WebRequest::Create(url);
httpRequest.set_Credentials(System.Net.CredentialCache::get_DefaultNetworkCredentials());
httpResponse = httpRequest.GetResponse();
FileStream = new System.IO.FileStream(M_FileName, System.IO.FileMode::Create);
stream = httpResponse.GetResponseStream();
len = stream.Read(buffer, 0, 1024);
while (len > 0)
{
FileStream.Write(buffer, 0, len);
len = stream.Read(buffer, 0, 1024);
}
stream.Close();
FileStream.Close();
System.Net.WebRequest httpRequest = null;
System.Net.WebResponse httpResponse = null;
System.IO.Stream stream = null;
System.IO.FileStream FileStream = null;
System.Byte[] buffer = new System.Byte[1024]();
voucher voucher;
str M_FileName ='filepath';
int len;
;
voucher ="69673_81";
url = "url "+voucher;
httpRequest = System.Net.WebRequest::Create(url);
httpRequest.set_Credentials(System.Net.CredentialCache::get_DefaultNetworkCredentials());
httpResponse = httpRequest.GetResponse();
FileStream = new System.IO.FileStream(M_FileName, System.IO.FileMode::Create);
stream = httpResponse.GetResponseStream();
len = stream.Read(buffer, 0, 1024);
while (len > 0)
{
FileStream.Write(buffer, 0, len);
len = stream.Read(buffer, 0, 1024);
}
stream.Close();
FileStream.Close();
André Arnaud de Cal...
292,516
Super User 2025 Season 1
Martin Dráb
231,317
Most Valuable Professional
nmaenpaa
101,156