Click here to Skip to main content
15,911,141 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionBest way to display Card Information to the admin or user Pin
Hamidakhanam28-Jun-12 3:33
Hamidakhanam28-Jun-12 3:33 
AnswerRe: Best way to display Card Information to the admin or user Pin
Richard MacCutchan28-Jun-12 5:09
mveRichard MacCutchan28-Jun-12 5:09 
AnswerRe: Best way to display Card Information to the admin or user Pin
jkirkerx28-Jun-12 8:54
professionaljkirkerx28-Jun-12 8:54 
QuestionHow to identify Event handling in TFS 2012 for Bug work item onlt Pin
amit sahu2028-Jun-12 0:27
amit sahu2028-Jun-12 0:27 
AnswerRe: How to identify Event handling in TFS 2012 for Bug work item onlt Pin
jkirkerx28-Jun-12 11:50
professionaljkirkerx28-Jun-12 11:50 
Questionasp. net deployment Pin
sc steinhayse27-Jun-12 19:13
sc steinhayse27-Jun-12 19:13 
AnswerRe: asp. net deployment Pin
Vani Kulkarni28-Jun-12 0:56
professionalVani Kulkarni28-Jun-12 0:56 
QuestionStoring file in a Stream rather than storing in the file Pin
indian14327-Jun-12 11:04
indian14327-Jun-12 11:04 
Hi,

In an asp.net application I am converting .doc file in to .pdf file, and then making that file as Tiff file. So this pdf file is temperary.
I want to avaoid this pdf file to be stored in the physical path and want to store it in the some memory stream (text stream whichever is good) for temporary purpose and then use that memory stream to be converted to Tiff. And this memory stream should be like a .pdf file' memory stream.

Is there any way to do that can anybody please help me in this. Below is the code that I wrote to convert the .doc file to .pdf file and storing in a physical location.

Private Sub convertDoc2PDF(ByVal Source As Object, ByVal Target As Object)
     If MSdoc Is Nothing Then
         MSdoc = New Microsoft.Office.Interop.Word.ApplicationClass()
     End If

     Try
         MSdoc.Visible = False

         MSdoc.Documents.Open(Source, Unknown, Unknown, Unknown, Unknown, _
                   Unknown, Unknown, Unknown, Unknown, Unknown, Unknown, _
                   Unknown, Unknown, Unknown, Unknown, Unknown)
         MSdoc.Application.Visible = False

         MSdoc.WindowState = Microsoft.Office.Interop.Word.WdWindowState.wdWindowStateMinimize

         Dim format As Object = Microsoft.Office.Interop.Word.WdSaveFormat.wdFormatPDF

         MSdoc.ActiveDocument.SaveAs(Target, format, Unknown, Unknown, Unknown, _
      Unknown, Unknown, Unknown, Unknown, Unknown, Unknown, _
      Unknown, Unknown, Unknown, Unknown, Unknown)


     Catch ex As Exception

     Finally
         If Not MSdoc Is Nothing Then
                 MSdoc.Documents.Close(Unknown, Unknown, Unknown);
             'WordDoc.Application.Quit(ref Unknown, ref Unknown, ref Unknown);
         End If
         MSdoc.Quit(Unknown, Unknown, Unknown)
     End Try
 End Sub

Thanks & Regards,

Abdul Aleem Mohammad
St Louis MO - USA

AnswerRe: Storing file in a Stream rather than storing in the file Pin
R. Giskard Reventlov27-Jun-12 11:28
R. Giskard Reventlov27-Jun-12 11:28 
GeneralRe: Storing file in a Stream rather than storing in the file Pin
indian14327-Jun-12 12:02
indian14327-Jun-12 12:02 
GeneralRe: Storing file in a Stream rather than storing in the file Pin
indian14327-Jun-12 14:14
indian14327-Jun-12 14:14 
GeneralRe: Storing file in a Stream rather than storing in the file Pin
jkirkerx27-Jun-12 15:35
professionaljkirkerx27-Jun-12 15:35 
GeneralRe: Storing file in a Stream rather than storing in the file Pin
indian14328-Jun-12 5:29
indian14328-Jun-12 5:29 
GeneralRe: Storing file in a Stream rather than storing in the file Pin
jkirkerx28-Jun-12 7:12
professionaljkirkerx28-Jun-12 7:12 
GeneralRe: Storing file in a Stream rather than storing in the file Pin
indian14328-Jun-12 9:54
indian14328-Jun-12 9:54 
GeneralRe: Storing file in a Stream rather than storing in the file Pin
jkirkerx28-Jun-12 10:30
professionaljkirkerx28-Jun-12 10:30 
Questioncreating Menus horizontal Pin
deeptul27-Jun-12 9:51
deeptul27-Jun-12 9:51 
AnswerRe: creating Menus horizontal Pin
R. Giskard Reventlov27-Jun-12 9:55
R. Giskard Reventlov27-Jun-12 9:55 
QuestionSplitting Large file in to Chunks Pin
indian14327-Jun-12 7:59
indian14327-Jun-12 7:59 
AnswerRe: Splitting Large file in to Chunks Pin
jkirkerx27-Jun-12 8:34
professionaljkirkerx27-Jun-12 8:34 
GeneralRe: Splitting Large file in to Chunks Pin
indian14327-Jun-12 10:12
indian14327-Jun-12 10:12 
GeneralRe: Splitting Large file in to Chunks Pin
jkirkerx27-Jun-12 10:46
professionaljkirkerx27-Jun-12 10:46 
GeneralRe: Splitting Large file in to Chunks Pin
indian14327-Jun-12 11:05
indian14327-Jun-12 11:05 
GeneralRe: Splitting Large file in to Chunks Pin
R. Giskard Reventlov27-Jun-12 10:30
R. Giskard Reventlov27-Jun-12 10:30 
GeneralRe: Splitting Large file in to Chunks Pin
indian14327-Jun-12 11:10
indian14327-Jun-12 11:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.